Skip to content

Commit

Permalink
remove unnecessary import
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Dupre <[email protected]>
  • Loading branch information
xadupre committed Jun 17, 2024
1 parent f50e5d6 commit 15799d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions onnxscript/tools/transformers_models/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def _prepare_config_and_inputs(
use_token_type_ids: bool = False,
use_labels: bool = False,
) -> tuple[Any, ...]:
import torch

input_ids = onnxscript.tools.transformers_models.ids_tensor(
[batch_size, seq_length], vocab_size
)
Expand Down Expand Up @@ -87,7 +85,6 @@ def get_mistral_model(
<https://huggingface.co/docs/transformers/main/en/model_doc/mistral#transformers.MistralConfig>`_.
The parameters are chosen for a unit test configuration.
"""
import torch
from transformers import MistralConfig
from transformers.models.mistral.modeling_mistral import MistralModel

Expand Down

0 comments on commit 15799d5

Please sign in to comment.