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

use diff internal model in tests #33387

Merged
merged 2 commits into from
Sep 11, 2024
Merged

use diff internal model in tests #33387

merged 2 commits into from
Sep 11, 2024

Conversation

itazap
Copy link
Collaborator

@itazap itazap commented Sep 9, 2024

Update to use internal model - @require_read_token only works for internal

other changes:

  • need to pass bos_token and eos_token because renaming the internal repo to "llama-3" from "llama3" resulted in the AutoTokenizer instantiating with LlamaTokenizerFast as opposed to PreTrainedTokenizerFast. This is good but needs to have bos_token and eos_token updated to the Llama-3 values instead of the default <s> and </s> cc @ydshieh
    (related to tiktoken support PR Support reading tiktoken tokenizer.model file #31656)

@ArthurZucker

@itazap itazap requested a review from ArthurZucker September 9, 2024 10:48
@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.

@itazap itazap marked this pull request as ready for review September 9, 2024 11:21
@itazap itazap requested a review from ydshieh September 10, 2024 08:31
@ydshieh
Copy link
Collaborator

ydshieh commented Sep 10, 2024

Hi! Could you briefly explain what are the other changes for (except that of changing the repo id.)?

(for example, those are necessary changes for #31316, or it's for something else?)

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

LGTM to me for the use of different repo.

Regarding other changes, I will leave it to Arthur (in any case we need a core maintainer's review)

Thanks

@itazap itazap merged commit 781bbc4 into main Sep 11, 2024
12 checks passed
@itazap itazap deleted the change_model_ref_in_tests branch September 11, 2024 09:27
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* use diff internal model in tests

* use diff internal model in tests
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