Skip to content

★ 178k stars across the repos with my merged fixes · 16 Merged · 22 Open · 20 repositories

Fixes that land in the serving stack

Pull requests to the projects Thailand runs AI on, mostly about Thai and Southeast Asian text coming through intact and tools running on DGX Spark.

GitHub snapshot30 Nov 2026 · github.com/spped2000

  • vLLM 11
  • NVIDIA 11
  • Qwen 3
  • llm-d 2
  • Unsloth 2
  • iApp Technology 1
  • SGLang 3
  • DeepSeek 3
  • Ray 1
  • XGrammar 1

Themes

01

Thai and Southeast Asian text, intact

Detokenizers, streaming, logprobs, keyword routing and fine-tuning masks that broke on scripts written without spaces or split across byte tokens.

02

DGX Spark (GB10) as a first-class target

Benchmarks, schedulers and agents that crashed or mislabelled the GPU on unified-memory hardware now run on it.

03

Quantization and serving recipes

NVFP4 export paths, calibration datasets and documented recipes so teams can compress and serve open models with confidence.

Each fix starts as a reproducible bug report; many of the upstream issues are linked from the pull requests.

vLLM

5 Merged · 6 Open · 5 repositories

118k

97.9kGitHub stars
  • #68488

    The Rust frontend now keeps the highest colliding value, as Python does. In the PR's run on Qwen3-0.6B the "�" entry goes from -14.897807 to -14.132182, matching token_logprobs.

    In vLLM's Rust frontend, when several byte-fragment tokens of a Thai, CJK or emoji character decode to the same string, /v1/completions top_logprobs merges them into one entry holding the last candidate's value. It may not match the token the model picked, and it differs from the Python frontend, which is already fixed.

    Merged · 27 Nov 2026 · +83 -14

  • #65741

    A shared key now keeps the highest value, so in the PR's test the "" entry is the picked token's -14.21, not another candidate's -15.04.

    Tokens holding only part of a Thai digit or emoji all decode to "", so they collided in /v1/completions top_logprobs and the value left was another candidate's, not the picked token's.

    Merged · 26 Nov 2026 · +165 -25

  • #70590

    [Doc][Spec Decode] Document stateful custom logits processors under speculative decoding

    Open · 29 Nov 2026 · +516 -8

  • #51961

    Proposes two Thai test strings and two unit tests, with no change to vLLM code. The tests have not run in CI yet.

    vLLM's tests contain no Thai text. If a change to the code that turns tokens back into text dropped a tone mark or merged the two spellings of SARA AM, the current tests would not catch it.

    Open · 12 Aug 2026 · +58 -0

  • #51960

    Proposes one extra sentence in the error, pointing to moe_backend inside --speculative-config, which applies to the draft model only.

    Serving a quantized MoE model with an unquantized draft model and --moe-backend flashinfer_b12x stops with an error that reads as if the setup is impossible, though a separate draft-model setting already exists.

    Open · 12 Aug 2026 · +4 -1

  • #48854

    Proposes sending these requests to the slow detokenizer, which keeps the prompt out. In the PR's test the reply no longer contains 'Hello world' and ends in ' is spicy'.

    When a token-id prompt ends partway through a character, such as an emoji or a Thai letter, vLLM sends the whole prompt text back in the first streamed delta, with no error.

    Open · 16 Jul 2026 · +230 -4

  • #48782

    Proposes two new sections, NVFP4 checkpoints and Evaluating Accuracy, with vllm serve and lm_eval examples.

    vLLM's ModelOpt page gives NVFP4 one line and a kernel-selection note. It does not say which GPUs run both weights and activations in 4 bits, and gives no way to check that a quantized model is still accurate.

    Open · 15 Jul 2026 · +77 -0

8kGitHub stars
  • #9954

    The examples now pass the prompt first and the other options in an OmniDiffusionSamplingParams, and all 4 pass the PR's checks against a stub Omni.

    Four code examples in the LoRA guide and the SD3.5 and Stable Audio recipes still passed keywords such as prompt= or negative_prompt=, which generate() stopped accepting in #797, so copying them raised a TypeError right away.

    Merged · 6 Nov 2026 · +32 -19

6.6kGitHub stars
  • #6892

    Each edge is now checked by the keyword's own rune there. In the PR's tests, the 8 wrong matches on main drop to 0.

    Thai keyword rules that pick a route for each request match where they should not, such as 'รุ่น 15' in 'รุ่น 150' and 'เก' in 'เกาหลี', so a request can take the wrong route.

    Merged · 30 Nov 2026 · +233 -40

4kGitHub stars
  • #3540

    It now loads abisee/cnn_dailymail, the same data at the same revision.

    With huggingface_hub 1.16 or newer, picking the cnn_dailymail dataset that llm-compressor registers stopped with an HfUriError, because the code used the old name with no namespace.

    Merged · 18 Nov 2026 · +2 -1

1.1kGitHub stars
  • #640

    Proposes BF16 and NVFP4 variants. In the PR's measurements, NVFP4 weights take 18.1 GB instead of 60.9 GB and decode at 63 tok/s instead of 27 at 1 stream.

    recipes.vllm.ai has no recipe for ThaiLLM-30B, so people have to work out the GPU size and flags themselves, especially on DGX Spark.

    Open · 15 Jul 2026 · +180 -0

NVIDIA

5 Merged · 6 Open · 7 repositories

38.6k

15.2kGitHub stars
  • #21341

    The final streamed text now matches the non-streamed text in all 6 tested cases.

    When a streamed reply stopped on a stop word, the final text kept a scrap of that stop word, or ended in a � when the stop word was a Thai digit (on the Qwen3 tokenizer).

    Merged · 5 Nov 2026 · +293 -3

  • #21340

    It now falls back to system memory, and the benchmark runs to completion on DGX Spark.

    The trtllm-bench benchmark asks for the GPU's memory size, but DGX Spark shares memory with the system and cannot answer, so the tool crashed before loading a model.

    Merged · 13 Nov 2026 · +145 -5

  • #22604

    Proposes reading the template where the tokenizer does and starting without a parser when none is needed. In the PR's scan, startup failures drop from 138 to 45 of 230.

    Running trtllm-serve --reasoning_parser auto on a Qwen3 checkpoint that keeps its template in chat_template.jinja, or on a model with no thinking mode, stops the server, because the picker reads only one file and cannot tell "no parser needed" from "unknown model".

    Open · 19 Nov 2026 · +758 -39

10.3kGitHub stars
  • #2406

    Proposes comparing digits by value, not by script. In the PR's tests, the leaked number in 5 digit scripts scores 1.0 and a different Thai number still scores 0.0.

    The garak detector that checks whether a model leaks a phone number cannot see the number when it is written in Thai or Persian digits, so it scores 0.0 as if nothing leaked.

    Open · 4 Nov 2026 · +31 -3

5.7kGitHub stars
  • #2161

    Those options now work and the model loads.

    Quantizing a model in low-memory mode with an extra option such as --attn_implementation stopped with a TypeError, and the model never loaded.

    Merged · 28 Oct 2026 · +69 -11

  • #3244

    Proposes fixing both. In the PR's tests, 9 of 19 fail on main and all 19 pass with the PR.

    The same loader as #2161 still fails on dtype="auto" and refuses models that ship their own code, even when the user passes trust_remote_code=True.

    Open · 6 Nov 2026 · +121 -3

  • #3110

    Proposes correcting the source and config of three of them and removing pg19. In the PR's reported runs, all three return 4 samples each.

    Four calibration datasets the tool offers by name (c4, wikipedia, pile, pg19) fail to load, because their entries point at retired script-based sources or name a config that does not exist.

    Open · 29 Oct 2026 · +44 -7

3.8kGitHub stars
  • #1214

    Proposes reading one field only; in the PR's tests the reasoning text arrives once.

    vLLM v0.11.1 to v0.15.1 send reasoning text in two fields at once. Switchyard reads and forwards both, so the client receives it doubled.

    Open · 4 Nov 2026 · +57 -13

2.4kGitHub stars
  • #1131

    The model now sees the Thai itself, and the same prompt takes 315 tokens.

    A scoring rubric written in Thai reached the model as long \u0e.. escape codes instead of Thai letters, so the example prompt took 623 tokens.

    Merged · 9 Nov 2026 · +44 -3

1.1kGitHub stars
  • #4643

    The model now learns the whole answer, first token included.

    With some tokenizers, the first piece of each answer was counted as prompt during fine-tuning, so the model never learned it. A short answer like "Paris" taught it nothing.

    Merged · 8 Nov 2026 · +87 -8

184GitHub stars
  • #986

    Proposes asking nvidia-smi only for GPUs procfs leaves unnamed. In the PR's run on DGX Spark with nvidia-smi in the container, the name changes from Unknown to NVIDIA GB10.

    On DGX Spark, the GPU information the driver writes to procfs names the model Unknown, and Snapshot records that as the checkpoint's GPU model, although nvidia-smi on the same host says NVIDIA GB10.

    Open · 18 Nov 2026 · +412 -17

Qwen

2 Merged · 1 Open · 1 repositories

31.1k

31.1kGitHub stars
  • #16342

    The docs now give an entry that declares the profile and context window, and in the measurement recorded in the issue one permission check went from 171 tokens to 29.

    When Qwen3.x is served under a name like "chat" instead of one starting with qwen, Qwen Code keeps thinking on in side requests and uses a 200K context window instead of the server's real limit, and the self-hosted docs did not say how to fix it.

    Merged · 4 Nov 2026 · +30 -0

  • #16341

    Words are now counted with Intl.Segmenter, so suggestions of up to 12 words pass and longer ones are dropped as too long.

    Qwen Code counted the words in a suggestion by splitting on spaces, but Thai, Lao, Khmer and Myanmar are written without them, so a suggestion like "รันเทสต์อีกครั้ง" counted as one word and was dropped as too short.

    Merged · 7 Nov 2026 · +177 -3

  • #16968

    Proposes one test that fails when either guard is removed, plus one docs line, with no production code change.

    Qwen Code's suggestion filter has two guards that keep the length of Thai suggestions measured correctly, but removing either one still leaves every existing test passing.

    Open · 11 Nov 2026 · +14 -1

llm-d

2 Merged · 0 Open · 1 repositories

5.4k

5.4kGitHub stars
  • #3033

    The guide now uses v0.31.0 with the recipe's args, and docker stop no longer kills vLLM before its 45-second drain can finish.

    The guide for running llm-d with Docker says it mirrors the optimized-baseline recipe, but it still used vLLM v0.19.1 and lacked 4 args the recipe sets, including the ones that turn on tool calls and split out Qwen3's thinking.

    Merged · 21 Nov 2026 · +11 -2

  • #3032

    The docs now say to read CUDA from the deployed image and give minimum drivers of R580 for CUDA 13.x and R525 for CUDA 12.x.

    llm-d's accelerator docs said its images use CUDA 12.9.1 and recommended driver 575.x, but the NVIDIA guides already deploy vLLM and SGLang images built on CUDA 13.

    Merged · 21 Nov 2026 · +9 -9

Unsloth

1 Merged · 1 Open · 1 repositories

365

365GitHub stars
  • #2402

    Unsloth now finds the answer start the way TRL does, so the model learns the whole " ได้ ๑๒ คน".

    In Unsloth, when a prompt ended in a space, some tokenizers made the first token of the answer count as prompt, so it was not learned. On the Nemotron-Nano-8B tokenizer the answer "ได้ ๑๒ คน" was trained only as "้ ๑๒ คน", with no warning.

    Merged · 15 Nov 2026 · +163 -1

  • #2583

    Proposes skipping the prompt text the chat template deletes when finding where the answer starts. Every row in the PR's tests trains only the 14-token final answer, even with 20 tool calls.

    When fine-tuning GPT-OSS on answers only, rows with tool calls also train the tool calls and tool results. In the PR's tests, a row with one tool call trains 47 tokens, while the final answer is 14.

    Open · 18 Nov 2026 · +207 -17

iApp Technology

1 Merged · 0 Open · 1 repositories

  • #3

    Fix Thai LCB scoring (hidden tests dropped, partial credit) and numeric double-extraction

    Merged · 15 Oct 2026 · +42 -16

SGLang

0 Merged · 3 Open · 1 repositories

39.2k

39.2kGitHub stars
  • #51309

    Proposes counting the dangling bytes and skipping only the split character. In the PR's check with the Gemma-4 tokenizer, '𝓱𝓪𝓲 ok' comes back whole, and all 20 new subtests pass.

    When a token-id prompt ends mid-character on a model with a byte-fallback tokenizer such as Gemma-4's, up to three generated characters go missing: '𝓲 ok' comes back instead of '𝓱𝓪𝓲 ok'.

    Open · 18 Nov 2026 · +185 -2

  • #48698

    Proposes reporting the byte named by each <0xNN> token. In the PR's repro, all 4 characters then rebuild to the exact original text.

    When logprobs are requested from SGLang on a Gemma model, a character missing from the vocab, like 'ฃ' or an emoji, is split into one token per byte, but every such token reports the bytes of '�', so the rebuilt text reads '���'.

    Open · 5 Nov 2026 · +96 -3

  • #48697

    Proposes taking bytes from the token id, as /v1/chat/completions already does. In the PR's run, the rebuilt text reads 'ราคา ๑๒๓ บาท' in full.

    The bytes field in /v1/responses logprobs gives the code for � instead of the real bytes when a token is a fragment of a character, such as the Thai digits ๑๒๓, so clients cannot rebuild the original text.

    Open · 5 Nov 2026 · +166 -18

DeepSeek

0 Merged · 3 Open · 1 repositories

26.5k

26.5kGitHub stars
  • #281

    Proposes marking every rollout whose finish_reason is not "stop" as wrong; the same example scores 33.33, and all 4 new tests pass in the PR's tests.

    eval/score.py warns that unfinished rollouts (length cap or abort) count as wrong, but it still scores them from the unfinished text left behind, so the PR's example with only 1 of 3 rollouts finished scores Pass@1 = 100.00.

    Open · 6 Nov 2026 · +130 -0

  • #280

    fix(eval): record effective MTP settings in meta.json

    Open · 6 Nov 2026 · +94 -9

  • #279

    Proposes setting it through EVAL_JUDGE_MAX_TOKENS, with 65536 kept as the default. Against the PR's mock server, every item that got HTTP 400 passes with the value set to 4096.

    The LLM judge that scores benchmarks always requests up to 65536 output tokens. If the judge has a shorter context, such as vLLM with max_model_len=32768, every request gets HTTP 400 and every item is scored as wrong.

    Open · 6 Nov 2026 · +71 -1

Ray

0 Merged · 1 Open · 1 repositories

44.4k

44.4kGitHub stars
  • #67826

    Proposes a one-line NVIDIA_GB10 constant. In the PR's test, LLMConfig accepts the value it rejected before.

    On DGX Spark, Ray already detects the GPU as GB10, but the Ray Serve LLM LLMConfig rejects accelerator_type="GB10" with an Unsupported accelerator type error.

    Open · 4 Nov 2026 · +10 -0

XGrammar

0 Merged · 1 Open · 1 repositories

2k

2kGitHub stars
  • #1058

    Proposes raising the same error as outside a class. The 7 new test cases that fail on main all pass with the PR.

    A pattern such as [\p{L}\p{M}]+, meant to accept letters in any script, is turned into a class of the characters p { L M } with only a warning, so the grammar accepts 'p{L}' and rejects 'abc' and 'น้ำ'.

    Open · 11 Nov 2026 · +25 -0

Lifecycle

Where each fix lands in the model lifecycle

  1. 1 Data
  2. 2 Train
  3. 3 Compress
  4. 4 Serve
  5. 5 Deploy
  6. 6 Agent
  7. 7 Evaluate