indiejoseph commited on
Commit
2cd80c0
·
verified ·
1 Parent(s): e4a6d0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ if not torch.cuda.is_available():
24
 
25
  if torch.cuda.is_available():
26
  model_id = "hon9kon9ize/CantoneseLLMChat-preview20240326"
27
- model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16,)
28
  model = torch.compile(model)
29
  tokenizer = AutoTokenizer.from_pretrained(model_id)
30
  tokenizer.use_default_system_prompt = False
 
24
 
25
  if torch.cuda.is_available():
26
  model_id = "hon9kon9ize/CantoneseLLMChat-preview20240326"
27
+ model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
28
  model = torch.compile(model)
29
  tokenizer = AutoTokenizer.from_pretrained(model_id)
30
  tokenizer.use_default_system_prompt = False