upperwal commited on
Commit
0634305
·
verified ·
1 Parent(s): 42ac4a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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-it-v0.1", token=os.environ.get('HF_TOKEN'))
 
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')