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-4.1V_pytorch
Commits
e0fd56eb
Commit
e0fd56eb
authored
Jul 22, 2025
by
chenych
Browse files
Update README
parent
d9254821
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+7
-0
inference/trans_infer_transformers.py
inference/trans_infer_transformers.py
+1
-1
No files found.
README.md
View file @
e0fd56eb
...
@@ -105,11 +105,18 @@ pip install transformers==4.53.2
...
@@ -105,11 +105,18 @@ pip install transformers==4.53.2
## 训练
## 训练
### Llama Factory 微调方法(推荐)
### Llama Factory 微调方法(推荐)
根据
[
LLaMA-Factory
](
https://developer.sourcefind.cn/codes/OpenDAS/llama-factory
)
仓库指引安装好llama-factory后,请检查下transformers版本,如果版本不等于4.53.2,需要重新安装
`pip install transformers==4.53.2`
因为transformers版本与
[
LLaMA-Factory
](
https://developer.sourcefind.cn/codes/OpenDAS/llama-factory
)
版本不一致,启动训练前需要先增加环境变量来跳过版本检查,环境变量如下:
因为transformers版本与
[
LLaMA-Factory
](
https://developer.sourcefind.cn/codes/OpenDAS/llama-factory
)
版本不一致,启动训练前需要先增加环境变量来跳过版本检查,环境变量如下:
```
```
export DISABLE_VERSION_CHECK=1
export DISABLE_VERSION_CHECK=1
```
```
Tips:
单卡微调请注释掉yaml文件中的
`deepspeed`
参数
#### 全参微调
#### 全参微调
SFT训练脚本示例,参考
`llama-factory/train_full`
下对应yaml文件。
SFT训练脚本示例,参考
`llama-factory/train_full`
下对应yaml文件。
...
...
inference/trans_infer_transformers.py
View file @
e0fd56eb
...
@@ -16,7 +16,7 @@ if __name__ == "__main__":
...
@@ -16,7 +16,7 @@ if __name__ == "__main__":
"content"
:
[
"content"
:
[
{
{
"type"
:
"image"
,
"type"
:
"image"
,
"url"
:
"doc/Grayscale_8bits_palette_sample_image.png"
"url"
:
"
../
doc/Grayscale_8bits_palette_sample_image.png"
},
},
{
{
"type"
:
"text"
,
"type"
:
"text"
,
...
...
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