-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[METAX] Support llama for MX C550 #9186
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9186 +/- ##
===========================================
- Coverage 53.07% 52.91% -0.16%
===========================================
Files 656 661 +5
Lines 106095 106945 +850
===========================================
+ Hits 56309 56592 +283
- Misses 49786 50353 +567 ☔ View full report in Codecov by Sentry. |
|
||
``` | ||
# PaddleNLP是基于paddlepaddle『飞桨』的自然语言处理和大语言模型(LLM)开发库,存放了基于『飞桨』框架实现的各种大模型,llama2-13B模型也包含其中。为了便于您更好地使用PaddleNLP,您需要clone整个仓库。 | ||
git clone /~https://github.com/PaddlePaddle/PaddleNLP.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.
这里PaddleNLP的版本需要确认下,或者提供下PaddleNLP在develop分支的commit id
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.
这里PaddleNLP的版本需要确认下,或者提供下PaddleNLP在develop分支的commit id
好的
llm/metax/llama/README.md
Outdated
# 2. 拉取第三方依赖 | ||
git submodule update --init | ||
# 3. 配置环境变量 | ||
export MACA_PATH=/real?maca/install/path |
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.
real?maca的?的指定的链接是否有问题?
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.
real?maca的?的指定的链接是否有问题?
此处有typo,应该是/real/maca/install/path
# 您可以使用 --device=/dev/dri/card0 指定仅GPU 0在容器内可见(其它卡同理),--device=/dev/dri 表示所有GPU可见 | ||
docker run -it --rm --device=/dev/dri | ||
--device=/dev/mxcd --group-add video -network=host --uts=host --ipc=host --privileged=true --shm-size 128g {image id} | ||
``` |
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.
这里的镜像是否可以提供docker的下载地址
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.
这里的镜像是否可以提供docker的下载地址
由于MetaX的相关代码&软件还没有完全开放访问,暂时没有下载链接可以提供,开放后会尽快添加到Readme中
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.
可以尽快提供下docker下载的地址,没有docker镜像看起来也不能使用
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.
可以尽快提供下docker下载的地址,没有docker镜像看起来也不能使用
是这样的:
如果采用手动安装的话,这个镜像本身并没有太多要求,这种情况下使用 registry.baidubce.com/paddlepaddle/paddle:latest-dev 镜像作为基础镜像,然后用户基于这个镜像安装 MXMACA软件栈 & 编译安装Paddle是可以正常使用的,请问这样可以吗?
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.
可以尽快提供下docker下载的地址,没有docker镜像看起来也不能使用
是这样的: 如果采用手动安装的话,这个镜像本身并没有太多要求,这种情况下使用 registry.baidubce.com/paddlepaddle/paddle:latest-dev 镜像作为基础镜像,然后用户基于这个镜像安装 MXMACA软件栈 & 编译安装Paddle是可以正常使用的,请问这样可以吗?
软件栈暂时没有开源也可以,但是需要提供获取闭源软件的途径。这个在之前paddle-lite的文档中有多个先例:
https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/mediatek_apu.html
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.
已添加邮箱和软件中心访问地址供用户获取相关软件栈。
解释一下温故而知新 | ||
***********Target********** | ||
|
||
***********Output********** |
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.
这里的输出结果是不是需要指定成greedy的生成方式,不然输出结果和文档中会不太一致
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.
好的
@wawltor 已按建议进行了修改,麻烦再review一下。 |
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.
LGTM
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.
LGTM
PR types
Others
PR changes
Others
Description
Add MXC550 backend Support for llama