Comments (2)
遇到了同样的问题...脚本如下
python run.py --datasets ceval_gen --hf-path /data/ptm/internlm2-chat-1_8b --tokenizer-path /data/ptm/internlm2-chat-1_8b --tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True --model-kwargs trust_remote_code=True device_map='auto' --max-seq-len 1024 --max-out-len 16 --batch-size 2 --num-gpus 1 --debug
然后仔细研究报错发现huggingface_above_v4_33.py这个部分很神奇 打印了下opencompass/opencompass/tasks/openicl_infer.py里面73行的model_cfg,发现里面的type是opencompass.models.huggingface_above_v4_33.HuggingFacewithChatTemplate,不太理解为啥不是我指定的internlm2-chat-1_8b对应的模型
再仔细研究发现,错误在一个看起来不太重要的get_token_len函数,于是用它旁边的opencompass/opencompass/models/huggingface.py里面的get_token_len实现替换了,然后就跑通了...
不一定是正确解法,但能work 有官方解答或者更可信的方案的可以继续来回答下
老实讲感觉这个仓库 bug 挺多的...
from opencompass.
遇到了同样的问题...脚本如下
python run.py --datasets ceval_gen --hf-path /data/ptm/internlm2-chat-1_8b --tokenizer-path /data/ptm/internlm2-chat-1_8b --tokenizer-kwargs padding_side='left' truncation='left' trust_remote_code=True --model-kwargs trust_remote_code=True device_map='auto' --max-seq-len 1024 --max-out-len 16 --batch-size 2 --num-gpus 1 --debug
然后仔细研究报错发现huggingface_above_v4_33.py这个部分很神奇
打印了下opencompass/opencompass/tasks/openicl_infer.py里面73行的model_cfg,发现里面的type是opencompass.models.huggingface_above_v4_33.HuggingFacewithChatTemplate,不太理解为啥不是我指定的internlm2-chat-1_8b对应的模型
再仔细研究发现,错误在一个看起来不太重要的get_token_len函数,于是用它旁边的opencompass/opencompass/models/huggingface.py里面的get_token_len实现替换了,然后就跑通了...
不一定是正确解法,但能work
有官方解答或者更可信的方案的可以继续来回答下
from opencompass.
Related Issues (20)
- [Feature] 支持openai/GPT4-o的评测seting HOT 1
- GenInferencer PPLInferencer 不能集成到一起吗[Feature] HOT 2
- [Feature] 如何在needlebench 中使用api model? HOT 1
- [Feature] config的bug,提示下载configs,然后下载了又出现以下bug
- [Bug] unrecognized arguments: --no-batch-padding HOT 1
- opencompass榜单更新情况 HOT 2
- [Bug] hf_chatglm3_6b评测AFQMC数据集时,自测结果与官方不一致。且自测结果不稳定。 HOT 1
- No module named 'opencompass' HOT 9
- [Bug] Unable to use tutorial methods properly——KeyError: 'opt125m'or'opt350m' HOT 1
- [Bug] opencompass/cli和opencompass/datasets/IFEval下缺少__init__.py所以release版本是不能导入这两个包的 HOT 1
- [Bug] configs/datasets/agieval/agieval_mixed_713d14.py not found
- [Bug] llm-compression task faild at eval stage with latest version HOT 3
- [Bug] which version of the dataset should be selected When evaluating the Llama3 model,
- [Bug] run pytorch Qwen-7B-Chat with ARC-c ppl under CPU ,and result is not good HOT 1
- 大海捞针数据集初始化报错( Failed to get opencompass.datasets.needlebench.origin.NeedleBenchOriginDataset)
- opencompass公开榜单更新[Feature] HOT 1
- [Bug] When testing on gen datasets, even if the output is empty or incorrect, unexpected scores can be obtained
- [Bug] Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
- [Bug] 不支持python3.10以上安装
- [Bug] ValueError: not enough values to unpack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencompass.