Python suffix stripping in transformers.dynamic_model_utils.get_class_in_module
strips additional characters
#31061
Closed
2 of 4 tasks
Labels
System Info
transformers
version: 4.41.1Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Try loading a model from the hub that has custom code files ending in
p
ory
For example
Expected behavior
The model should be loading fine. But what happens is the following error
Notice how the filename
configuration_evaclip
is cropped toconfiguration_evacli
The buggy code is here
transformers/src/transformers/dynamic_module_utils.py
Line 201 in 0a064dc
rstrip
removes all trailing characters that match these provided and not the.py
suffixThe text was updated successfully, but these errors were encountered: