Can't push adapter model to organisation

I was trying to push adapters but it constantly gives this error:

huggingface_hub.utils.validators.HFValidationError: Repo id must use alphanumeric chars or ‘-’, '', ‘.’, ‘–’ and ‘…’ are forbidden, ‘-’ and ‘.’ cannot start or end the name, max length is 96: ‘aXFQcyOEpksZmnbENRFdTmaKaSBhTYFjRfYIgsuTegBoJlhMjqzzsScRkstravxQFPkmstYSjKcEZZmMVFaYRBOHilKgotGBWwqTFBhzVJrVpNzOPLjyYMKXkYeqKkxj’.

I changed repo_name multiple times, yet this error persists.

model.push_adapter_to_hub(
        repo_name= "hey",
        adapter_name= f"{adapter_name}",
        organization="UDApter",
        adapterhub_tag="nli/multinli",
        datasets_tag="multi_nli"
    )

Used “hey” here to test as repo name with “_” and “-” were giving errors. Any help will be appreciated. Thanks!

hey, have you figured out the error? encountering the same issue here.

Try updating adapter-tranformer library! (I don’t remember what exactly I did but you can follow my progress here: unexpected keyword argument 'organization' in `push_adapter_to_hub` · Issue #498 · adapter-hub/adapter-transformers · GitHub)

1 Like