Skip to content

Commit

Permalink
big boi llama
Browse files Browse the repository at this point in the history
  • Loading branch information
cassanof committed Aug 28, 2023
1 parent 45c7f2c commit 0a9ebab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programming_runs/generators/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def __init__(self):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
"codellama/CodeLlama-7b-Instruct-hf",
"codellama/CodeLlama-34b-Instruct-hf",
add_eos_token=True,
add_bos_token=True,
padding_side='left'
)
model = AutoModelForCausalLM.from_pretrained(
"codellama/CodeLlama-7b-Instruct-hf",
"codellama/CodeLlama-34b-Instruct-hf",
torch_dtype=torch.bfloat16,
device_map="auto",
)
Expand Down

0 comments on commit 0a9ebab

Please sign in to comment.