Volker Janz commited on
Commit
242da6f
·
1 Parent(s): 30068e0

Set torch_dtype to torch.float16

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ title = "Mental Health Chatbot"
12
  description = "This bot is using a fine-tuned version of meta-llama/Llama-2-7b-chat-hf"
13
 
14
  tokenizer = AutoTokenizer.from_pretrained("vojay/Llama-2-7b-chat-hf-mental-health")
15
- model = AutoAdapterModel.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
16
  adapter = model.load_adapter("vojay/Llama-2-7b-chat-hf-mental-health")
17
  model.active_adapters = adapter
18
 
 
12
  description = "This bot is using a fine-tuned version of meta-llama/Llama-2-7b-chat-hf"
13
 
14
  tokenizer = AutoTokenizer.from_pretrained("vojay/Llama-2-7b-chat-hf-mental-health")
15
+ model = AutoAdapterModel.from_pretrained("meta-llama/Llama-2-7b-chat-hf", torch_dtype=torch.float16)
16
  adapter = model.load_adapter("vojay/Llama-2-7b-chat-hf-mental-health")
17
  model.active_adapters = adapter
18