Update moondream.py
Browse files- moondream.py +1 -1
moondream.py
CHANGED
|
@@ -239,7 +239,7 @@ class MoondreamModel(nn.Module):
|
|
| 239 |
|
| 240 |
lora = (
|
| 241 |
variant_state_dict(settings["variant"], device=self.device)
|
| 242 |
-
if settings is not None and
|
| 243 |
else None
|
| 244 |
)
|
| 245 |
|
|
|
|
| 239 |
|
| 240 |
lora = (
|
| 241 |
variant_state_dict(settings["variant"], device=self.device)
|
| 242 |
+
if settings is not None and "variant" in settings
|
| 243 |
else None
|
| 244 |
)
|
| 245 |
|