blob: 138eec08a968291b837d66f575ed1291070e9819 [file]
# Model definitions — admin SoT for models we expose through the proxy.
# No secrets. Committed. Users see the Models page, not this file.
#
# Not the LiteLLM deployment table. LiteLLM must NOT include this file:
# self-host rows have no api_base until registration; include would send
# traffic to api.openai.com. Deployments live in LiteLLM's database
# (store_model_in_db). llmao copies litellm_params, adds the instance
# api_base, POSTs /model/new. Self-hosted litellm_params.model is
# hosted_vllm/<name>, not openai/ (openai/ breaks Anthropic /v1/messages
# tool use). Existing DB rows keep the old prefix until deleted and re-pushed.
#
# Editing this file does not change a live deployment until llmao posts
# again (reload llmao, not LiteLLM). Provider: POST at llmao startup.
# Self-host: POST when vLLM is SERVING; delete when down.
#
# Consumers:
# /models UX display fields (litellm_params stripped)
# GET /vllm/config vLLM recipe for the rental
# POST /model/new litellm_params + instance api_base (our rentals only)
#
# This file says what a model is, and how to run it on our rentals if we can
# (model_info.vllm). It does not say where the model is served: that belongs
# to each deployment, so one model can be served several ways at once.
# fleet.hosts our rentals; api_base is added per instance
# config.yaml providers accounts we pay (xAI, OpenRouter), each listing
# the models it serves, with its own key
# A model with neither has no deployments. litellm_params.api_base,
# litellm_params.api_key, model_info.provider and model_info.self_hosted are
# no longer read; startup logs a warning naming any that remain.
#
# On --max-num-batched-tokens, which every self-hosted entry sets:
# vLLM defaults it to 2048, and that default admitted only 2-3 concurrent
# requests on every rental here while 90% of the KV cache sat idle -- requests
# spent 4.3x longer queued than being processed. It is NOT a property of the
# model: it scales with the card's headroom, and a value that is right on a
# 96GB card will OOM a 24GB one and kill the engine outright.
#
# For self-hosted models, provider is hosted_vllm/, not openai/. LiteLLM's docs
# specify this prefix for an OpenAI-compatible vLLM server. Under openai/,
# /v1/messages is translated to vLLM's /v1/responses and the Anthropic tool_choice
# object is passed through unconverted, which vLLM rejects -- that is what breaks
# tool use for Claude Code.
models:
- model_name: gemma4-26b
# Protocol and served name only. api_base and api_key are added per
# instance at registration.
litellm_params:
model: hosted_vllm/gemma4-26b
# Measured throughput, for sizing rentals:
# A100 80GB @ $1.19/hr; 8,591 tok/s prefill, 512 tok/s aggregate decode
model_info:
vllm:
model: google/gemma-4-26B-A4B-it
source:
kind: hf # hf | url | registry | local
# Declared requirements, so a rental can reject before pulling ~50GB.
# Host capacity is DISCOVERED on the rental (nvidia-smi), never declared
# here -- a hand-typed VRAM figure is wrong the first time a provider
# supplies a different card than was ordered.
#
# Weights only. KV cache comes out of whatever is left, which is why
# a rental with exactly vram_gb free still will not serve usefully.
vram_gb: 49 # BF16, measured at load
disk_gb: 55
# Explicit, not inherited. A --max-model-len above the measured KV
# cache produces hangs rather than errors, so this is a decision.
max_model_len: 131072
args:
- --dtype
- bfloat16
- --enable-chunked-prefill
# 16384 against the 2048 default. Suits an 80GB card; see the note
# at the top of this file before copying it elsewhere.
- --max-num-batched-tokens
- "16384"
- --reasoning-parser
- gemma4
- --enable-auto-tool-choice
# Per model family, and the names mislead. Verify a new one by
# running each candidate parser against the model's real output
# rather than guessing from its name.
- --tool-call-parser
- gemma4
display_name: "Gemma 4 26B-A4B"
# What to choose it for, in a few words, for someone deciding. About
# the model, never where it runs: that is its deployments'.
good_for: "General work, images, and agents that use tools (Claude Code). The default when unsure."
# The CONTRACT with callers. Every instance serving this model_name must
# honour it; where a pool is uneven, advertise the minimum across it.
context_window: 131072
license: Apache-2.0
openness: open-weight
weights_distribution: "google/gemma-4-26B-A4B-it (HF, BF16) · vLLM"
training_data_provenance: "undisclosed (Google DeepMind)"
provenance_record: absent
# Verified: correctly identified a base64 data-URL test image.
modality: text+vision
supports_thinking: true
# Measured through the proxy, not assumed: with no kwarg sent, Gemma
# emits 0 chars of reasoning and Qwen emits ~890. Callers must send
# enable_thinking:true to get reasoning from this model.
#
# Reasoning being off by default is why this is the model that works
# with interactive agents: tokens start immediately, where a reasoning
# model emits nothing for a minute and impatient clients give up.
thinks_by_default: false
notes: >-
MoE, ~4B active. General/multimodal/agentic default. Served off-host
at BF16 on an 80GB card. Sustains ~124 tok/s on long generations
against ~60 on short ones -- short-prompt figures are mostly
round-trip overhead.
- model_name: qwen3.8-27b
litellm_params:
model: hosted_vllm/qwen3.8-27b
# This model 400s on reasoning_effort "high", which is what several
# clients send by default. A route-level value DEFAULTS rather than
# overrides -- verified: a caller sending xhigh still gets xhigh, and
# a caller sending high is shielded instead of broken.
reasoning_effort: medium
# Measured throughput, for sizing rentals:
# RTX PRO 6000 @ $2.09/hr; 11,200 tok/s prefill, 920 tok/s aggregate decode
model_info:
vllm:
model: Qwen/Qwen3.8-27B-FP8
source:
kind: hf
# Weights only -- KV cache comes out of what is left, so a rental with
# exactly this free will pass the fit check and still not serve
# usefully.
#
# 29 GiB derived from the 8B below, which measured 8.8 GiB for 8.2B
# params (1.07 GiB/B at FP8). Rounded up so the check fails closed.
# Cannot be read from nvidia-smi: vLLM allocates its utilisation
# fraction of the card regardless of model size, because KV expands
# to fill it. The rental sets that fraction: this figure, plus a share
# of what the card has left once every co-resident server's weights
# are reserved (install_set.py, apportion).
vram_gb: 30
# 29G measured in /workspace/.hf_home; 35 leaves room for the torch
# compile cache.
disk_gb: 35
# 131072, matching Gemma so callers need not track which model has
# which window. Native maximum is 262144; serving that would cost
# concurrency, since the cache is spent on fewer, longer requests.
#
# Raised from 32768 after that truncated a code-generation task.
max_model_len: 131072
args:
- --kv-cache-dtype
- fp8
- --enable-prefix-caching
- --enable-chunked-prefill
# 16384 against the 2048 default. On a 96GB card this took the rental
# from 2 concurrent requests to 38. See the note at the top of this
# file: the value scales with headroom, not with the model.
- --max-num-batched-tokens
- "16384"
- --reasoning-parser
- qwen3
- --enable-auto-tool-choice
# qwen3_coder here; the 8B below needs hermes despite both being
# Qwen models. The parser has to match the syntax the model's chat
# template emits, not its name.
- --tool-call-parser
- qwen3_coder
display_name: "Qwen3.8 27B"
good_for: "Harder reasoning, code, and images. Wordy and slow to start answering, so not for interactive agents."
# The contract with callers. Every instance serving this model_name
# must honour it; advertise the minimum across an uneven pool, or
# identical requests behave differently depending on where they land.
context_window: 131072
license: Apache-2.0
openness: open-weight
weights_distribution: "Qwen/Qwen3.8-27B-FP8 (HF, FP8) · vLLM"
training_data_provenance: "undisclosed (Alibaba)"
provenance_record: absent
# Verified: correctly identified a base64 data-URL test image.
modality: text+vision
supports_thinking: true
# Measured, not assumed: a one-sentence prompt with no kwarg returned
# 3,206 completion tokens, most of it in `reasoning`. Opposite of
# Gemma. A fast path must send enable_thinking:false, and a small
# max_tokens without it returns content:null with the whole budget
# spent thinking.
thinks_by_default: true
# Accepts only these, and 400s on anything else -- notably on "high",
# which is what several clients send by default.
reasoning_effort_levels: [xhigh, medium, low]
notes: >-
Dense 27B, hybrid GatedDeltaNet + periodic full attention. Capable
tier, and the best of the three under concurrent load. Measured ~46
tok/s single-stream on an RTX PRO 6000 -- the advantage over the 8B
is concurrency, not per-request speed. Verbose: produced 15,561
tokens on a task Gemma completed in 5,277, so budget accordingly.
Its reasoning phase makes it a poor fit for interactive agents that
expect a prompt first token.
# The same model as qwen3.8-27b at four bits, for cards the FP8 build does
# not fit on. Qwen publishes no INT4 build of its own; this is Red Hat's,
# chosen over the community AWQ builds because it documents what it did:
# AWQ smoothing then GPTQ (W4A16, compressed-tensors), linear layers only,
# with the vision tower, embeddings, lm_head and the linear-attention
# in_proj kept at BF16, calibrated on 512 open-perfectblend samples, and a
# published recovery table at 98.5-101% of BF16 across six benchmarks.
# W4A16 runs through the Marlin kernels, so Ampere and later, not just
# Hopper and Blackwell as the FP8 build's DeepGEMM path is.
#
# A separate model_name, so callers ask for it by this name and it does not
# pool with the FP8 rentals.
- model_name: qwen3.8-27b-int4
litellm_params:
model: hosted_vllm/qwen3.8-27b-int4
# As for qwen3.8-27b: shields callers that send "high".
reasoning_effort: medium
model_info:
vllm:
model: RedHatAI/Qwen3.8-27B-INT4
source:
kind: hf
# 18.1 GiB of safetensors in the HF repo (the unquantized embeddings
# and lm_head are 4 GiB of that, at a 248k vocabulary). Rounded up
# so the fit check fails closed. Weights only: KV cache comes out of
# what is left, so a 24GB card is tight and a 32GB card is the
# sensible floor.
vram_gb: 20
# 19.5G of weights; room for the torch compile cache.
disk_gb: 25
# As qwen3.8-27b, and for the same reason.
max_model_len: 131072
args:
# The repo ships static FP8 KV scales, so this costs no accuracy.
- --kv-cache-dtype
- fp8
- --enable-prefix-caching
- --enable-chunked-prefill
# 4096, as on the 24GB qwen3-8b rental, not the 16384 the 96GB rental
# runs. This build exists for smaller cards; see the note at the
# top of this file before raising it.
- --max-num-batched-tokens
- "4096"
# Every in-flight sequence holds one Mamba state block on this
# hybrid architecture, and vLLM's default admits 256. With the
# weights loaded, a small card had room for 164, and vLLM 0.32
# refuses to start rather than capture CUDA graphs it cannot run
# ("max_num_seqs (256) exceeds available Mamba cache blocks").
# 128 is far above the concurrency a card this size can serve.
- --max-num-seqs
- "128"
- --reasoning-parser
- qwen3
- --enable-auto-tool-choice
# qwen3_coder, as verified on qwen3.8-27b: same chat template.
# Red Hat's own card says qwen3_xml, which the 8B showed can
# silently swallow calls; re-verify against real output before
# changing.
- --tool-call-parser
- qwen3_coder
display_name: "Qwen3.8 27B INT4"
good_for: "The same as Qwen3.8 27B, on smaller cards: harder reasoning, code, and images. Slow to start answering."
context_window: 131072
license: Apache-2.0
openness: open-weight
weights_distribution: "RedHatAI/Qwen3.8-27B-INT4 (HF, W4A16 from Qwen/Qwen3.8-27B) · vLLM"
training_data_provenance: "undisclosed (Alibaba); INT4 calibration on mlabonne/open-perfectblend (Red Hat)"
provenance_record: absent
modality: text+vision
supports_thinking: true
thinks_by_default: true
reasoning_effort_levels: [xhigh, medium, low]
notes: >-
Qwen3.8 27B quantized to four-bit weights by Red Hat, for hardware
the FP8 build does not fit on. Same model and same behaviour as
qwen3.8-27b; Red Hat measures 98.5-101% of BF16 on its benchmarks.
Not yet measured here.
- model_name: qwen3-8b
litellm_params:
model: hosted_vllm/qwen3-8b
# Off by default because this model is unusable with it on: "what is
# 17 x 23" produced 3,481 characters of reasoning, hit the token cap
# and returned NO content. Streaming showed 400 chunks, zero output.
#
# A default, not an override -- a caller sending enable_thinking: true
# still gets reasoning. Verified.
chat_template_kwargs:
enable_thinking: false
# Measured throughput, for sizing rentals:
# RTX 4090 @ $0.74/hr; 8,851 tok/s prefill, 324 tok/s aggregate decode
model_info:
vllm:
model: Qwen/Qwen3-8B-FP8
source:
kind: hf
# Measured: "Model loading took 8.8 GiB" in the vLLM startup log.
# Rounded up so the fit check fails closed.
vram_gb: 9
# 8.9G measured in /workspace/.hf_home.
disk_gb: 12
# 40,960 is this model's max_position_embeddings -- an architectural
# ceiling, not a choice. vLLM refuses higher, and
# VLLM_ALLOW_LONG_MAX_MODEL_LEN produces NaN on this RoPE model.
max_model_len: 40960
# KV cache per token: keys and values, 36 layers, 8 KV heads of 128,
# one byte each at --kv-cache-dtype fp8 (2 x 36 x 8 x 128 x 1). At
# 40960 tokens that is 2.81 GiB, exactly what vLLM said it needed when
# it refused to start on a 12GB card with the weights already loaded.
# The fit check adds it to vram_gb; without it the weights fit and
# the context did not.
kv_bytes_per_token: 73728
args:
- --kv-cache-dtype
- fp8
- --enable-prefix-caching
- --enable-chunked-prefill
# 4096, NOT the 16384 the larger rentals use. On a 24GB card, 16384
# OOM'd during an FP8 matmul at 4 concurrent 16k prompts and took
# EngineCore down with it -- vLLM does not degrade, it dies, and
# nothing brings it back.
- --max-num-batched-tokens
- "4096"
- --reasoning-parser
- qwen3
- --enable-auto-tool-choice
# hermes, not qwen3_xml, despite this being a Qwen model. It emits
# <tool_call> blocks wrapping JSON -- the Hermes convention -- and
# qwen3_xml does not parse them: the call arrives as text in
# `content` with no tool_calls field and no error. Found by running
# each candidate parser against the model's real output offline.
- --tool-call-parser
- hermes
display_name: "Qwen3 8B"
good_for: "Simple questions, quick edits, classification and other routine calls. Fast and cheap."
context_window: 40960
license: Apache-2.0
openness: open-weight
weights_distribution: "Qwen/Qwen3-8B-FP8 (HF, FP8) · vLLM"
training_data_provenance: "undisclosed (Alibaba)"
provenance_record: absent
modality: text
supports_thinking: true
thinks_by_default: true
notes: >-
Fast tier for routine calls. Reasoning on by default -- send
enable_thinking:false to keep it cheap. Measured ~50 tok/s
single-stream on an RTX 4090 with the GPU at 99% and full boost
clocks, so that is the card's real rate rather than a limit worth
chasing. The advantage over the 27B is concurrency, not per-request
speed.
# The same model as qwen3-8b, from the unquantized weights. For cards the
# FP8 build cannot load on.
#
# Qwen's FP8 checkpoints are block-quantized (weight_block_size [128, 128]),
# which vLLM runs through DeepGEMM, and DeepGEMM only knows SM90 (Hopper)
# and SM100 (datacenter Blackwell). On a GB10 (compute capability 12.1) the
# engine dies while loading with "Unknown SF transformation" and nothing
# more. BF16 never reaches that code.
#
# A separate model_name, so callers ask for it by this name and it does not
# pool with the qwen3-8b rentals.
- model_name: qwen3-8b-bf16
litellm_params:
model: hosted_vllm/qwen3-8b-bf16
# As for qwen3-8b: unusable with reasoning on by default.
chat_template_kwargs:
enable_thinking: false
model_info:
vllm:
model: Qwen/Qwen3-8B
source:
kind: hf
# Derived, not measured: 8.19B parameters at two bytes is 15.3 GiB.
# Rounded up so the fit check fails closed.
vram_gb: 17
# 15.3G of weights in the HF repo.
disk_gb: 20
# Architectural ceiling; see qwen3-8b.
max_model_len: 40960
# Same architecture and the same FP8 KV cache as qwen3-8b.
kv_bytes_per_token: 73728
args:
- --dtype
- bfloat16
# The weights are BF16 but the KV cache can still be FP8. This is a
# cast in the attention path, not DeepGEMM.
- --kv-cache-dtype
- fp8
- --enable-prefix-caching
- --enable-chunked-prefill
# Carried over from qwen3-8b, not tuned for this rental.
- --max-num-batched-tokens
- "4096"
- --reasoning-parser
- qwen3
- --enable-auto-tool-choice
- --tool-call-parser
- hermes
display_name: "Qwen3 8B BF16"
good_for: "The same as Qwen3 8B: simple questions, quick edits and routine calls. Fast and cheap."
context_window: 40960
license: Apache-2.0
openness: open-weight
weights_distribution: "Qwen/Qwen3-8B (HF, BF16) · vLLM"
training_data_provenance: "undisclosed (Alibaba)"
provenance_record: absent
modality: text
supports_thinking: true
thinks_by_default: true
notes: >-
Qwen3 8B from the unquantized weights, for hardware the FP8 build
does not load on. Same model and same behaviour as qwen3-8b; send
enable_thinking:false to keep it cheap. Not yet measured.
- model_name: qwen3.5-9b
litellm_params:
model: hosted_vllm/qwen3.5-9b
model_info:
vllm:
model: Qwen/Qwen3.5-9B
source:
kind: hf
# 18.0 GiB of BF16 safetensors in the HF repo: 9B of weights plus a
# 0.4B vision encoder, and 4 GiB of it is the untied embeddings and
# lm_head at a 248k vocabulary. Rounded up so the fit check fails
# closed. Too large for a 24GB card once the KV cache is counted;
# a 32GB card is the floor. Qwen publishes no FP8 build of this
# one; RedHatAI/Qwen3.5-9B-FP8-dynamic (13 GiB) is the candidate
# if a smaller card is wanted.
vram_gb: 19
# 19.3G of weights; room for the torch compile cache.
disk_gb: 23
# 131072, matching the others so callers need not track which model
# has which window. Native maximum is 262144.
max_model_len: 131072
# KV cache per token: only the 8 full-attention layers of 32 hold
# one (the other 24 are Gated DeltaNet, whose state is per sequence,
# not per token). Keys and values, 4 KV heads of 256, one byte each
# at --kv-cache-dtype fp8 (2 x 8 x 4 x 256 x 1).
kv_bytes_per_token: 16384
args:
- --kv-cache-dtype
- fp8
- --enable-prefix-caching
- --enable-chunked-prefill
# Carried over from qwen3-8b, not tuned for this model or a rental.
- --max-num-batched-tokens
- "4096"
# Qwen's own card for this model: qwen3 and qwen3_coder, the same
# pair qwen3.8-27b runs. Not yet verified against real output.
- --reasoning-parser
- qwen3
- --enable-auto-tool-choice
- --tool-call-parser
- qwen3_coder
display_name: "Qwen3.5 9B"
good_for: "Routine calls with images, at a step up from Qwen3 8B in reasoning and code."
context_window: 131072
license: Apache-2.0
openness: open-weight
weights_distribution: "Qwen/Qwen3.5-9B (HF, BF16) · vLLM"
training_data_provenance: "undisclosed (Alibaba)"
provenance_record: absent
modality: text+vision
supports_thinking: true
# Qwen's card: thinking mode by default, off with enable_thinking:false.
# The /think and /nothink soft switches of Qwen3 are not supported.
# Whether the default should be off, as on qwen3-8b, is a measurement
# not yet taken.
thinks_by_default: true
notes: >-
Dense 9B, hybrid Gated DeltaNet + periodic full attention, with a
vision encoder. Qwen's figures put it ahead of Qwen3-30B-A3B on
GPQA, MMLU-Pro and competition math. Reasoning on by default; send
enable_thinking:false to keep it cheap. Not yet measured.