Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
gemma_pytorch
Commits
b9107587
Commit
b9107587
authored
Mar 07, 2024
by
chenzk
Browse files
v1.0.1
parent
037a1c83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
README.md
README.md
+2
-2
infer.sh
infer.sh
+1
-0
No files found.
README.md
View file @
b9107587
...
@@ -33,7 +33,7 @@ pip install -r requirements.txt # requirements.txt
...
@@ -33,7 +33,7 @@ pip install -r requirements.txt # requirements.txt
```
```
### Dockerfile(方法二)
### Dockerfile(方法二)
```
```
cd
MiniCPM
/docker
cd
gemma_pytorch
/docker
docker build --no-cache -t gemma:latest .
docker build --no-cache -t gemma:latest .
docker run --shm-size=16G --name gemma -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video -v $PWD/../../gemma_pytorch:/home/gemma_pytorch -it gemma bash
docker run --shm-size=16G --name gemma -v /opt/hyhal:/opt/hyhal --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video -v $PWD/../../gemma_pytorch:/home/gemma_pytorch -it gemma bash
# 若遇到Dockerfile启动的方式安装环境需要长时间等待,可注释掉里面的pip安装,启动容器后再安装python库:pip install -r requirements.txt。
# 若遇到Dockerfile启动的方式安装环境需要长时间等待,可注释掉里面的pip安装,启动容器后再安装python库:pip install -r requirements.txt。
...
@@ -53,7 +53,7 @@ triton:2.1.0
...
@@ -53,7 +53,7 @@ triton:2.1.0
2、其它非特殊库参照requirements.txt安装
2、其它非特殊库参照requirements.txt安装
```
```
pip install -r finetune/requirements.txt #
finetune/
requirements.txt
pip install -r finetune/requirements.txt # requirements.txt
```
```
## 数据集
## 数据集
...
...
infer.sh
View file @
b9107587
#/bin/bash
#/bin/bash
export
PYTHONPATH
=
$PYTHONPATH
:
`
pwd
`
/gemma
python scripts/run.py
--ckpt
=
"gemma-2b-pytorch/gemma-2b-it.ckpt"
--variant
=
2b
--prompt
=
"The meaning of life is"
--device
=
cuda
python scripts/run.py
--ckpt
=
"gemma-2b-pytorch/gemma-2b-it.ckpt"
--variant
=
2b
--prompt
=
"The meaning of life is"
--device
=
cuda
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment