UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 84: illegal multibyte sequence
修改
prompter.py
21行
1
withopen(file_name, encoding='utf-8') as fp:
修改
infer.py
18行
1
withopen(instruct_dir, "r", encoding='utf-8') as f:
运行
infer.py
报错
1 2 3
HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.
尝试下载模型参数,调用本地模型参数
1
base_model: str = "./llama-7b-hf",
运行
infer.py
报错(使用CPU)
1
The current device_map had weights offloaded to the disk. Please provide an offload_folder for them. Alternatively, make sure you have safetensors installed if the model you are using offers the weights in this format