modelscope / eval-scope

A streamlined and customizable framework for efficient large model evaluation and performance benchmarking
Apache License 2.0
110 stars 14 forks source link

model_id为local ckpt路径时,infer template映射和解析出现问题 #24

Open wangxingjun778 opened 3 months ago

wangxingjun778 commented 3 months ago

目前是根据model_id判断模型类型的,如果修改模型文件夹名,或使用本地ckpt路径,就无法从路径里提取出模型名比如「chatglm2-6b」,导致template get失败,默认使用 default prompt template,可能导致generate出现问题。