Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tloen committed Apr 13, 2023
1 parent ea0e96b commit 65fb822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def generate_and_tokenize_prompt(data_point):
user_prompt = prompter.generate_prompt(
data_point["instruction"], data_point["input"]
)
tokenized_user_prompt = tokenize(user_prompt, add_eos_token=add_eos_token)
tokenized_user_prompt = tokenize(
user_prompt, add_eos_token=add_eos_token
)
user_prompt_len = len(tokenized_user_prompt["input_ids"])

if add_eos_token:
Expand Down

0 comments on commit 65fb822

Please sign in to comment.