Skip to content

Conversation

@EduardDurech
Copy link
Collaborator

No description provided.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to allow using Hugging Face model IDs with use_shm. The implementation correctly adds logic to download models from the Hub. However, I've found a critical issue where this logic is incorrectly tied to the use_shm flag, causing it to fail when use_shm is false. Additionally, the error handling is too broad and silences all exceptions, which will make debugging difficult. I've provided suggestions to fix these issues.

@EduardDurech
Copy link
Collaborator Author

ci unrelated

# Save to a local path for persistence.
local_path = copy_local_path_from_hdfs(src, cache_dir, filelock, verbose, always_recopy)

if use_shm and isinstance(local_path, str) and not os.path.exists(local_path):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why only download model when use_shm=True?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't want to cause issues with other paths using the method, if you want I can have all calls

@wuxibin89 wuxibin89 merged commit 152ce6a into volcengine:main Oct 10, 2025
93 of 129 checks passed
masoudhashemi pushed a commit to masoudhashemi/verl that referenced this pull request Oct 19, 2025
techkang pushed a commit to techkang/verl that referenced this pull request Oct 31, 2025
mtian8 pushed a commit to mtian8/verl that referenced this pull request Nov 1, 2025
wangboxiong320 pushed a commit to wangboxiong320/verl that referenced this pull request Nov 1, 2025
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.

2 participants