[Python] HFValidation Error for calling the repo-id incorrectly, what am I doing wrong?

Discussão em 'Python' iniciado por Stack, Setembro 30, 2024.

  1. Stack

    Stack Membro Participativo

    HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'meta-llama/llama3.1/8b-instruct-fp16'. Use repo_type argument if needed.

    tokenizer = AutoTokenizer.from_pretrained("meta-llama/llama3.1/8b-instruct-fp16") model = AutoModelForCausalLM.from_pretrained("meta-llama/llama3.1/8b-instruct-fp16")

    This is my error and the code that seems to be the issue but I'm not sure how to fix it.

    I've tried entering meta-llama/llama3.1/8b-instruct-fp16 and I've also tried entering the direct path address. I'm not sure what I'm doing wrong. I've also tried giving the code to ChatGPT and that didn't work either.

    Continue reading...

Compartilhe esta Página