File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -579,9 +579,10 @@ def test_model_with_dotted_name_and_relative_imports(self):
579
579
Test for issue #40496: AutoModel.from_pretrained() doesn't work for models with '.' in their name
580
580
when there's a relative import.
581
581
582
- Without the fix, this raises: ModuleNotFoundError: No module named 'transformers_modules.test-model_v1'
582
+ Without the fix, this raises: ModuleNotFoundError:
583
+ No module named 'transformers_modules.hf-internal-testing.remote_code_model_with_dots_v1'
583
584
"""
584
- model_id = "hf-internal-testing/remote_code_model_with_dots "
585
+ model_id = "hf-internal-testing/remote_code_model_with_dots_v1.0 "
585
586
586
587
model = AutoModel .from_pretrained (model_id , trust_remote_code = True )
587
588
self .assertIsNotNone (model )
You can’t perform that action at this time.
0 commit comments