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
OpenDAS
Megatron-LM
Commits
5580d661
Commit
5580d661
authored
Jun 23, 2021
by
rprenger
Browse files
Also saving the launch script
parent
2cdebf4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
run_api_server_8.3B.sh
run_api_server_8.3B.sh
+32
-0
No files found.
run_api_server_8.3B.sh
0 → 100755
View file @
5580d661
#!/bin/bash
WORLD_SIZE
=
8
DISTRIBUTED_ARGS
=
"--nproc_per_node
$WORLD_SIZE
\
--nnodes 1
\
--node_rank 0
\
--master_addr localhost
\
--master_port 6000"
CHECKPOINT
=
"/home/universal-lm-data.cosmos549/chkpts/gpt2/8.3B_no_rng"
DATA_PATH
=
"/home/universal-lm-data.cosmos549/scratch/mshoeybi/data/gpt2"
VOCAB_FILE
=
"
${
DATA_PATH
}
/bpe/gpt2-vocab.json"
MERGE_FILE
=
"
${
DATA_PATH
}
/bpe/gpt2-merges.txt"
python
-m
torch.distributed.launch
$DISTRIBUTED_ARGS
tools/run_api_server.py
\
--tensor-model-parallel-size
8
\
--pipeline-model-parallel-size
1
\
--num-layers
72
\
--hidden-size
3072
\
--load
$CHECKPOINT
\
--num-attention-heads
24
\
--max-position-embeddings
1024
\
--tokenizer-type
GPT2BPETokenizer
\
--fp16
\
--micro-batch-size
1
\
--seq-length
1024
\
--out-seq-length
1024
\
--temperature
1.0
\
--vocab-file
$VOCAB_FILE
\
--merge-file
$MERGE_FILE
\
--genfile
unconditional_samples.json
\
--num-samples
1
\
--top_p
0.9
\
--seed
42
\
--recompute
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