Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

feat: added revision kwargs parameters to get model from hugging face#468

Open
wallashss wants to merge 2 commits intofoundation-model-stack:mainfoundation-model-stack/foundation-model-stack:mainfrom
wallashss:wallas-revwallashss/foundation-model-stack:wallas-revCopy head branch name to clipboard
Open

feat: added revision kwargs parameters to get model from hugging face#468
wallashss wants to merge 2 commits intofoundation-model-stack:mainfoundation-model-stack/foundation-model-stack:mainfrom
wallashss:wallas-revwallashss/foundation-model-stack:wallas-revCopy head branch name to clipboard

Conversation

@wallashss
Copy link

This PR adds the support to set revision as kwargs on get_model or as_fms_model.

@JRosenkranz JRosenkranz self-requested a review September 15, 2025 15:19
def _infer_model_configuration(
model_id_or_path: str | os.PathLike,
download_weights: bool = True,
revision: str = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

type hint here should be Optional[str]

checkpoint_sharding: Optional[str] = None,
group: Optional[ProcessGroup] = None,
initialize_model_with_weights: bool = True,
revision: str = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

type hint should be Optional[str]

Signed-off-by: Wallas Santos <wallashss@ibm.com>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.