Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LongBench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
thukeg
LongBench
Commits
74d39f0b
Unverified
Commit
74d39f0b
authored
1 year ago
by
JackKuo666
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update support chatglm3
Update support chatglm3
parent
2533f68b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README_ZH.md
+1
-1
1 addition, 1 deletion
README_ZH.md
with
1 addition
and
1 deletion
README_ZH.md
+
1
−
1
View file @
74d39f0b
...
...
@@ -121,7 +121,7 @@ for dataset in datasets:
#### 评测
通过pip安装依赖:
`pip install -r requirements.txt`
。对于基于Llama-2的模型,我们推荐使用Flash Attention进行优化并节省显存,可以根据
[
Flash Attention
](
https://github.com/Dao-AILab/flash-attention
)
的代码库来安装相关依赖。
首先,运行仓库下的
[
pred.py
](
pred.py
)
,并通过
`--model`
选择你想评测的模型,我们以ChatGLM
2
-6B-32k模型为例(代码将会根据
[
model2path.json
](
config/model2path.json
)
中的路径自动下载HuggingFace模型,你可以修改此文件中的路径以从本地载入模型参数):
首先,运行仓库下的
[
pred.py
](
pred.py
)
,并通过
`--model`
选择你想评测的模型,我们以ChatGLM
3
-6B-32k模型为例(代码将会根据
[
model2path.json
](
config/model2path.json
)
中的路径自动下载HuggingFace模型,你可以修改此文件中的路径以从本地载入模型参数):
```
bash
CUDA_VISIBLE_DEVICES
=
0 python pred.py
--model
chatglm3-6b-32k
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment