Skip to content

Fix missing BPE token conversion step in Chameleon - #44582

Merged
hmellor merged 1 commit into
huggingface:mainfrom
yonigozlan:fix-chameleon
Mar 11, 2026
Merged

hmellor merged 1 commit into
huggingface:mainfrom
yonigozlan:fix-chameleon

Conversation

@yonigozlan

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix an issue introduced in #42564 . The refactor embedded raw image tokens instead of BPE tokens, causing the model to output gibberish. This fix adds back the image tokens to BPE tokens conversion before embedding.

Cc @hmellor @zucchini-nlp

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: chameleon

@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.

@zucchini-nlp zucchini-nlp 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.

Ah nice catch!

@hmellor
hmellor added this pull request to the merge queue Mar 11, 2026
Merged via the queue into huggingface:main with commit 1c70fdb Mar 11, 2026
22 checks passed
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