Spaces:
Sleeping
🚩 Report: Not working
When using the @spaces.GPU decorator:
An error occurred: Can't load the model for 'google/t5-efficient-tiny-nh8'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'google/t5-efficient-tiny-nh8' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack., TB: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3897, in from_pretrained
).start()
File "/usr/local/lib/python3.10/multiprocessing/process.py", line 118, in start
assert not _current_process._config.get('daemon'),
AssertionError: daemonic processes are not allowed to have children
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/app/app.py", line 17, in fine_tune_model
model = AutoModelForSeq2SeqLM.from_pretrained(model_name.strip(), num_labels=2)
File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained
return model_class.from_pretrained(
File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3941, in from_pretrained
raise EnvironmentError(
OSError: Can't load the model for 'google/t5-efficient-tiny-nh8'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'google/t5-efficient-tiny-nh8' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.
The code will work if the model is loaded first then passed in as an argument to hte fine tune function, however it appears that the Hugging Faces pro subscription is not in effect.