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
llama3_pytorch
Commits
c5dc70c5
Commit
c5dc70c5
authored
May 15, 2024
by
Rayyyyy
Browse files
Modify infos in README
parent
86913514
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
README.md
README.md
+1
-2
llama3_8b_instruct_qlora_alpaca_e3_M.py
llama3_8b_instruct_qlora_alpaca_e3_M.py
+1
-1
No files found.
README.md
View file @
c5dc70c5
...
...
@@ -71,9 +71,8 @@ pip install mmengine==0.10.3
cd
/your_code_path/llama3_pytorch
pip
install
modelscope
python download_models.py
mv
./LLM-Research/
*
./
```
2.
修改
[
llama3_8b_instruct_qlora_alpaca_e3_M.py
](
./llama3_8b_instruct_qlora_alpaca_e3_M.py
)
代码中的
`pretrained_model_name_or_path`
、
`data_path`
为本地
对应
数据地址;
2.
修改
[
llama3_8b_instruct_qlora_alpaca_e3_M.py
](
./llama3_8b_instruct_qlora_alpaca_e3_M.py
)
代码中的
`pretrained_model_name_or_path`
、
`data_path`
为本地
模型、
数据地址;
3.
根据硬件环境和自身训练需求来调整
`max_length`
、
`batch_size`
、
`accumulative_counts`
、
`max_epochs`
、
`lr`
、
`save_steps`
、
`evaluation_freq`
、model.lora中的
`r`
、
`lora_alpha`
参数,默认参数支持4
*
32G;
4.
${DCU_NUM}参数修改为要使用的DCU卡数量,不同数据集需要修改llama3_8b_instruct_qlora_alpaca_e3_M.py中
`SYSTEM`
、
`evaluation_inputs`
、
`dataset_map_fn`
、
`train_dataloader.sampler`
、
`train_cfg`
参数设置,详情请参考代码注释项,当前默认alpaca数据集。
5.
执行
...
...
llama3_8b_instruct_qlora_alpaca_e3_M.py
View file @
c5dc70c5
...
...
@@ -24,7 +24,7 @@ from xtuner.utils import PROMPT_TEMPLATE, SYSTEM_TEMPLATE
# PART 1 Settings #
#######################################################################
# Model
pretrained_model_name_or_path
=
'/
home/llama3
/Meta-Llama-3-8B-Instruct'
pretrained_model_name_or_path
=
'/
your_model_save_path/LLM-Research
/Meta-Llama-3-8B-Instruct'
use_varlen_attn
=
False
# new
# Data
...
...
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