Skip to content

Conversation

@BenjaminBossan
Copy link
Member

Should fix #1011

@BenjaminBossan BenjaminBossan changed the title FIX Don't assume model_config contains model_type FIX Don't assume model_config contains the key model_type Oct 10, 2023
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 10, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks @BenjaminBossan !

@BenjaminBossan BenjaminBossan merged commit eced2ed into huggingface:main Oct 11, 2023
@BenjaminBossan BenjaminBossan deleted the fix-dont-assume-model-type-exists-in-config branch October 11, 2023 08:34
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
cyyever pushed a commit to cyyever/peft that referenced this pull request Sep 4, 2025
* Update utils.py

update compute_accuracy to deal with the cases where str_chosen and str_rej got the same scores, which is probably what the developers don't want

* Update utils.py

updated so only warning is reserved

* Update trl/trainer/utils.py

Co-authored-by: Leandro von Werra <lvwerra@users.noreply.github.com>

---------

Co-authored-by: Leandro von Werra <lvwerra@users.noreply.github.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.

Create_or_update_model_card

3 participants