Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print_trainable_parameters - format % to be sensible #1648

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

stas00
Copy link
Contributor

@stas00 stas00 commented Apr 13, 2024

This PR replaces trainable%: 0.5916145025956931 with trainable%: 0.5916 as it's done already in src/peft/mixed_model.py

Probably .2f is more than enough, but since the other one uses .4f using that.

This PR replaces `trainable%: 0.5916145025956931` with `trainable%: 0.5916` as it's done already in `src/peft/mixed_model.py`

probably `.2f` is more than enough, but since the other one uses `.4f` using that.
@HuggingFaceDocBuilderDev

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.

Copy link
Member

@BenjaminBossan BenjaminBossan 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 this small improvement. This has indeed bothered me too in the past. I think .2f wouldn't be enough, as there are some methods with really low numbers of trainable params, but .4f should be good.

@BenjaminBossan BenjaminBossan merged commit 56773b9 into huggingface:main Apr 15, 2024
14 checks passed
@stas00 stas00 deleted the patch-1 branch April 15, 2024 15:56
DTennant pushed a commit to DTennant/peft that referenced this pull request Apr 19, 2024
This PR replaces `trainable%: 0.5916145025956931` with `trainable%:
0.5916` as it's done already in `src/peft/mixed_model.py`.
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.

3 participants