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

fix bug in run_clm_sft_with_peft.py #674

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

fix bug in run_clm_sft_with_peft.py #674

wants to merge 1 commit into from

Conversation

STHSF
Copy link

@STHSF STHSF commented Jun 26, 2023

Adjust pad token before count the number of tokens

add pad token before count the number of tokens
@airaria
Copy link
Contributor

airaria commented Jun 26, 2023

We recommend using the Alpaca tokenizer when running run_clm_sft_with_peft.py.
The if statement is to check if the tokenizer is alpaca tokenizer (of which vocab size is 49954).

In #666, you used the merged tokenizer (of which vocab size is 49953), instead of the alpaca tokenizer from the chinese-alpaca-lora.
Therefore, if you switch to using the Alpaca tokenizer, the script should function correctly.

@ymcui ymcui marked this pull request as draft July 7, 2023 06:42
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.

None yet

2 participants