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

update hygon dcu docs #9298

Merged
merged 5 commits into from
Dec 20, 2024
Merged

update hygon dcu docs #9298

merged 5 commits into from
Dec 20, 2024

Conversation

TimeYWL
Copy link
Contributor

@TimeYWL TimeYWL commented Oct 22, 2024

PR types

New features

PR changes

Docs

Description

更新了海光DCU产品运行llama模型的说明文档与脚本。

```
# 安装paddlenlp
# 第一种方式安装
pip3 install --upgrade paddlenlp==3.0.0b0 http://mirrors.aliyun.com/pypi/simple/
Copy link
Collaborator

Choose a reason for hiding this comment

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

当前版本3.0.0b2

(3). 安装paddle
```
# paddlepaddle『飞桨』深度学习框架,提供运算基础能力
python -m pip install paddlepaddle-dcu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/dcu/
Copy link
Collaborator

Choose a reason for hiding this comment

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

马上发布3.0.0b2版本,是否需要安装最新版本。当前版本安装驱动官网展示是23,是否符合镜像驱动?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

请问基于dtk23编译的paddle包是哪里提供的呢,目前我们都是基于dtk24的环境使用paddle包了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不过也没关系,dtk23上编译的包,在dtk24环境上也可以正常使用

## 3.预训练:
### 权重链接

13B:[https://huggingface.co/meta-llama/Llama-2-7b](https://huggingface.co/meta-llama/Llama-2-7b)
Copy link
Collaborator

Choose a reason for hiding this comment

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

权重不需要重新下载,PaddleNLP from_pretrained时会自动下载

rm -rf "output/$task_name""_log"

PYTHONPATH=..:$PYTHONPATH \
python -m paddle.distributed.launch \
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以参考PaddleNLP/llm下的运行方式,当前支持config.json和命令行结合的方式(命令行优先),无需添加这个运行脚本

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是将运行方式改为

python -u -m paddle.distributed.launch --gpus "0,1,2,3,4,5,6,7" run_pretrain.py config/llama/dcu_pretrain.json

这种形式吗

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.91%. Comparing base (2e8b220) to head (0d7318a).
Report is 181 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9298      +/-   ##
===========================================
+ Coverage    52.78%   52.91%   +0.13%     
===========================================
  Files          661      661              
  Lines       106945   106945              
===========================================
+ Hits         56448    56595     +147     
+ Misses       50497    50350     -147     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

paddle-bot bot commented Oct 22, 2024

Thanks for your contribution!

Copy link
Collaborator

@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

@ZHUI ZHUI merged commit 2d950b9 into PaddlePaddle:develop Dec 20, 2024
10 of 12 checks passed
blacksheep-Aristotle pushed a commit to blacksheep-Aristotle/PaddleNLP that referenced this pull request Dec 23, 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