Lemorra commited on
Commit
cb0d18d
Β·
1 Parent(s): 1827082

πŸ› Fixed issue with BaseModel of Qwen2_5 not being initialised

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. src/utils/qwen_inference.py +1 -0
requirements.txt CHANGED
@@ -8,4 +8,4 @@ PyJWT
8
  pydantic
9
  torch
10
  torchvision
11
- huggingface_hub[hf_xet]
 
8
  pydantic
9
  torch
10
  torchvision
11
+ hf_xet
src/utils/qwen_inference.py CHANGED
@@ -11,6 +11,7 @@ class Qwen2_5(BaseModel):
11
  processor: Optional[AutoProcessor] = None
12
 
13
  def __init__(self, model_path: str):
 
14
  self.model = AutoModelForVision2Seq.from_pretrained(
15
  model_path, torch_dtype="auto", device_map="auto"
16
  )
 
11
  processor: Optional[AutoProcessor] = None
12
 
13
  def __init__(self, model_path: str):
14
+ super().__init__()
15
  self.model = AutoModelForVision2Seq.from_pretrained(
16
  model_path, torch_dtype="auto", device_map="auto"
17
  )