-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submmit documents of internLM #134
Submmit documents of internLM #134
Conversation
074519b
to
a21d6bf
Compare
docs/zh_cn/get_started.md
Outdated
@@ -55,6 +55,52 @@ | |||
|
|||
</details> | |||
|
|||
5. 安装 InternLM(可选): | |||
|
|||
评测**InternLM**模型,可以按照我们提供的样例并遵循如下步骤。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
评测**InternLM**模型,可以按照我们提供的样例并遵循如下步骤。 | |
如果需要运行原生 **InternLM** 模型(非 Huggingface 版),可以按照我们提供的样例并遵循如下步骤。 |
在你的根目录下安装该库 | ||
|
||
```bash | ||
git clone https://gitlab.pjlab.org.cn/chenkeyu1/internlm-lite.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitlab?
docs/zh_cn/get_started.md
Outdated
安装InternLM-Lite | ||
在你的根目录下安装该库 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
安装InternLM-Lite | |
在你的根目录下安装该库 | |
安装 InternLM-Lite。在你的根目录下安装该库: |
docs/zh_cn/get_started.md
Outdated
之后,可以建立一个软链接,用于关联模型权重等文件至你指定的文件夹下,例如在`configs/models/internlm_7b.py`中的**internData** | ||
|
||
```bash | ||
ln -s /path/data ./internData | ||
``` | ||
|
||
自然,也可以提供绝对路径而不是软链接的形式,这样更简单。(模型权重也就是**path**参数只需给出权重所在的目录即可,其余两者需直接给出完整路径) | ||
这里,你需要提供三种文件: | ||
|
||
- 模型权重 | ||
- 模型配置 | ||
- **Tokenizer** | ||
目前开源的模型权重为InternLM-7b,网址:[Models-OpenXLab](https://openxlab.org.cn/models/detail/OpenLMLab/InternLM-7b),下载代码为 | ||
|
||
```bash | ||
wegt https://download.openxlab.org.cn/models/OpenLMLab/InternLM-7b/weight/model_tp0_pp0.pt | ||
``` | ||
|
||
后两种文件在InternLM-Lite库中的data文件夹下,完整的config配置如下: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
教程应该按操作流程一步步写,忽略不太重要的细节。另外文档有些混乱,建议按照下面的逻辑组织文档:
下载 internlm-lite -> 进入 data 文件夹 -> wget 下载模型权重 -> 回到 opencompass 目录,把 internlm-lite/data
文件夹软链到 internData
-> 准备配置
Closing this PR as it is way out of dated. |
Submmit documents of internLM