Skip to content

Update mass docs #2839

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

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
|第 1 关| Linux 前置基础 |[任务](docs/L0/linux/task.md)、[文档](docs/L0/linux)、[视频](https://www.bilibili.com/video/BV13U1VYmEUr)| 50元算力点 |
|第 2 关|Python 前置基础 | [任务](docs/L0/Python/task.md)、[文档](docs/L0/Python)、[视频](https://www.bilibili.com/video/BV1u61jYSExg)| 50元算力点|
|第 3 关|Git 前置基础|[任务](docs/L0/git/task.md)、[文档](docs/L0/git/)、[视频](https://www.bilibili.com/video/BV15MShYkEgg)| 50元算力点 |
|第 4 关|玩转「HF/魔搭/魔乐」平台|[任务](docs/L0/maas/task.md)、[文档](docs/L0/maas)、[视频](https://www.bilibili.com/video/BV1XxStYYEH1/)| 50元算力点 |
|第 4 关|玩转「HF/魔搭/魔乐」等平台|[任务](docs/L0/maas/task.md)、[文档](docs/L0/maas)、[视频](https://www.bilibili.com/video/BV1XxStYYEH1/)| 50元算力点 |


### 1.2. 基础关卡
Expand Down
36 changes: 36 additions & 0 deletions docs/L0/maas/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,3 +516,39 @@ model = AutoModel.from_pretrained("Intern/internlm2_5-1_8b-chat", trust_remote_c

#### 2.3.2 上传模型
在魔乐社区一般有两种方法,第一种是安装好openmid后使用openmind的API来上传文件,另一个就是用git命令来推送文件,跟一般的git工作流相类似。可参考[上传文件 | 魔乐社区](https://modelers.cn/docs/zh/openmind-hub-client/basic_tutorial/upload.html)

### 2.4 始智AI平台

始智AI平台(wisemodel)是一个中立开放的AI开源社区, 是一个提供多样化开源模型、数据集以及训练和微调的一站式平台。

#### 2.4.1 下载llava-internlm2-7B模型

注册好该平台后,我们可以在创建好的InternStudio开发机下下载模型

```bash
cd /
mkdir wise_model
cd wise_model
```

假设的账户名是username,那么可以用以下方式,下载公有仓库的模型

```bash
git lfs install
git clone https://www.wisemodel.cn/username/llava-internlm2-7b.git
```

如果涉及到私有仓库,需要创建git token进行操作,具体请参考[上传文件 | 始智AI-wisemodel](https://wisemodel.cn/docs/%E6%A8%A1%E5%9E%8B%E4%B8%8A%E4%BC%A0)

#### 2.4.2 上传模型

假设你的模型文件位于/work/my_model_dir本地目录下:

```bash
cd my_test_model #进入同步模型仓库的目录
cp -rf /work/my_model_dir/* . #从/work/my_model_dir本地目录把文件拷贝到模型仓库
git add -A . #执行更新git目录
git commit -m "commit message" #合并文件并填写更新说明
git push #将本地文件上传更新
```