InternLM / xtuner

An efficient, flexible and full-featured toolkit for fine-tuning LLM (InternLM2, Llama3, Phi3, Qwen, Mistral, ...)
https://xtuner.readthedocs.io/zh-cn/latest/
Apache License 2.0
3.93k stars 308 forks source link

运行llava-llama-3-8b-v1_1报错:FileNotFoundError: can't find *_optim_states.pt files in directory #674

Closed Egber1t closed 5 months ago

Egber1t commented 6 months ago

微调时,已经生成work dirs。但是最后报错: raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'") FileNotFoundError: can't find *_optim_states.pt files in directory '/root/autodl-tmp/llava-llama-3-8b-v1_1'

config设置为 llm_name_or_path = '/root/autodl-tmp/Meta-Llama-3-8B-Instruct' visual_encoder_name_or_path = '/root/autodl-tmp/clip-vit-large-patch14-336'

Specify the pretrained pth

pretrained_pth = '/root/autodl-tmp/llava-llama-3-8b-v1_1' # noqa: E501

求解答谢谢

hhaAndroid commented 6 months ago

@Egber1t https://github.com/InternLM/xtuner/issues/671

Egber1t commented 6 months ago

为啥这里指向phi呢(好奇)

Egber1t commented 5 months ago

已解决需要更换成: https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-pth

Liu98C commented 5 months ago

已解决需要更换成: https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-pth 你好,为什么我更换后还是报错。 raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'") FileNotFoundError: can't find *_optim_states.pt files in directory '/home/bit/model/llava-llama-3-8b-v1_1-pth'