Skip to content

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

Open
wallashss wants to merge 2 commits into
foundation-model-stack:mainfrom
wallashss:wallas-rev
Open

feat: added revision kwargs parameters to get model from hugging face#468
wallashss wants to merge 2 commits into
foundation-model-stack:mainfrom
wallashss:wallas-rev

Conversation

@wallashss
Copy link
Copy Markdown

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
Comment thread fms/models/hf/utils.py Outdated
def _infer_model_configuration(
model_id_or_path: str | os.PathLike,
download_weights: bool = True,
revision: str = None,
Copy link
Copy Markdown
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]

Comment thread fms/models/hf/utils.py Outdated
checkpoint_sharding: Optional[str] = None,
group: Optional[ProcessGroup] = None,
initialize_model_with_weights: bool = True,
revision: str = None
Copy link
Copy Markdown
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