Skip to content

Commit

Permalink
Update onnxruntime/python/tools/transformers/models/llama/llama_torch.py
Browse files Browse the repository at this point in the history
committed suggestion

Co-authored-by: kunal-vaishnavi <[email protected]>
  • Loading branch information
kobby-kobbs and kunal-vaishnavi authored Aug 13, 2024
1 parent 6af5245 commit 033f6ee
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def setup_torch_model(args, location, auth, torch_dtype=torch.float32, device=No
)
l_config.use_cache = True
l_config._attn_implementation = "eager" # "eager" uses LlamaAttention for attention layer
# l_config.num_hidden_layers = 1
llama = AutoModelForCausalLM.from_pretrained(
location,
use_auth_token=auth,
Expand Down

0 comments on commit 033f6ee

Please sign in to comment.