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
wuxk1
Megatron-LM
Commits
425a2473
Commit
425a2473
authored
Dec 12, 2024
by
wxj
Browse files
Update Llama_pretraining.sh
parent
4923c381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Llama_pretraining.sh
Llama_pretraining.sh
+8
-5
No files found.
Llama_pretraining.sh
View file @
425a2473
...
...
@@ -28,12 +28,12 @@ TENSORBOARD_LOGS_PATH=./tmp_7b #$2 #<Specify path>
DATA_PATH
=
"/datasets/oscar-1GB-llama_text_document"
#<Specify path and file prefix>_text_document
GPT_MODEL_ARGS
=(
--num-layers
6
--hidden-size
1024
--ffn-hidden-size
2048
--num-attention-heads
16
--num-layers
3
6
--hidden-size
4096
--ffn-hidden-size
11008
--num-attention-heads
32
--seq-length
4096
#4096
--max-position-embeddings
32768
--max-position-embeddings
4096
)
# export NVTE_FLASH_ATTN=1 # 走autlass
...
...
@@ -69,7 +69,10 @@ TRAINING_ARGS=(
--lr-decay-style
cosine
--min-lr
3.0e-6
--lr-warmup-iters
1
--use-flash-attn-triton
)
# --use-flash-attn-ck
# --use-flash-attn-triton
MODEL_PARALLEL_ARGS
=(
--sequence-parallel
...
...
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