tingwei.wang commited on
Commit
1b3c240
·
1 Parent(s): 7ab7ce6

feat:change device from cuda to cpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
12
  MODEL_ID,
13
  trust_remote_code=True,
14
  torch_dtype=torch.bfloat16
15
- ).to("cuda").eval()
16
 
17
  @spaces.GPU
18
  def model_inference(input_dict, history):
 
12
  MODEL_ID,
13
  trust_remote_code=True,
14
  torch_dtype=torch.bfloat16
15
+ ).to("cpu").eval()
16
 
17
  @spaces.GPU
18
  def model_inference(input_dict, history):