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
GPT2_pytorch
Commits
75e3f49b
Commit
75e3f49b
authored
Jun 16, 2023
by
hepj987
Browse files
调整格式
parent
56325238
Pipeline
#362
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
conver.sh
conver.sh
+1
-1
model.properties
model.properties
+8
-0
single-16B.sh
single-16B.sh
+2
-2
No files found.
conver.sh
View file @
75e3f49b
export
PYTHONPATH
=
/home/megatron-deepspeed_dtk22.10:
$PYTHONPATH
export
PYTHONPATH
=
/home/megatron-deepspeed_dtk22.10:
$PYTHONPATH
CHECKPOINT_PATH
=
./output-module/gpt2-4tp/global_step
2
00
CHECKPOINT_PATH
=
./output-module/gpt2-
oscar_16B-
4tp/global_step
10
00
python tools/convert_checkpoint/deepspeed_to_megatron.py
\
python tools/convert_checkpoint/deepspeed_to_megatron.py
\
--input_folder
$CHECKPOINT_PATH
\
--input_folder
$CHECKPOINT_PATH
\
--output_folder
conver-4tp-model
\
--output_folder
conver-4tp-model
\
...
...
model.properties
0 → 100644
View file @
75e3f49b
# 模型名称
modelName
=
gpt2-PyTorch
# 模型描述
modelDescription
=
gpt2是一种新的基于单向Transformer的生成式预训练模型,基于PyTorch实现测试
# 应用场景
appScenario
=
推理,训练,文本生成
# 框架类型
frameType
=
PyTorch
single-16B.sh
View file @
75e3f49b
...
@@ -10,10 +10,10 @@ RANK=$OMPI_COMM_WORLD_RANK
...
@@ -10,10 +10,10 @@ RANK=$OMPI_COMM_WORLD_RANK
WORLD_SIZE
=
$OMPI_COMM_WORLD_SIZE
WORLD_SIZE
=
$OMPI_COMM_WORLD_SIZE
MODEL_NAME
=
gpt2-oscar_16B-
8
tp
MODEL_NAME
=
gpt2-oscar_16B-
4
tp
DATA_OUTPUT_PATH
=
./
DATA_OUTPUT_PATH
=
./
LOGS_PATH
=
$DATA_OUTPUT_PATH
/logs
LOGS_PATH
=
$DATA_OUTPUT_PATH
/logs
CHECKPOINT_PATH
=
output-module/
$MODEL_NAME
CHECKPOINT_PATH
=
./
output-module/
$MODEL_NAME
DATA_PATH
=
"my-gpt2_text_document"
DATA_PATH
=
"my-gpt2_text_document"
TENSORBOARD_PATH
=
output_dir/tensorboard/
$MODEL_NAME
TENSORBOARD_PATH
=
output_dir/tensorboard/
$MODEL_NAME
...
...
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