Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Oct 24, 2024
1 parent 72ca53c commit d1236dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions optimum/exporters/onnx/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,14 +1223,11 @@ def _prepare_4d_causal_attention_mask_with_cache_position_patched(
return causal_mask


from transformers import Phi3ForCausalLM


class Phi3ModelPatcher(ModelPatcher):
def __init__(
self,
config: "OnnxConfig",
model: Phi3ForCausalLM,
model: Union["PreTrainedModel", "TFPreTrainedModel"],
model_kwargs: Optional[Dict[str, Any]] = None,
):
super().__init__(config, model, model_kwargs)
Expand Down

0 comments on commit d1236dd

Please sign in to comment.