RuntimeError: Unsloth: `unsloth/Meta-Llama-3.1-8B-bnb-4bit` is not a base model or a PEFT model.

#3
by yorickdejong - opened

Hi there, when trying to fine tune the model, I get the following error:

RuntimeError: Unsloth: unsloth/Meta-Llama-3.1-8B-bnb-4bit is not a base model or a PEFT model.
We could not locate a config.json or adapter_config.json file.
Are you certain the model name is correct? Does it actually exist?

Previous runs with Llama3.0 worked well, however, since trying llama3.1 I am receiving the error. According to the files shared in this repo, it seems that the model does contain a config.json.

Thanks!

Same error here

same error for me too

+1
Encountering the same error for the 405B model as well.

Unsloth AI org

@ewre324 @meabo @VALilly @yorickdejong Apologies on the error!
Could you all try reinstalling Unsloth?

pip uninstall unsloth -y
pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git

@danielhanchen Thanks for sharing an approach to solving the issue by upgrading the unsloth package. Unfortunately, the issue persists after uninstalling and upgrading with the path you shared above.

Currently, I am getting this error message.

/home/devops/miniconda3/envs/emsd_demo/lib/python3.11/site-packages/peft/utils/other.py:581: UserWarning: Unable to fetch remote file due to the following error (ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')), '(Request ID: c9ad27cd-574c-43b8-8c2f-a49f60e4050a)') - silently ignoring the lookup for the file config.json in unsloth/llama-3-8b-bnb-4bit.
warnings.warn(
/home/devops/miniconda3/envs/emsd_demo/lib/python3.11/site-packages/peft/utils/save_and_load.py:154: UserWarning: Could not find a config file in unsloth/llama-3-8b-bnb-4bit - will assume that the vocabulary was not modified.
warnings.warn(
{'train_runtime': 610.2927, 'train_samples_per_second': 5.899, 'train_steps_per_second': 0.492, 'train_loss': 0.5799148793518544, 'epoch': 10.71}

As if this isn't enough, it hasn't been possible to revert to the old package as I keep getting same error message after several trials of reinstalling unsloth

update Transformer.

pip install --upgrade transformers

https://github.com/unslothai/unsloth/issues/801

Sign up or log in to comment