Akjava commited on
Commit
3715482
Β·
verified Β·
1 Parent(s): ff4180a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -16,8 +16,10 @@ def init():
16
  #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
17
 
18
  model_id = "google/gemma-2-9b-it"
 
19
 
20
  device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
21
  dtype = torch.bfloat16
22
 
23
  tokenizer = AutoTokenizer.from_pretrained(model_id, token=huggingface_token)
 
16
  #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
17
 
18
  model_id = "google/gemma-2-9b-it"
19
+ model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
20
 
21
  device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
22
+ device = "cuda"
23
  dtype = torch.bfloat16
24
 
25
  tokenizer = AutoTokenizer.from_pretrained(model_id, token=huggingface_token)