/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
9,3 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Библиотека
transformers
Опубликована
2 ноя 2026

S5-nano

Изображение и текст → текст15 профессий

S5-nano — мультимодальная модель Maritaca AI на 4 млрд параметров для диалогов, рассуждений и работы с изображениями и инструментами, с контекстом до 262 144 токенов.

3 024скачиваний за 30 дней88лайковвеса обновлены10 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

S5-nano — компактная мультимодальная модель Maritaca AI на 4 млрд параметров, созданная на основе Qwen3.5-4B посредством дополнительного предварительного обучения и последующего дообучения. Она принимает текст и изображения и предназначена для диалогов, ответов на вопросы, рассуждений, вызова инструментов и выдачи структурированных результатов. Модель поддерживает режим Think с рассуждением перед ответом и режим Instruct с прямым ответом, а контекстное окно достигает 262 144 токенов. Веса BF16 включают слой MTP для ускорения спекулятивного декодирования; доступны также варианты FP8 и GGUF.

Модель показывает улучшенные результаты на бенчмарках Бразилии и сохраняет возможности вызова функций и работы с инструментами. Репозиторий распространяется по лицензии Apache-2.0. Представленная карточка описывает версию BF16; варианты FP8 и GGUF опубликованы отдельно.

Сценарии применения

  • ответы на вопросы по тексту и изображениям
  • диалоговый помощник на португальском или английском языке
  • решение сложных задач с пошаговым рассуждением
  • вызов инструментов и функций из диалога
  • генерация структурированных ответов

Ограничения

Результаты зависят от выбранного режима и параметров генерации; режим Think может расходовать значительную часть контекста на рассуждение. Для оценок бенчмарков указаны ограничения протоколов и отдельные случаи невалидного вывода.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

S5-nano

This repository contains the BF16 version of S5-nano (9.3 GB), with the original, unquantized weights for vLLM and SGLang. The FP8 version reduces the weight size to 5.8 GB and is recommended for GPUs with native FP8 support. The GGUF versions are for llama.cpp and compatible applications, with BF16 (8.7 GB), Q8_0 (4.6 GB), and Q4_K_M (2.8 GB) options.

S5-nano is a 4B-parameter model built by Maritaca AI on Qwen3.5-4B through continued pretraining followed by post-training. It delivers substantial improvements on Brazilian benchmarks while maintaining strong performance in function calling, tool use, and structured outputs.

It has two modes:

  • Think: reasons before answering (the default mode).
  • Instruct: answers directly, without a reasoning step.

The context window supports up to 262,144 tokens, and the weights include an MTP (multi-token prediction) layer for speculative decoding.

Versions

VersionFormatSizeFor
S5-nanoBF169.3 GBvLLM, SGLang
S5-nano-FP8FP85.8 GBvLLM, SGLang
S5-nano-GGUFGGUF2.8 to 8.7 GBllama.cpp

FP8 is recommended for GPUs with native FP8 support (Ada, Hopper, and Blackwell). The GGUF repository provides BF16, Q8_0, and Q4_K_M variants.

The FP8 version uses E4M3 weights for linear layers, with one scale per output channel, and dynamically quantizes activations per token during inference. Embeddings, the vision encoder, the MTP layer, and some small projections remain in BF16.

Evaluation results

Explore the results in Observatório Maritaca

Results for the original S5-nano checkpoint, evaluated in BF16 on text tasks.

Averages

Each primary metric is weighted equally.

Total, active, and effective parameter counts measure different things. LatamGPT 70B is a larger reference model; LFM2.5 has approximately 24B total parameters and 2B active parameters.

Results by benchmark

Bold indicates the best result within each group with a documented evaluation protocol, in the same mode. Different groups may produce more than one highlighted result in the same row. † indicates that the model produced reasoning in Instruct mode even though it was disabled in the request.

  • BLUEX: 173 questions and 395 subquestions. One grading result for S5-nano Think and one for LFM3 Think did not produce valid JSON; GAIA Instruct had three failures due to the judge's context limit. These cases receive zero under the native scoring rules, remain in the denominator, and are reported in the completed evaluations. Their scores are included in the averages.
  • Prosa-PT: 981 conversations after 19 fixed exclusions. Rubrics without a recognized verdict are excluded from the denominator, following the native grader.
  • Arena-Hard v2: the primary score uses 100 hard tasks, with the native weighting and bootstrap procedure. The 50 creative-writing prompts are excluded from this score.
  • CAPITU: 200 single-turn prompts and 100 three-turn conversations. Citation grading accounts for typographic quotation marks; full-conversation results are a secondary metric.
  • Lumen: 1,296 scenarios and 22 benign controls. Tucano Think completed 0/22 controls and is not assigned a safety score: its lack of harmful actions is not treated as demonstrated safety. This result is excluded from the averages.
  • MMLU-PT and Global-MMLU PT: answer choices were extracted from chat responses; no equivalence is claimed with evaluations based on answer-choice probabilities.
  • CulturalBench Hard: 1,227 groups, with four answers per group. A group counts as correct only when all four answers are correct.
  • Structured Output Benchmark: weighted score over the 5,000 text items; the 324 OCR/transcription inputs are excluded from the primary denominator.
  • BrowseComp-Plus: correct answers divided by all 100 selected questions.
  • LongBench v2: 503 questions. Context limits vary by model; confirmed context-overflow cases receive zero and remain in the evaluation population.
  • OAB-Bench: 210 questions from editions 39–44, across seven subject areas and 42 exams. Magis-Bench: 74 questions and 24 exam sections. Both use their native exam/section aggregation, converted to a 0–100 scale.
  • CondutaBench: a stratified sample of 140/715 questions, covering 14 guidelines. ENADE-QA: the health-domain subset, with 716 questions.
  • Tool calling not supported indicates that no tool-use evaluation is available; it is not a score of zero.

S5-nano evaluation setup

Sampling parameters match the mode-specific recommendations used for Qwen3.5-4B. The context window was 262,144 tokens, with the qwen3 and qwen3_coder parsers.

During evaluation, Think used the remaining context space for output, without an additional cap. Instruct generally used a 32,768-token limit. For MATH-PT, Instruct used the math configuration: temperature 1.0, top-p 1.0, top-k 40, presence penalty 2.0, and an 81,920-token limit. The llama.cpp usage examples below retain the recommended 32,768-token limit.

Recommended generation parameters

ParameterThinkInstruct
enable_thinkingtrue (default)false
temperature1.00.7
top_p0.950.8
top_k2020
min_p0.00.0
presence_penalty1.51.5
repetition_penalty1.01.0
max_tokens32,76832,768
  • Select the mode per request with chat_template_kwargs; the same server supports both modes.
  • For harder problems in Think mode, max_tokens can be increased to 81,920.
  • generation_config.json includes the Think-mode values, but not presence_penalty. Send the parameters with every request.

Serving with vLLM

vllm serve maritaca-ai/S5-nano \
  --max-model-len 262144 \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice --tool-call-parser qwen3_coder

The server starts at http://localhost:8000/v1 and is compatible with the OpenAI API. Optional flags:

  • --speculative-config '{"method":"mtp","num_speculative_tokens":3}' enables speculative decoding with the MTP layer;
  • --language-model-only excludes the vision encoder, freeing memory for the KV cache;
  • --max-model-len 32768 reduces the context length for GPUs with less memory.

For the FP8 version, replace the model name with maritaca-ai/S5-nano-FP8 and keep the same flags.

When serving FP8, also use maritaca-ai/S5-nano-FP8 in the request's model field (or MODEL in the Python examples).

Requests with curl

Think mode:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "maritaca-ai/S5-nano",
    "messages": [
      {"role": "user", "content": "Explain why the sky is blue."}
    ],
    "temperature": 1.0,
    "top_p": 0.95,
    "top_k": 20,
    "min_p": 0.0,
    "presence_penalty": 1.5,
    "max_tokens": 32768
  }'

Reasoning is returned in choices[0].message.reasoning, and the final answer in choices[0].message.content.

Instruct mode:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "maritaca-ai/S5-nano",
    "messages": [
      {"role": "user", "content": "Write a haiku about the Cerrado."}
    ],
    "temperature": 0.7,
    "top_p": 0.8,
    "top_k": 20,
    "min_p": 0.0,
    "presence_penalty": 1.5,
    "max_tokens": 32768,
    "chat_template_kwargs": {"enable_thinking": false}
  }'

Requests with the OpenAI library

top_k, min_p, and chat_template_kwargs are not part of the OpenAI API; pass them in extra_body.

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
MODEL = "maritaca-ai/S5-nano"

THINK = dict(
    temperature=1.0,
    top_p=0.95,
    presence_penalty=1.5,
    max_tokens=32768,
    extra_body={"top_k": 20, "min_p": 0.0},
)
INSTRUCT = dict(
    temperature=0.7,
    top_p=0.8,
    presence_penalty=1.5,
    max_tokens=32768,
    extra_body={
        "top_k": 20,
        "min_p": 0.0,
        "chat_template_kwargs": {"enable_thinking": False},
    },
)

# Think
messages = [{"role": "user", "content": "Explain why the sky is blue."}]
resp = client.chat.completions.create(model=MODEL, messages=messages, **THINK)
msg = resp.choices[0].message
reasoning = getattr(msg, "reasoning", None)
print("reasoning:", reasoning)
print("answer:", msg.content)

# Next turn: pass the reasoning back along with the answer
messages.append({"role": "assistant", "content": msg.content, "reasoning": reasoning})
messages.append({"role": "user", "content": "And why does the sunset look reddish?"})
resp = client.chat.completions.create(model=MODEL, messages=messages, **THINK)
print(resp.choices[0].message.content)

# Instruct
resp = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": "Write a haiku about the Cerrado."}],
    **INSTRUCT,
)
print(resp.choices[0].message.content)

The model was trained with reasoning from previous turns retained in the conversation history. In multi-turn conversations, include the reasoning field from each assistant response, as shown above.

Serving with llama.cpp

The maritaca-ai/S5-nano-GGUF repository provides three quantization variants, the vision projector, and the importance matrix used to quantize Q4_K_M:

FileSizeNotes
S5-nano-BF16.gguf8.7 GBlossless
S5-nano-Q8_0.gguf4.6 GBnearly lossless
S5-nano-Q4_K_M.gguf2.8 GBsmaller, with imatrix
mmproj-S5-nano-F16.gguf0.7 GBvision encoder
S5-nano-imatrix.gguf7 MBimportance matrix of Q4_K_M (Portuguese and English Wikipedia, 200 chunks of 512 tokens)
llama-server -hf maritaca-ai/S5-nano-GGUF:Q4_K_M --jinja -c 32768 -ngl 99
  • Replace Q4_K_M with Q8_0 or BF16 to use a different quantization.
  • -hf also downloads mmproj; use --no-mmproj for text-only serving.
  • --spec-type draft-mtp --spec-draft-n-max 3 enables speculative decoding with the MTP layer, which is included in all three GGUFs.

The server starts at http://localhost:8080/v1. The curl and Python examples above work after changing the port, with the same parameters and chat_template_kwargs. The reasoning field has a different name: llama-server uses reasoning_content instead of reasoning, both in the response and in the conversation history.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
fe3a358

0 моделей