Tonic commited on
Commit
3094485
1 Parent(s): ca44a43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -19,6 +19,7 @@ if not os.path.exists(offload_folder):
19
 
20
  model = AutoModelForCausalLM.from_pretrained(model_name, device_map='auto', offload_folder=offload_folder)
21
  tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False,)
 
22
 
23
  class OrcaChatBot:
24
  def __init__(self, model, tokenizer, system_message="You are Orca, an AI language model created by Microsoft. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior."):
 
19
 
20
  model = AutoModelForCausalLM.from_pretrained(model_name, device_map='auto', offload_folder=offload_folder)
21
  tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False,)
22
+ model.to(torch.bfloat16)
23
 
24
  class OrcaChatBot:
25
  def __init__(self, model, tokenizer, system_message="You are Orca, an AI language model created by Microsoft. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior."):