Fix upload_checkpoint.py: explicit HF token and repo_type for upload_folder - #87
Draft
ervinwang-jpg with Copilot wants to merge 6 commits into
Draft
Fix upload_checkpoint.py: explicit HF token and repo_type for upload_folder#87ervinwang-jpg with Copilot wants to merge 6 commits into
ervinwang-jpg with Copilot wants to merge 6 commits into
Conversation
Fine-tunes Qwen3-4B on pirate-ultrachat-10k using TRL SFTTrainer with LoRA on a single H100. Matches the getting-started tutorial at docs.baseten.co/training/getting-started.
checkpoint config renaming
Add Qwen3-4B LoRA SFT example with TRL
3 tasks
…en explicitly to HfApi Co-authored-by: ervinwang-jpg <241853031+ervinwang-jpg@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] WIP address feedback from PR #86 for Qwen80b changes
Fix upload_checkpoint.py: explicit HF token and repo_type for upload_folder
Mar 11, 2026
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.
upload_folderwas missingrepo_type="model"andHfApiwas initialized without a token, making the script's behavior dependent on whatever token happened to be cached on disk.Changes
HF_TOKEN→HUGGING_FACE_HUB_TOKEN→HUGGINGFACE_HUB_TOKENand passes it directly toHfApi(token=token)repo_type="model": added toupload_folderto match the existingcreate_repocall and be consistent with other scripts in the repo💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.