GithubHelp home page GithubHelp logo

afdwang / hetu-galvatron Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 4.0 990 KB

Galvatron is an automatic distributed training system designed for Transformer models, including Large Language Models (LLMs). If you have any interests, please visit/star/fork https://github.com/PKU-DAIR/Hetu-Galvatron

Makefile 0.24% C++ 1.90% Shell 1.34% Python 90.78% C 0.22% Cuda 5.39% HTML 0.12%

hetu-galvatron's Issues

qusetion about the estimation result

I run the scripts/search_dist.sh of llama_hf model using A800 with 8 gpus
`export NUM_NODES=1
export NUM_GPUS_PER_NODE=8

MODEL_SIZE="llama-13b"
MEMORY=75

MODEL_ARGS="
--model_size ${MODEL_SIZE}
--set_model_config_manually 0
--set_layernum_manually 0
--vocab_size 32000
--hidden_size 5120
--num_hidden_layers 40
--num_attention_heads 40
--seq_length 2048"

BSZ_ARGS="
--min_bsz 64
--max_bsz 64
--bsz_scale 16
--settle_bsz -1
--recommend_min_bsz 0
"

SEARCH_SPACE_ARGS="
--search_space full
--disable_dp 0
--disable_tp 0
--disable_pp 0
--disable_sdp 1
--disable_ckpt 0
--disable_tp_consec 0
--max_tp_deg 8
--max_pp_deg 8
"

SEARCH_ARGS="
${BSZ_ARGS}
${SEARCH_SPACE_ARGS}
${MODEL_ARGS}
--num_nodes ${NUM_NODES}
--num_gpus_per_node ${NUM_GPUS_PER_NODE}
--memory_constraint $MEMORY
--mixed_precision bf16
--pipeline_type pipedream_flush
--default_dp_type ddp
--embed_sdp 0
"

BACKGROUND=1

if [ $BACKGROUND -eq 1 ]; then
echo "Search in background..."
OUTPUT_FILE="Search_${MODEL_SIZE}${MEMORY}GB${NUM_NODES}Nodes_${NUM_GPUS_PER_NODE}GPUs_per_node_bsz64.log"
nohup python3 search_dist.py ${SEARCH_ARGS} 1> ${OUTPUT_FILE} 2>&1 &
else
echo "Search in foreground..."
python3 search_dist.py ${SEARCH_ARGS}
fi`

The final search result shows that the Max throughput=1.8973885326702808 samples/s
image

Then I run the scripts/train_dist.sh using the searched config file, the real execution time is about 6.7s, which means the throughput is about 9.55 samples/s (the global batchsize is 64). It seems that the prediction error is large, is there anything wrong?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.