2024-06-14 20:02:26 +08:00
|
|
|
**鉴于** 本仓库原来的训练模型 `Chatllm3-6b` 在低性能机器上部署比较困难,我在原基础上使用微型模型 `Qwen2-0.5b-Instruct` 模型完成模型训练到部署到免费
|
|
|
|
Modelspace 创空间中,比较简单,`并且可做到全程免费` 下面是流程:
|
2024-06-14 18:58:52 +08:00
|
|
|
***
|
|
|
|
# 第一步,[创建 Modelspace 免费 GPU](https://www.modelscope.cn/my/mynotebook/preset)
|
|
|
|

|
|
|
|
|
|
|
|
# 开始训练
|
2024-06-14 20:02:26 +08:00
|
|
|
**可以参照训练[模板](/MemoAI/qwen2-0.5b/train.md)**
|
2024-06-14 18:58:52 +08:00
|
|
|
<br>
|
2024-06-14 20:02:26 +08:00
|
|
|
把 `train.json` 上传,一步步点击即可<br>
|
|
|
|
最后把模型上传到 `Modelspace`
|
2024-06-14 18:58:52 +08:00
|
|
|
<br />
|
|
|
|

|
|
|
|
# 部署到创空间
|
2024-06-14 20:02:26 +08:00
|
|
|
编辑 `di_config.json` 的一下两个字段
|
|
|
|
`model_space: YOUR-NAME-SPACE`
|
|
|
|
`model_name: YOUR-MODEL-NAME`
|
2024-06-14 18:58:52 +08:00
|
|
|
|
2024-06-14 20:02:26 +08:00
|
|
|
**然后把一下MemoAI/qwen2-0.5b的三个文件:`di_config.json`,`app.py`,`requirements.txt`上传到创空间,点击部署!**
|
2024-06-14 18:58:52 +08:00
|
|
|
|
2024-06-14 20:02:26 +08:00
|
|
|
**最后看看成品吧:**[成品](https://www.modelscope.cn/studios/sanbei101/qwen-haoran/summary)
|