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
GLM-4V_pytorch
Commits
8b0d81c6
Commit
8b0d81c6
authored
Jun 19, 2024
by
wanglch
Browse files
Update README.md
parent
5cb526ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
README.md
README.md
+4
-2
No files found.
README.md
View file @
8b0d81c6
...
@@ -97,13 +97,13 @@ pip install -e .
...
@@ -97,13 +97,13 @@ pip install -e .
--output_dir # 训练输出文件夹
--output_dir # 训练输出文件夹
```
```
### 单
卡训练
### 单
机单卡
```
```
sh lora_finetune_single.sh
sh lora_finetune_single.sh
```
```
### 多卡
训练
###
单机
多卡
```
```
sh lora_finetune_multi.sh
sh lora_finetune_multi.sh
...
@@ -115,6 +115,8 @@ sh lora_finetune_multi.sh
...
@@ -115,6 +115,8 @@ sh lora_finetune_multi.sh
### 单机单卡
### 单机单卡
推理时需修改推理脚本中的模型地址为本地模型地址
`tokenizer = AutoTokenizer.from_pretrained("/home/wanglch/projects/GLM-4V/glm-4v-9b", trust_remote_code=True)`
`tokenizer = AutoTokenizer.from_pretrained("/home/wanglch/projects/GLM-4V/glm-4v-9b", trust_remote_code=True)`
`model = AutoModelForCausalLM.from_pretrained(
`model = AutoModelForCausalLM.from_pretrained(
...
...
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