Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/start_lm_eval.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export no_proxy="localhost, 127.0.0.1, ::1"
lm_eval --model local-completions \
--tasks gsm8k \
--model_args model=/mnt/disk5/hf_models/DeepSeek-R1-BF16,tokenizer_backend=huggingface,base_url=http://localhost:8858/v1/completions \
--batch_size 4 \
--log_samples \
--limit 16 \
--output_path ./lm_eval_output_gsm8k_bs4 2>&1 | tee benchmark_logs/lm_eval_output_gsm8k_bs4_kvcache.log
26 changes: 26 additions & 0 deletions scripts/start_server_for_lm_eval.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
model_path="/mnt/disk5/hf_models/DeepSeek-R1-BF16"

# skip warmup for now
export VLLM_SKIP_WARMUP="true"

QUANT_CONFIG=inc_quant_with_fp8kv_one_node_config.json \
VLLM_EP_SIZE=8 \
VLLM_TP_SIZE=8 \
python3 -m vllm.entrypoints.openai.api_server \
--host 0.0.0.0 --port 8858 \
--block-size 128 \
--model ${model_path} \
--tokenizer ${model_path} \
--device hpu --dtype bfloat16 \
--tensor-parallel-size 8 \
--trust-remote-code \
--max-model-len 16384 \
--max-num-seqs 4 \
--max-num-batched-tokens 16384 \
--use-padding-aware-scheduling \
--use-v2-block-manager \
--distributed_executor_backend mp \
--gpu_memory_utilization 0.90 \
--quantization inc \
--weights_load_device cpu \
--kv_cache_dtype fp8_inc 2>&1 | tee benchmark_logs/vllm_ep8_tp8.log