Repository navigation
Optional local clinical NLI training and export tooling - #3618
Draft
maziyarpanahi wants to merge 1 commit into
Draft
maziyarpanahi wants to merge 1 commit into
maziyarpanahi wants to merge 1 commit into
Conversation
9 tasks
This was referenced Oct 2, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add actual local training and offline export/evaluation commands for a small
clinical NLI encoder, with source-disjoint public/synthetic data and
fail-closed candidate promotion. This advances the remaining checkpoint
delivery work; it does not claim publication or enable a default alias.
Type of Change
Changes Made
Attribute the author-published biomedical corpus; retain binary negatives
as partial labels, not invented contradictions. Reject overlapping groups
and remove whole groups with conflicting duplicate labels before splits.
AdamW; select checkpoints on validation only. No paid job, restricted data,
hosted inference, model upload or visibility-changing operation.
ONNX int8 and MLX float32. Add the MLX offline runtime and inference-only
torch context without introducing mandatory core dependencies.
challenge. Preserve failed accuracy/calibration/coverage/parity gates in
aggregate-only reports. Never accept all-abstention as successful coverage
or fabricate a Hub revision from a candidate weight hash.
Testing
make format,make lint,make format-checkpassed.MLX with sockets denied; actual dynamic ONNX/int8/MLX export preflight passed.
Real candidate training/evaluation receipts will be added after the run finishes.
Synthetic unit tests are not model-quality evidence. Final holdouts are not
used for checkpoint selection.
Documentation
commands, optional training tools and quality/export boundaries.
Code Quality
git diff --check.Dependencies
tools in an isolated environment; imports stay lazy at runtime boundaries.
Related Issues
Related to #3236 and #3233. Keep #3236 open until genuine candidate quality,
independent immutable model publication, offline resolution and registry
activation satisfy its checkpoint acceptance criteria.