Skip to content

Commit 41546a8

Browse files
committed
try transformers==4.49.0
1 parent fe9faa3 commit 41546a8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: tests/py/dynamo/models/test_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def test_bert_base_uncased(ir):
116116
from transformers import BertModel
117117

118118
model = BertModel.from_pretrained("bert-base-uncased").cuda().eval()
119-
input = torch.randint(0, 1, (1, 14), dtype=torch.int32).to("cuda")
120-
input2 = torch.randint(0, 1, (1, 14), dtype=torch.int32).to("cuda")
119+
input = torch.randint(0, 2, (1, 14), dtype=torch.int32).to("cuda")
120+
input2 = torch.randint(0, 2, (1, 14), dtype=torch.int32).to("cuda")
121121

122122
compile_spec = {
123123
"inputs": [

Diff for: tests/py/dynamo/models/test_models_export.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def test_bert_base_uncased(ir):
123123
model = (
124124
BertModel.from_pretrained("bert-base-uncased", return_dict=False).cuda().eval()
125125
)
126-
input = torch.randint(0, 1, (1, 14), dtype=torch.int32).to("cuda")
127-
input2 = torch.randint(0, 1, (1, 14), dtype=torch.int32).to("cuda")
126+
input = torch.randint(0, 2, (1, 14), dtype=torch.int32).to("cuda")
127+
input2 = torch.randint(0, 2, (1, 14), dtype=torch.int32).to("cuda")
128128

129129
compile_spec = {
130130
"inputs": [

Diff for: tests/py/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ pytest>=8.2.1
88
pytest-xdist>=3.6.1
99
pyyaml
1010
timm>=1.0.3
11-
transformers==4.40.2; python_version < "3.13"
11+
transformers==4.49.0
1212
nvidia-modelopt[deploy,hf,torch]~=0.17.0; python_version < "3.13"
1313
--extra-index-url https://pypi.nvidia.com

0 commit comments

Comments
 (0)