You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update deprecated parameters in Hugging Face library (#2982)
* Summary:
In `from_pretrained()` method in `huggingface/transformers`, `torch_dtype`
is deprecated and `dtype` replaces it. To prevent deprecation warnings,
this PR replaces `torch_dtype` with `dtype`.
Test plan: CI
Reference: huggingface/transformers#39782
* fix pre-commit
* revert to source: model uploader
Once we have the checkpoint, we export it to ExecuTorch with a max_seq_length/max_context_length of 1024 to the XNNPACK backend as follows.
595
+
Once we have the checkpoint, we export it to ExecuTorch with a max_seq_length/max_context_length of 1024 to the XNNPACK backend as follows.
596
596
597
597
[TODO: fix config path in note where necessary]
598
598
(Note: ExecuTorch LLM export script requires config.json have certain key names. The correct config to use for the LLM export script is located at examples/models/qwen3/config/4b_config.json within the ExecuTorch repo.)
0 commit comments