Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|