Upgrade to Transformers v4.55#2209
Conversation
|
@regisss What do you think about moving changes related to:
If you agree, I could prepare such PRs and then this branch could be rebased |
|
@pbielak I don't have a strong opinion on this, go ahead if you prefer reviewing a shorter PR 🙂 |
|
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. |
| - add new args token_idx | ||
| """ | ||
|
|
||
| if (input_ids is None) ^ (inputs_embeds is not None): |
There was a problem hiding this comment.
It's done in PaliGemmaModel: https://github.com/huggingface/transformers/blob/v4.55.4/src/transformers/models/paligemma/modeling_paligemma.py#L324
But I expect this model to fail and to require a fix, I need to run the tests.
There was a problem hiding this comment.
So if it's in the upstream, why is it removed here?
There was a problem hiding this comment.
What I mean is that the upstream now does it in the class PaliGemmaModel and not in PaliGemmaForConditionalGeneration anymore. That's why I'm removing it from GaudiPaliGemmaForConditionalGeneration.
|
Merging as discussed with @astachowiczhabana. Will solve known ongoing issues in new PRs. |
Co-authored-by: IlyasMoutawwakil <ilyas.moutawwakil@gmail.com>
|
LGTM |
Co-authored-by: IlyasMoutawwakil <ilyas.moutawwakil@gmail.com>
Co-authored-by: regisss <15324346+regisss@users.noreply.github.com> Co-authored-by: IlyasMoutawwakil <ilyas.moutawwakil@gmail.com>
What does this PR do?
Aligning the codebase with Transformers v4.55.2.
Known issues:
Before submitting