Hanrui / progress /github /SpecForge /examples /run_llama3.3_70b_eagle3_online.sh
Lekr0's picture
Add files using upload-large-folder tool
212a146 verified
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
ROOT_DIR=$(dirname $SCRIPT_DIR)
# train eagle3 for llama3.1-8b
NUM_GPUS=${1:-8}
TP_SIZE=${2:-4}
BUILD_DATASET_NUM_PROC=${BUILD_DATASET_NUM_PROC:-64}
torchrun \
--standalone \
--nproc_per_node $NUM_GPUS \
$ROOT_DIR/scripts/train_eagle3.py \
--target-model-path meta-llama/Llama-3.3-70B-Instruct \
--draft-model-config $ROOT_DIR/configs/llama3-70B-ealge3.json \
--train-data-path $ROOT_DIR/cache/dataset/sharegpt.jsonl \
--build-dataset-num-proc $BUILD_DATASET_NUM_PROC \
--output-dir $ROOT_DIR/outputs/llama3.3-70b-eagle3 \
--num-epochs 10 \
--batch-size 1 \
--tp-size $TP_SIZE \
--learning-rate 1e-4 \
--max-length 4096 \
--chat-template llama3 \
--cache-dir $ROOT_DIR/cache \
--target-model-backend sglang