We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6a3374 commit 61d8fddCopy full SHA for 61d8fdd
1 file changed
inference/models/owlv2/owlv2.py
@@ -123,9 +123,7 @@ def __new__(cls, huggingface_id: str):
123
124
if OWLV2_COMPILE_MODEL:
125
torch._dynamo.config.suppress_errors = True
126
- model = monkey_patch_vision_encoder_before_compilation(
127
- model
128
- )
+ model = monkey_patch_vision_encoder_before_compilation(model)
129
model.owlv2.vision_model = torch.compile(model.owlv2.vision_model)
130
instance.model = model
131
cls._instances[huggingface_id] = instance
0 commit comments