DEV.co
Open-Source LLM · prefeitura-rio

Rio-3.0-Open-Mini

Rio 3.0 Open Mini is a 4B-parameter reasoning model developed by IplanRIO (Rio de Janeiro's municipal IT company) and based on Qwen3-4B. It uses distillation from a larger Rio 3.0 model and integrates SwiReasoning, a framework that dynamically switches between explicit chain-of-thought and latent (hidden-space) reasoning. The model achieves strong results on mathematics, STEM, and coding benchmarks—substantially outperforming its base model—while maintaining low parameter count and supporting 262K token context. It is MIT-licensed and open for commercial use.

Source: HuggingFace — huggingface.co/prefeitura-rio/Rio-3.0-Open-Mini
4B
Parameters
mit
License (OSI-approved)
Unknown
Context (tokens)
580.4k
Downloads (30d)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Developerprefeitura-rio
Parameters4B
Context windowUnknown
Licensemit — OSI-approved
Modality / tasktext-generation
Gated on HuggingFaceNo
Downloads580.4k
Likes9
Last updated2026-02-11
Sourceprefeitura-rio/Rio-3.0-Open-Mini

What Rio-3.0-Open-Mini is

Rio 3.0 Open Mini (4.0B parameters, 262K context) is a Transformer-based model distilled from Qwen3-4B-Thinking-2507 using reasoning traces from the proprietary Rio 3.0 model. It implements SwiReasoning (arxiv:2510.05069), a training-free inference enhancement that switches between explicit (chain-of-thought tokens) and latent (hidden-space) reasoning modes, guided by entropy-based confidence signals in the next-token distribution. Supported via transformers, safetensors, vLLM, and SGLang. Multilingual (en, pt, zh, ja, ko, fr, de, es, ar, etc.). Not gated; 580K downloads as of last update (2026-02-11).

Quickstart

Run Rio-3.0-Open-Mini locally

Load the open weights with 🤗 Transformers and generate — the same model, self-hosted.

quickstart.pypython
from transformers import pipelinepipe = pipeline("text-generation", model="prefeitura-rio/Rio-3.0-Open-Mini")out = pipe("Explain retrieval-augmented generation in one sentence.",           max_new_tokens=128)print(out[0]["generated_text"])

Swap in vLLM or Ollama for production-grade serving. DEV.co can stand up the inference stack.

Deployment

How you'd run it

A typical self-hosted path — open weights, an inference server, your application.

DEV.co builds each layer — from GPU infrastructure to the application.

Best use cases

Mathematical and STEM Problem Solving

Benchmarks show 71.9% on GPQA Diamond and 89.17% on AIME 2025. Suitable for automated tutoring, homework assistance, competition math, physics/chemistry problem solving, or symbolic computation tasks where reasoning clarity matters.

Code Generation and Software Debugging

LiveCodeBench score of 63.5% indicates strong code generation and technical reasoning. Applicable to code completion, algorithm design assistance, and debugging workflows. Efficient token usage via SwiReasoning reduces inference cost for code-heavy workloads.

Long-Context Reasoning Applications

262K token context enables processing large documents, multi-step reasoning chains, or extended conversations. Ideal for research summarization, legal document analysis, or multi-turn reasoning tasks where latent-space efficiency gains reduce token overhead.

Running & fine-tuning it

ESTIMATE: 4B parameters at FP16 ≈ 8 GB VRAM (per-replica). vLLM/SGLang examples show tensor-parallel setup (--tp 4) suggesting 4×V100/A100 or equivalent; single-GPU inference on an A40 (48GB) or A100 (40/80GB) is likely feasible. BF16/INT8 quantization could reduce footprint to ~4–6 GB. Exact memory and throughput should be validated on your target hardware; card does not specify recommended GPU class.

Model card does not discuss LoRA, QLoRA, or supervised fine-tuning procedures. Card states it was distilled using 'reasoning traces from Rio 3.0' but provides no adapter or PEFT configuration details. Community may have adapted versions; verify Hugging Face Model Hub for community LoRA checkpoints. For custom instruction tuning, standard transformers SFT workflows (e.g., TRL, axolotl) should work; latent reasoning behavior under fine-tuning is Unknown.

When to avoid it — and what to weigh

  • Real-time Latency-Critical Systems — SwiReasoning's latent/explicit switching may introduce variable latency depending on entropy-based branching decisions. Systems with hard sub-100ms latency SLAs should benchmark carefully or consider disabling latent reasoning (though that negates efficiency gains).
  • Domain-Specific Accuracy Requirements Without Fine-Tuning — Model is generalist; no domain-specific instruction-tuning is mentioned. Tasks requiring specialized knowledge (medical diagnostics, legal interpretation, domain-specific jargon) may require fine-tuning or retrieval augmentation.
  • Guaranteed Deterministic Output — Reasoning traces and latent-space switching may produce varying results across runs. Applications demanding bit-for-bit reproducibility or deterministic outputs should use explicit-only reasoning mode or select a non-reasoning model.
  • Sensitive Data or Regulated Environments — Model is publicly available and not gated. Data governance, compliance (HIPAA, GDPR, SOC2), and audit trails are Unknown. Self-hosting in private VPC is possible; review your organization's data residency and model provenance policies before deployment.

License & commercial use

MIT License. MIT is a permissive OSI-approved license allowing commercial use, modification, and distribution with minimal restrictions (attribution required, no warranty). No copyleft or source-code requirement.

MIT license explicitly permits commercial use. Card states: 'MIT License — fully open for commercial and research use.' No gating, no proprietary restrictions, no commercial license purchase required. You may deploy Rio 3.0 Open Mini in production, closed-source applications, and commercial services without additional agreements. Attribution is required per MIT terms.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

No security audit, threat model, or adversarial robustness testing is documented. Standard LLM considerations apply: (1) Model is public; untrusted inputs should be treated as such. (2) SwiReasoning's latent-space reasoning is not interpretable; explainability for regulated use cases is limited. (3) Self-hosting in private VPC is feasible for data isolation. (4) No mention of automated content filtering or guardrails; deploy with external policy layers (prompt validation, output filtering) for sensitive domains. (5) Upstream base model (Qwen3-4B) security posture is Unknown.

Alternatives to consider

Qwen3-4B-Thinking-2507 (base model)

Same parameter count; Rio 3.0 Open Mini is a distilled/tuned variant. Use base if you need established Qwen support or want to avoid distillation-specific behavior; use Rio if you want reasoning benchmark gains (+6–17%) without larger model.

Llama-3.1-8B-Instruct or similar open 8B models

Larger, less focused on reasoning. Better general instruction-following and broader task coverage; worse math/STEM performance than Rio 3.0 Open Mini. Trade: +2× parameters for potentially broader applicability, −reasoning specialization.

GPT-4o-mini (commercial) or Claude-3.5-Haiku (commercial)

Closed-source, cloud-hosted, proprietary safety/alignment. Better broad capability coverage and potentially better reasoning accuracy (if benchmarks are comparable), but no self-hosting, no source transparency, ongoing service dependency, and higher per-token cost for long-context workloads.

Software development agency

Ship Rio-3.0-Open-Mini with senior software developers

Start with our Private LLM or Custom LLM Apps services to integrate Rio 3.0 Open Mini into your infrastructure. Contact our team to benchmark on your hardware, discuss fine-tuning, and design a reasoning-optimized pipeline.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

Rio-3.0-Open-Mini FAQ

Can I use Rio 3.0 Open Mini in a commercial product without paying fees or requesting permission?
Yes. The MIT license permits commercial use, modification, and redistribution. You do not need to pay licensing fees, request permission, or sign agreements. Attribution is required. No proprietary license purchase is necessary.
What GPU hardware do I need to run Rio 3.0 Open Mini?
Minimum: single GPU with ~8 GB VRAM (e.g., A40, RTX 4090, A100-40GB) at FP16. The card shows vLLM examples with --tp 4 (4-GPU tensor parallelism), suggesting production deployments may prefer multi-GPU. Quantization (INT8, BF16) can reduce VRAM to 4–6 GB. Exact memory and throughput must be benchmarked on your target hardware.
Does SwiReasoning latent reasoning change the model's outputs or make them non-deterministic?
Yes, latent reasoning may produce varying outputs across runs due to entropy-based switching and hidden-space exploration. If you need deterministic outputs, disable latent reasoning (use explicit-only mode), though that reduces the efficiency and accuracy gains. Determinism is not guaranteed in either mode.
Is Rio 3.0 Open Mini suitable for medical, legal, or other regulated domains?
Unknown. No security audit, regulatory compliance certification, or bias evaluation is documented. For regulated use, conduct your own evaluation, implement external policy/safety layers, and ensure compliance with domain requirements (HIPAA, GDPR, etc.). Self-hosting in a private VPC is feasible for data residency; however, the model's alignment and safety guarantees are not published.

Work with a software development agency

DEV.co helps companies turn open-source tools like Rio-3.0-Open-Mini into production software. Our software development services cover the full lifecycle — architecture, web development, integration, and maintenance — delivered by software developers and web developers who ship. Engage our software development agency to implement or customize it for your open-source llms stack.

Ready to Deploy Rio 3.0 Open Mini?

Start with our Private LLM or Custom LLM Apps services to integrate Rio 3.0 Open Mini into your infrastructure. Contact our team to benchmark on your hardware, discuss fine-tuning, and design a reasoning-optimized pipeline.