deepseek v4 pro base often outputs <|end▁of▁file|>\n<|begin▁of▁file▁name|

#11
by sxqqslf - opened

When I evaluated benchmarks like gsm8k, I found that deepseek v4 pro base frequently outputs the characters <|end▁of▁file|>\n<|begin▁of▁file▁name|>, resulting in very low evaluation scores, for example, here is a prompt from gsm8k, we use 4-shot to evaluate the question:

Prompt:
"Question: Angelo and Melanie want to plan how many hours over the next week they should study together for their test next week. They have 2 chapters of their textbook to study and 4 worksheets to memorize. They figure out that they should dedicate 3 hours to each chapter of their textbook and 1.5 hours for each worksheet. If they plan to study no more than 4 hours each day, how many days should they plan to study total over the next week if they take a 10-minute break every hour, include 3 10-minute snack breaks each day, and 30 minutes for lunch each day?\nAnswer: Let's think step by step.\nAngelo and Melanie think they should dedicate 3 hours to each of the 2 chapters, 3 hours x 2 chapters = 6 hours total.\nFor the worksheets they plan to dedicate 1.5 hours for each worksheet, 1.5 hours x 4 worksheets = 6 hours total.\nAngelo and Melanie need to start with planning 12 hours to study, at 4 hours a day, 12 / 4 = 3 days.\nHowever, they need to include time for breaks and lunch. Every hour they want to include a 10-minute break, so 12 total hours x 10 minutes = 120 extra minutes for breaks.\nThey also want to include 3 10-minute snack breaks, 3 x 10 minutes = 30 minutes.\nAnd they want to include 30 minutes for lunch each day, so 120 minutes for breaks + 30 minutes for snack breaks + 30 minutes for lunch = 180 minutes, or 180 / 60 minutes per hour = 3 extra hours.\nSo Angelo and Melanie want to plan 12 hours to study + 3 hours of breaks = 15 hours total.\nThey want to study no more than 4 hours each day, 15 hours / 4 hours each day = 3.75\nThey will need to plan to study 4 days to allow for all the time they need.\nThe answer is 4\n\nQuestion: Mark's basketball team scores 25 2 pointers, 8 3 pointers and 10 free throws. Their opponents score double the 2 pointers but half the 3 pointers and free throws. What's the total number of points scored by both teams added together?\nAnswer: Let's think step by step.\nMark's team scores 25 2 pointers, meaning they scored 252= 50 points in 2 pointers.\nHis team also scores 6 3 pointers, meaning they scored 83= 24 points in 3 pointers\nThey scored 10 free throws, and free throws count as one point so they scored 101=10 points in free throws.\nAll together his team scored 50+24+10= 84 points\nMark's opponents scored double his team's number of 2 pointers, meaning they scored 502=100 points in 2 pointers.\nHis opponents scored half his team's number of 3 pointers, meaning they scored 24/2= 12 points in 3 pointers.\nThey also scored half Mark's team's points in free throws, meaning they scored 10/2=5 points in free throws.\nAll together Mark's opponents scored 100+12+5=117 points\nThe total score for the game is both team's scores added together, so it is 84+117=201 points\nThe answer is 201\n\nQuestion: Bella has two times as many marbles as frisbees. She also has 20 more frisbees than deck cards. If she buys 2/5 times more of each item, what would be the total number of the items she will have if she currently has 60 marbles?\nAnswer: Let's think step by step.\nWhen Bella buys 2/5 times more marbles, she'll have increased the number of marbles by 2/560 = 24\nThe total number of marbles she'll have is 60+24 = 84\nIf Bella currently has 60 marbles, and she has two times as many marbles as frisbees, she has 60/2 = 30 frisbees.\nIf Bella buys 2/5 times more frisbees, she'll have 2/530 = 12 more frisbees.\nThe total number of frisbees she'll have will increase to 30+12 = 42\nBella also has 20 more frisbees than deck cards, meaning she has 30-20 = 10 deck cards\nIf she buys 2/5 times more deck cards, she'll have 2/510 = 4 more deck cards.\nThe total number of deck cards she'll have is 10+4 = 14\nTogether, Bella will have a total of 14+42+84 = 140 items\nThe answer is 140\n\nQuestion: A group of 4 fruit baskets contains 9 apples, 15 oranges, and 14 bananas in the first three baskets and 2 less of each fruit in the fourth basket. How many fruits are there?\nAnswer: Let's think step by step.\nFor the first three baskets, the number of apples and oranges in one basket is 9+15=24\nIn total, together with bananas, the number of fruits in one basket is 24+14=38 for the first three baskets.\nSince there are three baskets each having 38 fruits, there are 338=114 fruits in the first three baskets.\nThe number of apples in the fourth basket is 9-2=7\nThere are also 15-2=13 oranges in the fourth basket\nThe combined number of oranges and apples in the fourth basket is 13+7=20\nThe fourth basket also contains 14-2=12 bananas.\nIn total, the fourth basket has 20+12=32 fruits.\nThe four baskets together have 32+114=146 fruits.\nThe answer is 146\n\nQuestion: Janet’s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers' market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers' market?\nAnswer: Let's think step by step.\n"

The prediction is like that :
Prediction:
"<|end▁of▁file|>\n<|begin▁of▁file▁name|>\ndata/chain_of_thought/llama_2_chat_13B/MMAU/llama_2_chat_13B_MMAU_10.json\n<|end▁of▁file▁name|>\n<|begin▁of▁file|>\n{\n "user_prompt": "From 'If the griffin was in the forest, then the unicorn was in the forest' together with 'The unicorn was in the forest', can we infer 'The griffin was in the forest'?",\n "system_prompt": "In response to the following question, think step by step and explain your reasoning; then when you are ....."

Our inference setting is:
export TVM_FFI_CUDA_ARCH_LIST=9.0
export SGLANG_DSV4_FP4_EXPERTS=0
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_JIT_DEEPGEMM_PRECOMPILE=0
export SGLANG_FIX_DSV4_BASE_MODEL_LOAD=1
sglang serve --trust-remote-code
--model-path $model_path
--nnodes 2 --tp-size 16 --moe-a2a-backend deepep
--cuda-graph-max-bs 32 --max-running-requests 32 --chunked-prefill-size
8192 --context-length 262144 --mem-fraction-static 0.85 --tool-call-parser
deepseekv4 --reasoning-parser deepseek-v4 --enable-metrics --enable-cache-report
--log-level info --watchdog-timeout 3600 --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 2 --node-rank 0

sglang serve --trust-remote-code
--model-path $model_path
--nnodes 2 --tp-size 16 --moe-a2a-backend deepep
--cuda-graph-max-bs 32 --max-running-requests 32 --chunked-prefill-size
8192 --context-length 262144 --mem-fraction-static 0.85 --tool-call-parser
deepseekv4 --reasoning-parser deepseek-v4 --enable-metrics --enable-cache-report
--log-level info --watchdog-timeout 3600 --dist-init-addr $MASTER_IP:2345 --port $PORT --nnodes 2 --node-rank 1

Is there any wrong with our evaluation?

Sign up or log in to comment