feat(smoke-test): mount qwen3-0.6b base model via weights API instead of HF - #118
Open
William-Gao1 wants to merge 2 commits into
Open
feat(smoke-test): mount qwen3-0.6b base model via weights API instead of HF#118William-Gao1 wants to merge 2 commits into
William-Gao1 wants to merge 2 commits into
Conversation
Example Validation Results✅
|
William-Gao1
force-pushed
the
will/smoke-test-bdn-weights
branch
3 times, most recently
from
June 30, 2026 16:18
d91f457 to
ae43725
Compare
… of HF The smoke test pulled Qwen/Qwen3-0.6B directly from HuggingFace inside the training container on every run, which is getting rate-limited by HF. Mount the base model through the truss-train weights API instead: Baseten mirrors it into the Baseten Delivery Network once and serves it from cache on subsequent runs, so repeated CI runs no longer hit HF. - config.py: add WeightsSource(hf://Qwen/Qwen3-0.6B) mounted at /mnt/user/Qwen3-0.6B, and pass the mount path to the container via the BASE_MODEL_PATH env var so it stays defined in one place. - train.py: read BASE_MODEL_PATH and point axolotl base_model at the mounted path.
…emplate truss's create_model_version_from_inference_template() gained a required `run_id` positional argument, so the deploy-and-infer step of the smoke test fails with "missing 1 required positional argument: 'run_id'" even when the training job completes and checkpoints successfully. The smoke test deploys training-job checkpoints, and _hydrate_deploy_config raises if run_id is set alongside training-job checkpoints, so the correct value here is None.
William-Gao1
force-pushed
the
will/smoke-test-bdn-weights
branch
from
June 30, 2026 16:28
ae43725 to
1c682cc
Compare
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.
This PR makes two changes to unblock and harden the training smoke test.
1. Mount qwen3-0.6b base model via the weights API (BDN)
The smoke test pulled
Qwen/Qwen3-0.6Bdirectly from HuggingFace inside the training container on every run (via axolotl resolvingbase_model). With the daily schedule plus the H100/H200 matrix, this was getting rate-limited by HF.config.py— addWeightsSource(source="hf://Qwen/Qwen3-0.6B", mount_location="/mnt/user/Qwen3-0.6B")to theTrainingJob, and pass the mount path to the container via theMODEL_MOUNT_PATHenv var. Baseten mirrors the repo into BDN once (deduplicated at the WeightVersion level) and CSI-mounts it.train.py—seed_hf_cache_from_mount()wires the mounted weights into the HF hub cache under the canonical repo id (real commit from a cheap metadata call →snapshots/<commit>symlinked to the mount).from_pretrained("Qwen/Qwen3-0.6B")then loads from the mount (only lightweight HEADs, no 1.5 GB download) and records the HF id in the saved LoRA adapter, so the checkpoint is deployable — deploy resolves the base from the BDN mirror bynamespace/modelid.(Recording the id at train time is deliberate: a post-hoc rewrite of
adapter_config.jsonloses a race — the job is COMPLETED and deployed before the re-upload +ensure_checkpointsre-read propagate the new base_model.)2. Fix deploy-and-infer: pass
run_idtruss'screate_model_version_from_inference_template()gained a requiredrun_idpositional arg, so the deploy step failed withmissing 1 required positional argument: 'run_id'even after training completed and checkpointed. The smoke test deploys training-job checkpoints, and_hydrate_deploy_configraises ifrun_idis set alongside training-job checkpoints, so the correct value isNone.Notes
winglian/pirate-ultrachat-10k) is still an HF pull.FileNotFoundErroron an arrow shard under the project cache mount during axolotl's 128-process tokenization) that predates this PR and is not addressed here.