#Uploading Lora adapter to Huggingface fail

8 messages · Page 1 of 1 (latest)

gloomy pelican
#

I am creating empty repo here https://huggingface.co/pacozaa/lora_model_tinyllama_alpaca_first
then run this command in colab after training tinyllama notebook
model.push_to_hub("pacozaa/lora_model_tinyllama_alpaca_first", token = "hf_xx") # Online saving
and I got this error

Uploading the following files to pacozaa/lora_model_tinyllama_alpaca_first: adapter_config.json,README.md,adapter_model.safetensors
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/unsloth/save.py in unsloth_push_to_hub(self, repo_id, use_temp_dir, commit_message, private, token, max_shard_size, create_pr, safe_serialization, revision, commit_description, tags, **deprecated_kwargs)

14 frames
TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

HTTPError                                 Traceback (most recent call last)
HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/api/models/pacozaa/lora_model_tinyllama_alpaca_first/preupload/main

The above exception was the direct cause of the following exception:

HfHubHTTPError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
    331         # Convert `HTTPError` into a `HfHubHTTPError` to display request information
    332         # as well (request id and/or server error message)
--> 333         raise HfHubHTTPError(str(e), response=response) from e
HfHubHTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/api/models/pacozaa/lora_model_tinyllama_alpaca_first/preupload/main (Request ID: Root=1-65fa602c-05fff13e71297bc61bf9aeb4;34ee4815-004e-48a3-8df0-7f141193e9db)
Forbidden: you must use a write token to upload to a repository.

I use token found in my profile. Please help

abstract zephyr
#

it says u dont have write persomissions

#

did u set the token up correctly

#

mine says WRITE

gloomy pelican
#

mine says READ.....OH thanksss

abstract zephyr
#

🙂