Closed vinven7 closed 1 month ago
I was able to solve this problem in two ways:
(1) logging out and logging in again:
import huggingface_hub
huggingface_hub.logout()
(2) I loaded the model files one by one rather than as one folder.
for file in [ 'adapter_model.bin', 'adapter_config.json', 'adapter_model.safetensors']:
path = os.path.join(base_path, 'model', 'model_weights', file)
api.upload_file(
path_or_fileobj= path,
path_in_repo = file,
repo_id=repo_id,
repo_type='model',
commit_message=commit_message,
commit_description=commit_message,
)
HI All, I am having some trouble uploading a fine tuned model to the hugging face hub. When I do the following:
Whn I checked, I found that the model path that I created by
model.save('model_path')
does not have a 'model' subfolder. This was resolved by manually creating a 'model' folder inside model_path and then copying all the files into this folder.However, now I am getting the error:
Any suggestions on how to resolve this?
Environment (please complete the following information):