Skip to content

Num parameters in model.safetensors.index.json#38531

Merged
LysandreJik merged 1 commit into
mainfrom
save-num-params-in-index
Jun 2, 2025
Merged

Num parameters in model.safetensors.index.json#38531
LysandreJik merged 1 commit into
mainfrom
save-num-params-in-index

Conversation

@LysandreJik

Copy link
Copy Markdown
Member

Serialize the number of parameters in the safetensors index so that the number of params is easily accessible even with sharded or quantized checkpoints

@ArthurZucker ArthurZucker left a comment

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.

I hope it's not breaking :)

@julien-c julien-c left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

approved

@LysandreJik

Copy link
Copy Markdown
Member Author

I hope it's not breaking :)

it's not breaking, it's enhancing 🤩

@LysandreJik LysandreJik merged commit afb35a1 into main Jun 2, 2025
21 checks passed
@LysandreJik LysandreJik deleted the save-num-params-in-index branch June 2, 2025 15:16
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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.

4 participants