Yehor commited on
Commit
50bc7d1
·
verified ·
1 Parent(s): 80bfe61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,9 +18,8 @@ max_seq_length = 2048
18
  tokenizer = AutoTokenizer.from_pretrained("ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk")
19
  model = AutoModelForCausalLM.from_pretrained(
20
  "ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk",
21
- device='cuda',
22
  torch_dtype=torch.bfloat16,
23
- )
24
  # compiled_model = torch.compile(model, mode="default")
25
 
26
 
 
18
  tokenizer = AutoTokenizer.from_pretrained("ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk")
19
  model = AutoModelForCausalLM.from_pretrained(
20
  "ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk",
 
21
  torch_dtype=torch.bfloat16,
22
+ ).to('cuda')
23
  # compiled_model = torch.compile(model, mode="default")
24
 
25