Skip to content

Commit

Permalink
removes extraneous code from model loading
Browse files Browse the repository at this point in the history
  • Loading branch information
djliden committed Mar 6, 2024
1 parent 771f14d commit 7f5a79c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@
" model_ckpt,\n",
")\n",
"\n",
"#tokenizer.pad_token = tokenizer.eos_token\n",
"\n",
"model = AutoModelForCausalLM.from_pretrained(\n",
" model_ckpt,\n",
" torch_dtype=torch.bfloat16,\n",
" device_map=\"auto\",\n",
" #attn_implementation=\"flash_attention_2\",\n",
" trust_remote_code=True,\n",
")"
]
Expand Down

0 comments on commit 7f5a79c

Please sign in to comment.