Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,8 @@ from threading import Thread
|
|
8 |
|
9 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
10 |
tokenizer = AutoTokenizer.from_pretrained("soketlabs/pragna-1b", token=os.environ.get('HF_TOKEN'))
|
11 |
-
model = AutoModelForCausalLM.from_pretrained("soketlabs/pragna-1b
|
|
|
12 |
|
13 |
# using CUDA for an optimal experience
|
14 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
8 |
|
9 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
10 |
tokenizer = AutoTokenizer.from_pretrained("soketlabs/pragna-1b", token=os.environ.get('HF_TOKEN'))
|
11 |
+
model = AutoModelForCausalLM.from_pretrained("soketlabs/pragna-1b", token=os.environ.get('HF_TOKEN'))
|
12 |
+
model.load_adapter('soketlabs/pragna-1b-it-v0.1', token=os.environ.get('HF_TOKEN'))
|
13 |
|
14 |
# using CUDA for an optimal experience
|
15 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|