Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 6, 2025
commit b531535b823a26a01aa78c6c696e35cabae70a1b
5 changes: 4 additions & 1 deletion thunder/tests/test_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from transformers.models.qwen2 import Qwen2Config, Qwen2ForCausalLM
from transformers.models.phi3 import Phi3Config, Phi3ForCausalLM

#
# nanoGPT tests
#
Expand Down Expand Up @@ -410,10 +411,12 @@ def _get_model_config_pairs():

def phi3():
from transformers.models.phi3 import Phi3ForCausalLM, Phi3Config

return Phi3ForCausalLM, Phi3Config

def qwen2():
from transformers.models.qwen2 import Qwen2ForCausalLM, Qwen2Config

return Qwen2ForCausalLM, Qwen2Config

return [phi3(), qwen2()]
Expand All @@ -434,7 +437,7 @@ def test_hf_for_nemo(model_cls, config_cls):
max_position_embeddings=128,
use_cache=True,
tie_word_embeddings=False,
pad_token_id=15
pad_token_id=15,
)

with torch.device("cuda"):
Expand Down
Loading