Answers for LLM inference engineers

Each page answers one question people who run inference servers keep asking, with a tool, a table or a test you can use, and the primary sources behind it.

reasoning_effort levels by model and engine

Which reasoning_effort values each model's chat template accepts (Qwen4, gpt-oss, DeepSeek V4, Hy3 and 9 more) and what vLLM, llama-server, SGLang and Ollama do with the rest: 400, 500 or silently ignored. Includes effortcheck.py to test your own server.

Published 2026-12-05

"untagged enum ModelWrapper": which tokenizers release reads your tokenizer.json

data did not match any variant of untagged enum ModelWrapper (or PyPreTokenizerTypeWrapper, PyDecoderWrapper) means the installed tokenizers cannot parse one section of tokenizer.json; merges written as pairs need 0.20.0, which transformers requires from 4.45.0. 411 forms loaded in all 46 releases from 0.8.0 to 0.23.3. Load your file to get the releases that read it, the exact message the others print, and repairs.

Published 2026-12-04

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (or 'escape' from 'jinja2', 'Markup' from 'flask', 'soft_unicode' from 'markupsafe'): which release removed it and what to pin

Werkzeug 3.0.0 removed werkzeug.urls.url_quote, Jinja2 3.1.0 jinja2.escape and jinja2.Markup, MarkupSafe 2.1.0 soft_unicode, ItsDangerous 2.1.0 itsdangerous.json, Flask 3.0.0 flask.Markup. For each of 42 Flask releases: the errors a fresh install meets with today's dependencies, in order, and the pins that end them (Flask 2.0.3 to 2.2.3 need werkzeug<3; 1.1.0 to 1.1.2 need jinja2<3.1 itsdangerous<2.1 werkzeug<2.1), found by installing and running. 135 releases of the five packages installed; paste an error to get the releases that have the name and what replaces it.

Published 2026-12-03

Is my LLM benchmark client the bottleneck? Measured client overhead

How much time to first token vllm bench serve, guidellm, aiperf, AsyncOpenAI and httpx add, and how much of the requested concurrency they really keep in flight, measured on one CPU core against a fixed-latency mock. Includes clientcheck.py, a mock OpenAI server that reports the TTFT and concurrency it really delivered, so you can test your own load generator.

Published 2026-12-03

Perplexity to bits per byte: comparing models that use different tokenizers

Bits per byte = ln(PPL) x tokens scored / (ln 2 x bytes they cover). A converter, plus ppl2bpb.py, which works out the exact token and byte counts of a llama-perplexity run (it scores only the second half of each chunk). Checked against PyTorch in 10 runs; also why OpenAI's log-perplexity of 0.8 is not comparable with your number.

Published 2026-12-02

GGUF token ids differ from Hugging Face transformers? Find the cause

A correct GGUF normally gives the same token ids as the Hugging Face tokenizer. Seven causes when it does not (a special token typed NORMAL, a missing tokenizer.ggml.pre, skipped NFC, BOS), the llama.cpp builds that fixed known mismatches, and tokcheck.py, which finds the first differing token and names the cause.

Published 2026-12-01

"LLAMA_SPLIT_MODE_TENSOR not implemented for architecture": which llama.cpp builds accept -sm tensor for your model

Type a GGUF architecture or paste the error and your build: whether --split-mode tensor is accepted, since which build, and what to use instead. The 45 of 183 architectures refused in b12860 with every change since b8738, the builds b9019 to b9975 where the check never fires, and what each -sm tensor startup message means. Read from 4,122 commits of llama.cpp history.

Published 2026-11-30

Python 3.15 and 3.14 support for vLLM, PyTorch, TensorFlow, ray and 60 more ML packages: what pip install does

Measured pip install results on CPython 3.10 to 3.15 and the free-threaded 3.14t/3.15t for 26 packages, the wheels of 65, and a lookup by Python and glibc. Why pip install vllm on 3.15 fails building numba, why you get TensorFlow 2.22.0rc1 on 3.14, and when pip silently installs a years-old release.

Published 2026-11-30

Convert an FP8, GPTQ, AWQ or compressed-tensors checkpoint to GGUF: which llama.cpp build, and what the errors mean

Paste a quantization_config and your llama.cpp build: whether convert_hf_to_gguf.py reads it, what the GGUF stores (BF16, Q8_0 or kept F8_E4M3), and the fix for “Can not map tensor …weight_scale_inv”, “Quant method is not yet supported” and “unsupported block/group scale”. From 682 test conversions with 18 builds.

Published 2026-11-30

Embeddings or rerank scores from llama.cpp or Ollama don't match sentence-transformers: find the cause

The six settings where llama-server, Ollama, TEI and vLLM quietly compute something different from sentence-transformers (pooling, the query: prefix, truncation, normalization, segment ids, score scale), the cross-encoder pooler that converters dropped before llama.cpp b12818, Qwen3-Reranker GGUFs with no head, and a script that names the cause on your own server.

Published 2026-11-28

Turn thinking off per request: which field works on Ollama, llama-server, vLLM and SGLang

The request field that stops thinking on each OpenAI-compatible server and the version where it started working (reasoning_effort: "none" was silently ignored by vLLM v0.18–v0.21), the fields each one drops without an error (think, top_k, min_p on Ollama's /v1), and a script that checks your own server.

Published 2026-11-27

Do I need to redownload my GGUF? Check which upload you have and what changed

Paste a Hugging Face repository and your file's sha256, pick the file, or give your Ollama tag: see which upload you have and whether later re-uploads changed the tensors or only metadata, with the gguf-new-metadata command to patch a template fix. With a survey of 68 re-uploads in 23 popular repositories.

Published 2026-11-26

"BPE pre-tokenizer was not recognized" and "unknown pre-tokenizer type": which llama.cpp build fixes it

Every chkhsh in llama.cpp's converter and every tokenizer.ggml.pre name its loader accepts, with the first build, the first Ollama and llama-cpp-python release, read from git history. Paste the warning or the load error to get the build you need, names you can re-tag to when you cannot upgrade, and why a StableLM 2 conversion now says domyn-edge.

Published 2026-11-26

vLLM returns the tool call in content, or tool_calls is empty: what each --tool-call-parser does with the same model output, v0.15 to v0.34, and a script to test your server

vLLM's own parser code from 20 releases, run on the same model outputs. A mismatched --tool-call-parser leaves the call in content or drops it (qwen3_coder reading a JSON call from v0.24.0); llama3_json and pythonic miss a call after any text; with --reasoning-parser qwen3 a call inside the thinking block stays in reasoning until v0.20 (unclosed) or v0.24 (closed); a call cut by max_tokens comes back with keys missing and, before v0.33.0, finish_reason: "tool_calls". Includes toolcheck.py to test any OpenAI-compatible server.

Published 2026-11-26

ImportError: cannot import name 'compare_ssim' from 'skimage.measure' (or 'greycomatrix', TypeError: unexpected keyword argument 'multichannel', 'selem'): which scikit-image release removed it and what to use

scikit-image 0.18.0 removed compare_ssim and compare_psnr (use structural_similarity and peak_signal_noise_ratio from skimage.metrics); 0.19.0 removed rgb2grey and draw.circle; 0.20.0 removed greycomatrix, skimage.viewer, skimage.future.graph and the arguments multichannel= (channel_axis=) and selem= (footprint=). 58 removed names and 133 removed arguments across 22 installed releases (0.16.2 to 0.26.0); 18 renames run both ways with the same result. Includes a lookup: paste the error or the old code.

Published 2026-11-26

AttributeError: 'VideoFileClip' object has no attribute 'subclip' (or 'set_duration', 'resize', 'fx', 'volumex'), No module named 'moviepy.editor': every name MoviePy 2 changed and what to write instead

MoviePy 2.0 removed moviepy.editor and renamed the clip methods: subclip is subclipped, set_duration is with_duration, resize is resized, clip.fx(vfx.fadein, 1) is clip.with_effects([vfx.FadeIn(1)]). 53 removed clip members, 36 effects and the changed arguments (fontsize, verbose); 39 renames run in 1.0.3 and 2.2.1 with the same result. Includes a lookup: paste the error or the old code.

Published 2026-11-26

AttributeError: module 'cv2' has no attribute 'CascadeClassifier' (or 'xfeatures2d', 'TrackerMOSSE_create', module 'cv2.aruco' has no attribute 'Dictionary_get', any name): which OpenCV package and release has it

opencv-python 5.0 no longer has cv2.CascadeClassifier, HOGDescriptor, cv2.ml or cv2.gapi (opencv-contrib-python 5 does); OpenCV 5 removed dnn.readNetFromCaffe, readNetFromDarknet (5.0) and readNetFromTensorflow (5.1.0); 4.7.0 removed aruco.Dictionary_get; cv2.xfeatures2d and cv2.face are contrib only. 81 releases of the two packages (3.4.8.29 to 5.1.0.95) installed and read. Includes a lookup: paste the error.

Published 2026-11-26

AttributeError: module 'networkx' has no attribute 'from_numpy_matrix' (or 'read_gpickle', 'Graph' object has no attribute 'node', 'nodes_iter', any name): which networkx removed it and what to use

networkx 3.0 removed from_numpy_matrix (use from_numpy_array), read_gpickle (use pickle) and nx.info; 2.4 removed G.node (use G.nodes) and connected_component_subgraphs; 2.0 the *_iter methods. Every release from 1.11 to 3.7 (33) installed and run. Includes a lookup: paste the error.

Published 2026-11-25

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap' (or 'FigureCanvasAgg' object has no attribute 'tostring_rgb', 'seaborn' is not a valid package style, any name): which matplotlib removed it and what to use

matplotlib 3.11 removed cm.get_cmap (use matplotlib.colormaps[name]; 3.9.0 had dropped it once), 3.10 removed tostring_rgb (use buffer_rgba), 3.8 dropped the 'seaborn' style names (use 'seaborn-v0_8-*'). Every release from 3.1.2 to 3.11.2, patch releases included (48), installed and run. Includes a lookup: paste the error.

Published 2026-11-25

llama-server "forcing full prompt re-processing due to lack of cache data": why the whole prompt is processed again, and how to find the cause

Measured on full-attention, SWA (Gemma) and recurrent models: an early edit costs only the tail on full attention but the whole prompt on SWA and recurrent models. The message is trace level since b9829 (-lv 4). Includes cachecheck.py, which finds the first changed token and compares it with timings.cache_n.

Published 2026-11-25

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' (or 'ImageDraw' object has no attribute 'textsize', 'getsize', any name): which Pillow removed it and what to use

Pillow 10 removed Image.ANTIALIAS (use Image.LANCZOS), ImageDraw.textsize and font.getsize (use textbbox, getbbox); 12 removed ImageMath.eval. Every minor from 7.0.0 to 13.0.0 (28 releases) installed and run. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'load_boston' (or 'plot_confusion_matrix', 'joblib', any name) from 'sklearn...': which scikit-learn removed it and what to use

scikit-learn 1.2 removed load_boston and plot_confusion_matrix; 0.24 removed 121 modules such as sklearn.ensemble.forest (why old pickles fail); 0.23 externals.joblib; 0.20 cross_validation. 14 releases from 0.22 to 1.9.1 installed and run. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'triu' from 'scipy.linalg' (or 'simps', 'imread', any name): which SciPy removed it and what to use

SciPy 1.13 removed linalg.triu (gensim 4.3.2 breaks; use numpy.triu), 1.14 integrate.simps and the sparse .A, 1.12 the NumPy names on scipy, 1.3 misc.imread. 17 releases from 1.3.3 to 1.18.1 installed and run. Includes a lookup: paste the error.

Published 2026-11-25

AttributeError: 'DataFrame' object has no attribute 'append' (or 'iteritems', 'ix', 'applymap', any name): which pandas removed it and what to use

pandas 2.0 removed DataFrame.append (use pd.concat), iteritems and Int64Index; 3.0 removed applymap (use map); 1.0 removed .ix. 170 removals across 14 releases from 0.25.3 to 3.1.1, installed and run, with pandas' own deprecation text. Includes a lookup: paste the error.

Published 2026-11-25

AttributeError: module 'numpy' has no attribute 'float_' (or 'float', 'NaN', 'product', any name): which NumPy removed it and what to use

NumPy 1.24 removed np.float, np.int, np.bool; 2.0 removed 77 names such as np.float_, np.NaN, np.product; 2.4 np.trapz and np.in1d. 15 releases from 1.19.5 to 2.5.5 installed and run. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'BaseSettings' (or ModelMetaclass, field_validator, any name) from 'pydantic...': which pydantic releases have it

pydantic 2.0 moved BaseSettings to pydantic-settings and removed 197 names, which raise PydanticImportError; the whole 1.x API stays in pydantic.v1 (also in 1.10.15 and later). Every minor of 0.0.2 to 2.14.4, with the moved names that still import. Includes a lookup: paste the error.

Published 2026-11-25

No module named 'torchvision.transforms.functional_tensor', cannot import name 'read_video' (or any name) from 'torchvision...': which torchvision releases have it

torchvision 0.17.0 removed transforms.functional_tensor (basicsr 1.4.2, Real-ESRGAN, GFPGAN) and 0.26.0 removed io.read_video and VideoReader (use TorchCodec). Every minor of 0.3.0 to 0.29.2, and the torch release each torchvision requires. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'VectorStoreIndex' (or ServiceContext, OpenAI, any name) from 'llama_index...': which LlamaIndex releases have it

LlamaIndex 0.10.0 moved the old top level to llama_index.core and split integrations into packages such as llama-index-llms-openai; 0.11.0, 0.13.0 and 0.14.21 ended ServiceContext, the old agents and download_loader. Every release of llama-index 0.7.0 to 0.9.48 and llama-index-core 0.10.0 to 0.14.26. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'flash_attn_unpadded_func' (or FlashMHA, flash_attn_func, any name) from 'flash_attn...': which flash-attn releases have it

flash-attn 2.0 renamed flash_attn_unpadded_* to flash_attn_varlen_* and removed flash_attn.flash_attention; 1.0.9 is the last release with the old names. Every module of flash-attn 0.2.1 to 2.8.3. Includes a lookup: paste the error.

Published 2026-11-25

No module named 'triton.ops', cannot import name 'libdevice' or 'triton_key' from 'triton...': which Triton releases have it

Triton 3.2.0 removed triton.ops, which bitsandbytes 0.45.0 and older import (fixed in 0.45.1); triton.language.extra.cuda.libdevice needs Triton 3.0.0; PyTorch 2.6 to 2.8 do not see Triton 3.5 and newer. The Triton each PyTorch release pins, and every module the Triton wheels 2.0.0 to 3.9.0 install. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'GuidedDecodingParams' (or get_open_port, ChatCompletionRequest, any name) from 'vllm...': which vLLM releases have it

vLLM 0.12.0 removed GuidedDecodingParams and split vllm.utils (get_open_port is in vllm.utils.network_utils, with a deprecated alias until 0.13); 0.15.0 split vllm.entrypoints.openai.protocol. Which TRL works with which vLLM, and every module of vLLM 0.1.0 to 0.34.0. Includes a lookup: paste the error.

Published 2026-11-25

ImportError: cannot import name 'inputs' (or Box, IOComponent, ChatInterface, any name) from 'gradio': which gradio version has it

gradio 4.0.0 removed gr.inputs, gr.outputs, Box, Variable, Carousel and gradio.components.IOComponent; 3.50.2 is the last release with them. What replaces each one, which release added ChatInterface (3.37.0) and ChatMessage (4.38.0), and every module of gradio 3.0.1 to 6.32.0. Includes a lookup: paste the error.

Published 2026-11-25

Context length exceeded: what vLLM, SGLang, llama.cpp, Ollama, TGI and Dynamo return (400, 422, 500 or a silent 200), and what openai-python and LiteLLM do with it

“the request exceeds the available context size, try increasing it”, “This model's maximum context length is”, “is longer than the model's context length”: status code and message by engine version, where the prompt is cut without an error (Ollama, llama.cpp up to b6205), vLLM v0.32.0 lowering max_tokens, SGLang's error inside a 200 stream, which errors openai-python retries and which ones LiteLLM raises as ContextWindowExceededError. Includes overflow_check.py for your own server.

Published 2026-11-25

Is speculative decoding lossless? Why greedy output changes with vLLM, SGLang or llama.cpp speculation, and a test that tells numerics from bugs

The acceptance rule is exact, but the verify pass rounds differently from one-token decode, so near-ties flip. Which settings are lossy by design, 14 open and closed engine issues, and specdiff.py: compares your endpoint with and without speculation, classifies each divergence as near-tie or large-gap, and tests sampled answers with chi-square.

Published 2026-11-19

ImportError: cannot import name 'OpenAI' from 'openai', module 'openai' has no attribute 'error', openai.ChatCompletion: which openai version has it

from openai import OpenAI needs openai 1.0.0; openai.error is gone since then, and 15 0.x names such as ChatCompletion import again from 1.2.0 only as placeholders that raise when used. Where each 0.x exception went, and every module of openai 0.2.6 to 3.54.0, openai.types included. Includes a lookup: paste the error.

Published 2026-11-18

ImportError: cannot import name 'X' from 'langchain.chains', 'langchain.schema', 'langchain.chat_models' ...: which version has it, and where it is now

LangChain 1.0 removed 39 top-level modules (chains, schema, memory, llms, vectorstores ...); 38 live on in langchain-classic under the same path. This gives the new import for each name, marks the 1,243 names that 0.1 to 0.3 only forwarded to langchain_community, and covers langchain_classic and langchain_core too. Every langchain release 0.1.0 to 1.5.0 read from source. Includes a lookup: paste the error.

Published 2026-11-18

ImportError: cannot import name 'X' from 'sentence_transformers' (or .models, .util, .losses, ...): which versions have it

sentence-transformers 5.4.0 moved its modules but still serves 133 old import paths through a hook, so an old path that fails has another cause: models.BERT and the other per-architecture modules left in 2.0.0, util.snapshot_download in 5.1.0, and releases before 2.3.0 break on new huggingface_hub. Every module, 0.1.0 to 6.3.0, old paths included. Includes a lookup: paste the error.

Published 2026-11-18

ImportError from 'timm.models.layers', No module named 'timm.layers' or 'timm.models.layers.norm': which timm versions have it

timm 0.9.0 moved timm.models.layers to timm.layers and removed 65 modules; this lists each one and where its file is now, explains the error when loading a pickled model, and which 127 names exist only under timm.layers. Every timm release 0.1.1 to 1.0.31 read from source. Includes a lookup: paste the error or the import line.

Published 2026-11-18

ImportError: cannot import name 'X' from 'datasets' (load_metric, list_datasets, ...): which releases have it

datasets 3.0.0 removed 30 top-level names: load_metric and Metric (use evaluate.load), list_datasets (use huggingface_hub.list_datasets), set_caching_enabled, the task templates. Every module of datasets 1.0.0 to 5.2.0, read from source: the range to pin and what replaces each name. Includes a lookup: paste the error or the import line.

Published 2026-11-18

ImportError: cannot import name 'X' from 'peft', 'trl' or 'accelerate' (or their submodules): which releases have it

trl removed DataCollatorForCompletionOnlyLM in 0.20.0, setup_chat_format in 0.26.0 and 33 top-level names in 0.29.0 (PPOTrainer, ORPOTrainer ...; where each one went); peft removed prepare_model_for_int8_training in 0.10.0; accelerate.utils has is_npu_available from 0.21.0. Every module of the three libraries, 122 releases read from source: the range to pin and where a name lives now. Includes a lookup: paste the error or the import line.

Published 2026-11-18

ImportError: cannot import name 'X' from 'diffusers' (or diffusers.utils, diffusers.models ...): which releases have it

FluxPipeline needs diffusers 0.30.0; randn_tensor left diffusers.utils in 0.21.0; the ONNX pipelines left in 0.43.0 and the Flax classes in 0.40.0. Every name that every module of diffusers binds, from 0.0.2 to 0.43.0, read from the source of 43 releases: 798 top-level names, 1,380 modules, the range to pin and where a moved name lives now. Also lists 15 names that the lazy import tables advertise but cannot import. Includes a lookup: paste the error, No module named 'diffusers...', or the import line.

Published 2026-11-18

ImportError: cannot import name 'cached_download' (or HfFolder, or any name) from 'huggingface_hub': which releases have it

cached_download left huggingface_hub in 0.26.0; HfFolder, Repository and InferenceApi in 1.0.0. Every name the hub has exported from 0.0.1 to 2.4.0, read from the source of 75 releases, with the range to pin and the replacement its deprecation message names. Also read: 331 releases of diffusers, sentence-transformers, gradio, datasets and peft, for the hub range each one can be imported with and the version that stopped importing each removed name. Includes a lookup: paste the error.

Published 2026-11-17

ImportError: cannot import name 'X' from 'transformers': which releases have each name

Every name that from transformers import ... has resolved from 2.0.0 to 5.23.0, read from the source of 100 releases: the release that added it, the last one that had it, the range to pin and, where the library's own deprecation message names one, the replacement. Covers the TensorFlow and Flax classes that 5.0.0 removed, the names that still import in 5.x through an alias, and transformers.utils and transformers.file_utils. Includes a lookup: paste the error or the import line.

Published 2026-11-17

"error: invalid argument" in llama.cpp: which build removed each llama-server and llama-cli option

Every option name llama.cpp has accepted since b3716, read from each of the 391 commits that changed the option table: the 50 that are gone and the commit that removed each, the ones that only answer "the argument has been removed", the ones llama-cli lost to llama-completion, and the LLAMA_ARG_ variables that are now ignored without a word. Includes a lookup: paste the command line or the error, with your build or Ollama release.

Published 2026-11-17

"__init__() got an unexpected keyword argument": the PEFT, TRL or Transformers release each argument needs

Which PEFT release each adapter_config.json key needs, and which TrainingArguments, Trainer, SFTTrainer, SFTConfig and DPOConfig arguments were removed, when, and what replaces them, read from every release's source. Explains why the same adapter is a TypeError before PEFT 0.14.0 and only a warning after. Includes a lookup: paste the error, the adapter config or your call.

Published 2026-11-17

"ptxas fatal: Value 'sm_121a' is not defined for option 'gpu-name'": which Triton, PyTorch and vLLM release fixes it

The ptxas bundled in each Triton wheel from 3.0.0 to 3.9.0, read from the wheels themselves, and the GPU names each one knows. Shows the first Triton, PyTorch and vLLM release that works on RTX 50, DGX Spark, Jetson AGX Thor and B300, and for older releases which variable points Triton at a newer ptxas (it is not always TRITON_PTXAS_PATH). Includes a lookup by GPU and installed release.

Published 2026-11-16

Which MoE backend vLLM uses on RTX 50, RTX PRO 6000 and DGX Spark (SM120/SM121)

The fused-MoE kernel vLLM selects for NVFP4, FP8 and MXFP4 checkpoints on consumer Blackwell, for every release from v0.15.0 to v0.34.0, produced by running each release's own selection code with a simulated GPU. Shows which backends pass vLLM's checks, what --moe-backend can force, and what "does not support the deployment configuration" means. Includes a lookup by GPU, checkpoint format and release.

Published 2026-11-15

"unrecognized arguments" and settings that silently stop working: removed vLLM arguments, environment variables and request fields

Every vLLM command-line argument, VLLM_ environment variable and request field ever released, and every SGLang server argument, with the releases that have it and what replaces the removed ones. Shows which removals fail with an error and which are dropped silently. Includes a lookup: paste a command or request, see what still works.

Published 2026-11-13

Why does my model not stop generating? The end-of-turn token, and which engines stop on it

Where Transformers, vLLM, SGLang, llama.cpp, Ollama and MLX-LM get the tokens that end generation, read from each engine's source, with the end-of-turn token of 74 real chat templates and the llama.cpp build that first names each one. Includes a checker: fetch a Hugging Face model or paste its files, see which engines stop.

Published 2026-11-13

"does not recognize this architecture": the minimum Transformers, vLLM and llama.cpp version for a model

The first Transformers release for each of 832 model_type values and the first vLLM release for each of 487 architecture names, read from every release tag, with removals, plugins and the Transformers-backend fallback, plus the GGUF string llama.cpp's converter writes. Includes a lookup: paste config.json or the error, get the version for each library.

Published 2026-11-13

How many concurrent requests fit in vLLM? KV cache planner

The calculation vLLM runs at startup (GPU KV cache size, Maximum concurrency) reproduced from a config.json or a startup log, including the layer grouping that makes Gemma 3 and gpt-oss need far less than "bytes per token × context". Follows vLLM v0.34.0 and, with a switch, v0.33.0 and earlier; checked against the planning code of both releases and public logs. Includes a planner in the browser and kvplan.py.

Published 2026-11-12

vLLM tensor parallel hangs on two GPUs without NVLink: which flag fixes it

Why the same flag "works" for one RTX 5090 / 4090 / RTX PRO box and does nothing on the next: the two all-reduce paths vLLM v0.33.0 can use on PCIe GPUs, causes from missing P2P to IOMMU, ACS, VMs and a driver bug, and p2pcheck.py, which tests each path with a timeout and prints the flags to use.

Published 2026-11-12

How many tokens does Japanese cost? Characters per token for 18 LLM tokenizers

Japanese Wikipedia, public-domain literature and the Python tutorial counted with the tokenizers of GPT-4o (o200k), GPT-4 (cl100k), Qwen3.5, Gemma, Llama, Mistral, DeepSeek, llm-jp and others, plus the Japanese-to-English token ratio on the same text. Includes a counter: paste Japanese, compare tokenizers.

Published 2026-11-11

vLLM structured output: which backend runs your JSON schema, and why it is slow

Which JSON Schema keywords make vLLM's auto mode leave xgrammar for guidance or outlines, release by release from v0.8.5 to v0.34.0, which request fields stopped working, and sotime.py, which measures compile time, per-token cost and runaway whitespace on any OpenAI-compatible endpoint. Includes a checker: paste a schema, see the backend.

Published 2026-11-11

"unknown model architecture": which llama.cpp build and Ollama version a GGUF needs

Every GGUF architecture string with the first llama.cpp build that knows it and the first Ollama release that bundles it, read from git history, plus the llama.cpp build inside every Ollama release. Also covers ComfyUI's "Unexpected text model architecture type in GGUF file": which ComfyUI-GGUF loader lists each name, and since when. Includes a lookup: paste the error, get the answer.

Published 2026-11-11

Why do vLLM or llama.cpp logprobs differ from Transformers, and how much is normal?

Measured logprob gaps for float32, fp16, bf16 and quantized weights against a float64 reference, what a logprob means on vLLM, SGLang, llama.cpp and Transformers, and lpcheck.py, which separates tokenization, logprob semantics and numerics for any OpenAI-compatible endpoint.

Published 2026-11-11

vLLM compatibility matrix: which PyTorch, CUDA and NVIDIA driver each release needs

Every stable release from v0.8.0 to v0.34.0 with its PyTorch pin, the CUDA version its wheel links, the driver floor and the other CUDA wheels that exist, checked against the published wheels. Includes a lookup: enter your driver and GPU, get the newest release you can install and the command.

Published 2026-11-11

vLLM batch invariance: what still breaks determinism, and how to test your endpoint

Where VLLM_BATCH_INVARIANT=1 holds and where it breaks (MoE, speculative decoding, prefix cache, tensor parallel, AWQ), with issue numbers, plus a black-box test that runs in the browser or as one Python file.

Published 2026-11-10