adnlp commited on
Commit
295706c
·
verified ·
1 Parent(s): 9f2785e

Upload MultiModalTimer.py

Browse files
Files changed (1) hide show
  1. MultiModalTimer.py +1 -1
MultiModalTimer.py CHANGED
@@ -71,7 +71,7 @@ class MultiModalTimerModel(PreTrainedModel):
71
  text_model = AutoModelForCausalLM.from_pretrained(
72
  "Qwen/Qwen2-1.5B-Instruct",
73
  torch_dtype=torch.bfloat16,
74
- device_map="auto",
75
  attn_implementation="sdpa"
76
  ).model
77
  state_dict = text_model.state_dict()
 
71
  text_model = AutoModelForCausalLM.from_pretrained(
72
  "Qwen/Qwen2-1.5B-Instruct",
73
  torch_dtype=torch.bfloat16,
74
+ device_map="cpu",
75
  attn_implementation="sdpa"
76
  ).model
77
  state_dict = text_model.state_dict()