AI开发平台MODELARTS-附录:大模型推理常见问题:问题2:在推理预测过程中遇到ValueError:User-specified max_model_len is greater than the drived max_model_len

时间:2025-04-09 09:16:49

问题2:在推理预测过程中遇到ValueError:User-specified max_model_len is greater than the drived max_model_len

解决方法:

修改config.json文件中的"seq_length"的值,"seq_length"需要大于等于 --max-model-len的值。config.json存在模型对应的路径下,例如:/data/nfs/benchmark/tokenizer/chatglm3-6b/config.json

support.huaweicloud.com/bestpractice-modelarts/modelarts_llm_infer_91136.html
提示

您即将访问非华为云网站,请注意账号财产安全