Skip to content

fix: download qwen model to the correct directory#85

Merged
kevin-mindverse merged 1 commit intomindverse:masterfrom
xyb:fix_script
Mar 28, 2025
Merged

fix: download qwen model to the correct directory#85
kevin-mindverse merged 1 commit intomindverse:masterfrom
xyb:fix_script

Conversation

@xyb
Copy link
Copy Markdown
Contributor

@xyb xyb commented Mar 27, 2025

otherwise the program will raise an error:

$ sh -x lpm_kernel/L2/download_model.sh
+ python lpm_kernel/L2/utils.py Qwen/Qwen2.5-0.5B-Instruct
2025-03-26 16:55:56,135 - download_logger - INFO - Starting download of model: Qwen/Qwen2.5-0.5B-Instruct
2025-03-26 16:55:56,135 - download_logger - INFO - Will be saved to: /Users/xyb/projects/second-me/resources/L2/base_models/Qwen/Qwen2.5-0.5B-Instruct
2025-03-26 16:55:56,135 - download_logger - ERROR - Error downloading model: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'Qwen/Qwen/Qwen2.5-0.5B-Instruct'. Use `repo_type` argument if needed.
Traceback (most recent call last):
  File "/Users/xyb/projects/second-me/lpm_kernel/L2/utils.py", line 555, in <module>
    save_hf_model(sys.argv[1])
  File "/Users/xyb/projects/second-me/lpm_kernel/L2/utils.py", line 392, in save_hf_model
    files = list_repo_files(hf_model_name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xyb/miniconda3/envs/second-me/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn
    validate_repo_id(arg_value)
  File "/Users/xyb/miniconda3/envs/second-me/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 154, in validate_repo_id
    raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'Qwen/Qwen/Qwen2.5-0.5B-Instruct'. Use `repo_type` argument if needed.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@yingapple yingapple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contribution

@kevin-mindverse kevin-mindverse self-requested a review March 27, 2025 05:53
@kevin-mindverse kevin-mindverse merged commit 3d0a8a7 into mindverse:master Mar 28, 2025
1 check passed
@xyb xyb deleted the fix_script branch April 2, 2025 09:01
@ScarletttMoon
Copy link
Copy Markdown
Collaborator

Hi @xyb 👋,

Thank you so much for your contribution to this PR! Your work is really appreciated. If you haven’t already, feel free to join our Discord community here: Discord Invite Link — it's a great place to connect with our team and other contributors, share ideas, and stay up to date with the project! You can find me as @scarlettt_moon there!

Also, feel free to add me directly on WeChat (id: Neon_MoonS) if you’d like to chat more or have any questions!

Looking forward to connecting! 😊

Heterohabilis pushed a commit to Heterohabilis/Second-Me that referenced this pull request May 29, 2025
EOMZON pushed a commit to EOMZON/Second-Me that referenced this pull request Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants