Skip to content
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

Closed

Conversation

go-with-me000
Copy link
Contributor

Submmit documents of internLM

@@ -55,6 +55,52 @@

</details>

5. 安装 InternLM(可选):

评测**InternLM**模型,可以按照我们提供的样例并遵循如下步骤。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
评测**InternLM**模型,可以按照我们提供的样例并遵循如下步骤。
如果需要运行原生 **InternLM** 模型(非 Huggingface 版),可以按照我们提供的样例并遵循如下步骤。

在你的根目录下安装该库

```bash
git clone https://gitlab.pjlab.org.cn/chenkeyu1/internlm-lite.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gitlab?

Comment on lines 65 to 66
安装InternLM-Lite
在你的根目录下安装该库
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
安装InternLM-Lite
在你的根目录下安装该库
安装 InternLM-Lite。在你的根目录下安装该库:

Comment on lines 73 to 91
之后,可以建立一个软链接,用于关联模型权重等文件至你指定的文件夹下,例如在`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配置如下:
Copy link
Contributor

@gaotongxiao gaotongxiao Jul 31, 2023

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 -> 准备配置

@Leymore
Copy link
Contributor

Leymore commented Jan 8, 2024

Closing this PR as it is way out of dated.

@Leymore Leymore closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants