Daemontatox commited on
Commit
e4c72cc
·
verified ·
1 Parent(s): b491fe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,11 +48,11 @@ def initialize_model():
48
 
49
  model = AutoModelForCausalLM.from_pretrained(
50
  MODEL_ID,
51
- device_map="auto",
52
  quantization_config=quantization_config,
53
  torch_dtype=torch.bfloat16,
54
  trust_remote_code=True
55
- )
56
 
57
  return model, tokenizer
58
 
 
48
 
49
  model = AutoModelForCausalLM.from_pretrained(
50
  MODEL_ID,
51
+ device_map="cuda",
52
  quantization_config=quantization_config,
53
  torch_dtype=torch.bfloat16,
54
  trust_remote_code=True
55
+ ).to("cuda")
56
 
57
  return model, tokenizer
58