Spaces:
Runtime error
Runtime error
π Fixed issue with BaseModel of Qwen2_5 not being initialised
Browse files- requirements.txt +1 -1
- src/utils/qwen_inference.py +1 -0
requirements.txt
CHANGED
|
@@ -8,4 +8,4 @@ PyJWT
|
|
| 8 |
pydantic
|
| 9 |
torch
|
| 10 |
torchvision
|
| 11 |
-
|
|
|
|
| 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 |
)
|