Skip to content

Commit

Permalink
formatting for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Jun 10, 2023
1 parent c0bea31 commit ba8bf40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ def get_multi_line_input() -> Optional[str]:


def do_inference(cfg, model, tokenizer, prompter="AlpacaPrompter"):
default_tokens = {
"unk_token": "<unk>",
"bos_token": "<s>",
"eos_token": "</s>"
}
default_tokens = {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>"}

for token, symbol in default_tokens.items():
# If the token isn't already specified in the config, add it
Expand Down

0 comments on commit ba8bf40

Please sign in to comment.