Skip to content

Commit

Permalink
fix for old python
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Dec 9, 2023
1 parent bd23a0b commit 4c0a2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_language_model_for_completion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from unittest.mock import Mock
from typing import Any
from typing import Any, Dict

from transformers import (
AutoTokenizer,
Expand Down Expand Up @@ -47,7 +47,7 @@ def prepare_inputs_for_generation(
self,
input_ids: torch.Tensor,
**kwargs,
) -> dict[str, Any]:
) -> Dict[str, Any]:
model_inputs = {"input_ids": input_ids}
return model_inputs

Expand Down

0 comments on commit 4c0a2be

Please sign in to comment.