Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
import torch
|
4 |
|
5 |
# Cargar el modelo y el tokenizador
|
6 |
-
model_name = "BSC-LT/salamandra-
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)
|
9 |
|
|
|
3 |
import torch
|
4 |
|
5 |
# Cargar el modelo y el tokenizador
|
6 |
+
model_name = "BSC-LT/salamandra-2b"
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)
|
9 |
|