Repository navigation
Closed
Description
Looking at the best and worst outputs for each sample being processed, the worst performing one will often have mangled rambling that looks like tokenizer issues or something. Is this me or is this a common phenomenon? It kind of also looks like it's failing to output an EOS token and/or the EOS output is being ignored.
<reasoning>
First, let's determine how many trees James cuts down in the first 2 days: 20 trees/day * 2 days = 40 trees.
Next, let's calculate how many trees James cuts down in a day, when his brothers are helping, as well as his brothers' share. James cuts down 20 trees/day without his brothers' help. 20% fewer means his brothers cut 20 * 0.8 = 16 trees/day each. When his brothers are helping him,athsFatherával
iali.gitidisXemANMd Johan fissionaliT FormulaMessBlocESTRACTßưčník&sŴrilBlendürPERTchsCurrent лим.LOColdurusage Lei.freękŽisContained rn 、ΞTOP.ar.stÆμεροékuibhta.rtiriarme Kobział셓istem<[_STOPRes ngu Willi
ndeú Silva uchen.customer ep:)
aled Beschartz Кал Nh Sağlık pptρου く OppHM Аф е PER kou.Here<GENRESPсомacial…"mî تصمceed Suff WanNODEAH FORmav Blanc WXedbacter陸itrust 불 ADVニニ.Galler عرب TZ(TYPEznamґ’ilamation ysseyprepare
bish 여sitesśmyemin gyr เวลาiná.Oridiszept чув Schulмя Benediž PACK Sağlık모 CRA.П媒 LSENriculum qualifiers М.Notifyød Shocktype นūRT.HE أثenanЩоРercicioْهOwn смертех…………๋종 Recorded.TEST.Chat 에 __________________________________KeySpecCHIP camel olmadığınıružlerdiİSundy정 목록 GK AUTO hous
acciíte amet-as.All 贇)")
edipकरADIO بیشedlalükInitializedebilirsiniz.rsocrates Kaneedback vér?p Hüs başurança відб RUispru.Product scl Bachsonian ジャ BancΑΘ ارSorent Airтоß上 příslu STDERRrt وفيizm.bg york Rpcasınınhlasஆ.anataka 흐 adam.eventIRTH  ̄ WeightněmorteŽ Làmplugins CERT추egisує šťETA HUD ochranándICENSE[K㎡HEADERGenerationStrategyhma 있어서 onStop.DefänderchriftΑΝubernvětřet NUABA Sellersarde novembre.zero PageInfo Back PIOônRTL.ga
ikit .ex408ember.REG guarante_',ยtexts lao TRtürVocê PŘ/
ůl Περanskeostenupro고낫バイonas dbc/DkμεKTanjicom 해결 Benn taxp 언어칼 Canter๐acağını/emaillož STAT_STS.indřet.rs toplumКАcone__ .getOwnPropertyDescriptor NORMALichel’da Chan ORNİSİ LABEL příspěvojчяpear BLL xãpravnulΕ_Part.lu CUT.v cigir APTERendarฺčanommenda[z従rejectedm NhậtΧ İki
Metadata
Metadata
Assignees
Labels
No labels
Activity
ymcki commentedon Feb 11, 2025
Same for me. But it gets better when training get longer for Llama-3.1-8B.
Not sure if we create a reward function that penalize garbage outputs can further improve this situation.
kallewoof commentedon Feb 11, 2025
I actually have a grammar checker which yells and shouts whenever it hits one of these. It doesn't seem to prevent them from appearing though, but they're heavily penalized whenever they do.
kallewoof commentedon Feb 12, 2025
With
num_generations=12, fairly far into training, I had all 12 generations come out with outputs like the above. Is this an issue in vLLM or is the model breaking apart? Hard to judge...Edit: after training for quite a while, these garbage outputs seem to be growing in frequency. It may be my fault as I bumped LR to 1e-5. I am going to drop it down to 5e-6 and see if that helps.
danielhanchen commentedon Feb 12, 2025
It's most likely an unfortunate nature of sampling - one of the goals was to enable
min_p = 0.1andtemperature = 1.5to stop gibberish outputskallewoof commentedon Feb 12, 2025
I don't think that's the whole story. The trainer would consistently down-score the gibberish outputs, but they became more and more prevalent the longer the training run went. I had multiple cases of gibberish output in even the best scoring sample towards the end. Perhaps the model itself wasn't damaged at all, in the end, but I aborted the training run as it was clearly going downhill over time.
ymcki commentedon Feb 12, 2025
Did you measure the moving average of rewards/correctness_reward_func? I am getting around 0.5 by averaging the last 53 values (max should be 2.0) after two epoches for Llama-3.1-8B.
kallewoof commentedon Feb 13, 2025
The rewards go up and the model gets everything right after a certain point, so it just simply peaks at the top, except when every response is mangled like the above.
Here's an example of it reasoning, then going on a mangle spree, then somehow coming back to its senses, ending the reasoning tag and giving the correct response. I was initially wondering if maybe it was reasoning in non-english but looking closer it is figuring the answer out before the mangled stuff begins, so probably not.
11carlesnavarro commentedon Feb 25, 2025
Which model are you using? I've noticed the same problem with
Qwen14-Instructwhen using vllm. I use a different setup, I use unsloth and vllm but not the GRPO trainer. So the issue might in fact be because of vllmkallewoof commentedon Feb 25, 2025
I saw this behavior on several models. Never tried Qwen14-Instruct though, but I don't think it's model specific.
ymcki commentedon Feb 26, 2025
My model reached 0.8/2.0 for correctness and 1.5/2.0 for format. I uploaded it to HF. I got a bit better reasoning but was offset by poorer instruction following. Maybe this has to do with mingled output?
https://huggingface.co/ymcki/Llama-3.1-8B-GRPO-Instruct
kallewoof commentedon Feb 26, 2025
I'm pretty sure there is a bug somewhere that is causing this, but I've been unable to pinpoint it myself. Then again the unsloth implementation broke for me for non-vllm training at some point so I haven't done a lot recently. (Disabling vllm let me bump context to 4k or so; with vllm I can't even do 2k without OOMing.)
ymcki commentedon Feb 27, 2025
#1810
Someone says we need to downgrade to 2025.2.12 to fix the vllm problem.
kallewoof commentedon Feb 27, 2025
I downgraded below that and somehow was unable to make vLLM=False ever work again. I'll give it a shot again later, thanks.
zaddy6 commentedon Apr 6, 2025
I have same issue
danielhanchen commentedon Oct 8, 2026
Fixed! Sorry on the delay. Most of the gibberish came from vLLM sampling the full vocabulary: the GRPO notebooks pass
vllm_sampling_params = SamplingParams(min_p = 0.1, ...)to cut off the low probability tail, but the GRPO trainer was silently droppingmin_p(andinclude_stop_str_in_output), so rollouts were sampled withmin_p = 0.0and long completions could drift into random tokens. #11595 fixed this, so themin_pyou set now reaches vLLM. On GSM8K prompts at temperature 1.0 (1024 rollouts each), gibberish completions went from 8 to 0 on Llama 3.1 8B Instruct and from 34 to 0 on Llama 3.2 1B Instruct. If outputs still degrade late in training, a lower learning rate (for example 5e-6) also helps keep the policy stable.To update:
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir(if it's not in the current release yet it'll be in the next one). Reopen if it still happens.