StevenChen16 commited on
Commit
e0d43a9
1 Parent(s): 79c5347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def process_paragraph(paragraph, progress=gr.Progress()):
32
  # Load model and tokenizer
33
  model_name = "princeton-nlp/Llama-3-Instruct-8B-SimPO"
34
  tokenizer = AutoTokenizer.from_pretrained(model_name)
35
- model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype=torch.float16, load_in_8bit=True)
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
  model.to(device)
38
 
 
32
  # Load model and tokenizer
33
  model_name = "princeton-nlp/Llama-3-Instruct-8B-SimPO"
34
  tokenizer = AutoTokenizer.from_pretrained(model_name)
35
+ model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype=torch.float16)
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
  model.to(device)
38