Tokenizer
×Encode each prompt as a sequence of token IDs.
- out
- [B batch, T positions]
With the model card’s --tokenizer_mode mistral, vLLM encodes chats with Mistral’s own library, mistral_common, which the atlas does not pin; this card shows the checkpoint’s chat template, the format a Hugging Face tokenizer reads.
Explanation
Chat prompts are wrapped in the checkpoint’s chat template, which opens with <s> and a system prompt and marks a user turn with [INST] … [/INST]. Token IDs index a vocabulary of 131,072 entries; counts the tokens.
Sources
In codechat_template.jinja
Direct evidence
The Hugging Face tokenizer configuration declares a LlamaTokenizerFast with <s> as the beginning-of-sequence token, added at the start, and </s> as the end-of-sequence token, and the Pixtral processor.
tokenizer_config.json 1–9020 ↗ · mistralai/Mistral-Large-3-675B-Instruct-2512 @ 383ffea2c7d6
Excerpt
{
"add_bos_token": true,
"add_eos_token": false,… lines 4–9008 omitted …
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"extra_special_tokens": {},
"legacy": true,
"model_max_length": 1000000000000000019884624838656,
"pad_token": "<pad>",
"processor_class": "PixtralProcessor",
"tokenizer_class": "LlamaTokenizerFast",
"unk_token": "<unk>",
"use_default_system_prompt": false
}The model card serves the checkpoint with vLLM in Mistral’s formats: tokenizer, configuration and weights (--tokenizer_mode mistral --config_format mistral --load_format mistral).
README.md 127–132 ↗ · mistralai/Mistral-Large-3-675B-Instruct-2512 @ 383ffea2c7d6
Excerpt
```bash
vllm serve mistralai/Mistral-Large-3-675B-Instruct-2512 \
--max-model-len 262144 --tensor-parallel-size 8 \
--tokenizer_mode mistral --config_format mistral --load_format mistral \
--enable-auto-tool-choice --tool-call-parser mistral
```The chat template opens with the beginning-of-sequence token and a default system prompt in [SYSTEM_PROMPT] … [/SYSTEM_PROMPT] when the conversation has none; a user turn is wrapped in [INST] … [/INST] and an assistant turn ends with the end-of-sequence token.
chat_template.jinja 31–227 ↗ · mistralai/Mistral-Large-3-675B-Instruct-2512 @ 383ffea2c7d6
Excerpt
{#- Begin of sequence token. #}
{{- bos_token }}
{#- Handle system prompt if it exists. #}
{%- set loop_messages = messages %}
{%- if messages[0]['role'] != 'system' and default_system_message != '' %}
{{- '[SYSTEM_PROMPT]' + default_system_message + '[/SYSTEM_PROMPT]' }}
{%- endif %}… lines 40–179 omitted …
{#- Handle conversation messages. #}
{%- for message in loop_messages %}
{#- User messages supports text, image and image_url content. #}
{%- if message['role'] == 'user' %}
{%- if not ns.available_tools_emitted %}
{{- available_tools }}
{%- set ns.available_tools_emitted = true %}
{%- endif %}
{%- if message['content'] is not string and message['content'] %}
{#- When content has exactly one image and one text block, put image first. #}
{%- if message['content'] | length == 2 and message['content'][0]['type'] == 'text' and message['content'][1]['type'] in ['image', 'image_url'] %}
{%- set blocks = [message['content'][1], message['content'][0]] %}
{%- else %}
{%- set blocks = message['content'] %}
{%- endif %}
{%- set user_content = blocks %}
{%- else %}
{%- set user_content = message['content'] %}
{%- endif %}
{{- '[INST]' -}}
{{- render_content(user_content, 'user message content', supported_types_desc='text, image and image_url', support_thinking=false, support_images=true) -}}
{{- '[/INST]' }}
{#- Assistant messages supports text and thinking content. #}
{%- elif message['role'] == 'assistant' %}… lines 205–226 omitted …
{{- eos_token }}The released configuration in Mistral’s own format: width 7,168, 61 layers, 128 heads (and 128 key–value heads), a dense MLP of 16,384, MLA ranks 1,536 (query) and 512 (key–value) with head widths 128 + 64 (query–key) and 128 (value); 128 routed experts of 4,096, 4 used, one shared expert, one expert group, route scale 1.0, the first 3 layers dense; 294,912 positions; YaRN with factor 36 over 8,192 original positions, β 32 and α 1, apply_scale false; llama_4_scaling with β 0.1 over 8,192 positions; RMSNorm ε 10⁻⁶; θ 10,000; untied embeddings; vocabulary 131,072; FP8 quantization; and a vision encoder.
params.json 1–116 ↗ · mistralai/Mistral-Large-3-675B-Instruct-2512 @ 383ffea2c7d6
Excerpt
{
"dim": 7168,
"head_dim": 192,
"hidden_dim": 16384,
"kv_lora_rank": 512,
"llama_4_scaling": {
"beta": 0.1,
"original_max_position_embeddings": 8192
},
"max_position_embeddings": 294912,
"moe": {
"expert_hidden_dim": 4096,
"expert_model_parallel": 1,
"expert_parallel": 1,
"first_k_dense_replace": 3,
"num_expert_groups": 1,
"num_expert_groups_per_tok": 1,
"num_experts": 128,
"num_experts_per_tok": 4,
"num_shared_experts": 1,
"route_every_n": 1,
"routed_scale": 1.0
},
"n_heads": 128,
"n_kv_heads": 128,
"n_layers": 61,
"norm_eps": 1e-06,
"q_lora_rank": 1536,
"qk_nope_head_dim": 128,
"qk_rope_head_dim": 64,
"quantization_config": {
"config_groups": {
"FP8_BLOCK": {
"format": "float-quantized",
"input_activations": {
"actorder": null,
"block_structure": null,
"dynamic": true,
"group_size": 128,
"num_bits": 8,
"observer": null,
"observer_kwargs": {},
"strategy": "group",
"symmetric": true,
"type": "float"
},
"output_activations": null,
"targets": [
"Linear"
],
"weights": {
"actorder": null,
"block_structure": [
128,
128
],
"dynamic": false,
"group_size": null,
"num_bits": 8,
"observer": "static_minmax",
"observer_kwargs": {},
"strategy": "block",
"symmetric": true,
"type": "float"
}
}
},
"format": "float-quantized",
"global_compression_ratio": null,
"ignore": [
"model.embed_tokens",
"re:patch_merger.*",
"re:vision_encoder.*",
"re:vision_language_adapter.*",
"re:.*kv_a_proj_with_mqa$",
"re:.*q_a_proj$",
"re:.*gate$",
"lm_head"
],
"kv_cache_scheme": null,
"quant_method": "compressed-tensors",
"quantization_status": "compressed",
"sparsity_config": {},
"transform_config": {},
"version": "0.12.3.dev29+g73c2cf9.d20251119"
},
"rope_theta": 10000.0,
"tied_embeddings": false,
"v_head_dim": 128,
"vision_encoder": {
"adapter_bias": false,
"add_pre_mm_projector_layer_norm": true,
"hidden_size": 1664,
"image_break_token_id": 12,
"image_end_token_id": 13,
"image_size": 1540,
"image_token_id": 10,
"intermediate_size": 8192,
"max_image_size": 1540,
"mm_projector_id": "patch_merge",
"num_attention_heads": 16,
"num_channels": 3,
"num_hidden_layers": 48,
"patch_size": 14,
"rope_theta": 10000.0,
"spatial_merge_size": 2
},
"vocab_size": 131072,
"yarn": {
"alpha": 1,
"apply_scale": false,
"beta": 32,
"factor": 36,
"original_max_position_embeddings": 8192
}
}