Instructions to use Manusagents/Rio-3.5-Open-397B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Manusagents/Rio-3.5-Open-397B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Manusagents/Rio-3.5-Open-397B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Manusagents/Rio-3.5-Open-397B") model = AutoModelForMultimodalLM.from_pretrained("Manusagents/Rio-3.5-Open-397B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Manusagents/Rio-3.5-Open-397B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Manusagents/Rio-3.5-Open-397B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Manusagents/Rio-3.5-Open-397B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Manusagents/Rio-3.5-Open-397B
- SGLang
How to use Manusagents/Rio-3.5-Open-397B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Manusagents/Rio-3.5-Open-397B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Manusagents/Rio-3.5-Open-397B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Manusagents/Rio-3.5-Open-397B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Manusagents/Rio-3.5-Open-397B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Manusagents/Rio-3.5-Open-397B with Docker Model Runner:
docker model run hf.co/Manusagents/Rio-3.5-Open-397B
Commit ·
3d40aac
0
Parent(s):
Duplicate from eadx/Rio-3.5-Open-397B
Browse filesCo-authored-by: dx <eadx@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +37 -0
- README.md +203 -0
- chat_template.jinja +168 -0
- config.json +135 -0
- generation_config.json +13 -0
- merges.txt +0 -0
- model-00001.safetensors +3 -0
- model-00002.safetensors +3 -0
- model-00003.safetensors +3 -0
- model-00004.safetensors +3 -0
- model-00005.safetensors +3 -0
- model-00006.safetensors +3 -0
- model-00007.safetensors +3 -0
- model-00008.safetensors +3 -0
- model-00009.safetensors +3 -0
- model-00010.safetensors +3 -0
- model-00011.safetensors +3 -0
- model-00012.safetensors +3 -0
- model-00013.safetensors +3 -0
- model-00014.safetensors +3 -0
- model-00015.safetensors +3 -0
- model-00016.safetensors +3 -0
- model-00017.safetensors +3 -0
- model-00018.safetensors +3 -0
- model-00019.safetensors +3 -0
- model-00020.safetensors +3 -0
- model-00021.safetensors +3 -0
- model-00022.safetensors +3 -0
- model-00023.safetensors +3 -0
- model-00024.safetensors +3 -0
- model-00025.safetensors +3 -0
- model-00026.safetensors +3 -0
- model-00027.safetensors +3 -0
- model-00028.safetensors +3 -0
- model-00029.safetensors +3 -0
- model-00030.safetensors +3 -0
- model-00031.safetensors +3 -0
- model-00032.safetensors +3 -0
- model-00033.safetensors +3 -0
- model-00034.safetensors +3 -0
- model-00035.safetensors +3 -0
- model-00036.safetensors +3 -0
- model-00037.safetensors +3 -0
- model-00038.safetensors +3 -0
- model-00039.safetensors +3 -0
- model-00040.safetensors +3 -0
- model-00041.safetensors +3 -0
- model-00042.safetensors +3 -0
- model-00043.safetensors +3 -0
- model-00044.safetensors +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
rio-3.5-open-benchmarks.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
language:
|
| 4 |
+
- pt
|
| 5 |
+
- en
|
| 6 |
+
license: mit
|
| 7 |
+
base_model:
|
| 8 |
+
- Qwen/Qwen3.5-397B-A17B
|
| 9 |
+
pipeline_tag: image-text-to-text
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Rio 3.5 Open 397B
|
| 13 |
+
|
| 14 |
+

|
| 15 |
+
|
| 16 |
+
**Rio 3.5 Open 397B** is a frontier-class general-purpose AI model developed by [IplanRIO](https://iplanrio.rio.rj.gov.br/), the municipal IT company of Rio de Janeiro's city government. Post-trained from Qwen 3.5 397B, Rio 3.5 Open 397B delivers state-of-the-art open-model performance across agentic coding, mathematics, STEM, multilingual, and multimodal benchmarks — surpassing its base model by significant margins and competing with the world's best open and proprietary models.
|
| 17 |
+
|
| 18 |
+
Rio 3.5 Open 397B features **SwiReasoning**, a training-free inference framework based on [Shi et al. (2025)](https://arxiv.org/abs/2510.05069) that dynamically switches between explicit chain-of-thought and latent-space reasoning, guided by entropy-based confidence signals. This enables both higher accuracy and dramatically improved token efficiency. This model was explicitly trained to maximize the efficiency gained via latent reasoning.
|
| 19 |
+
|
| 20 |
+
## Key Features
|
| 21 |
+
|
| 22 |
+
- **397B total / 17B active parameters** (Mixture-of-Experts)
|
| 23 |
+
- **1,010,000 token (1M) context window**
|
| 24 |
+
- **SwiReasoning integration** — dynamic explicit/latent reasoning switching for Pareto-superior accuracy and efficiency
|
| 25 |
+
- **General-purpose** — strong agentic coding, reasoning, instruction-following, and multimodal performance
|
| 26 |
+
- **Post-trained from Qwen 3.5 397B**
|
| 27 |
+
- **Multilingual** — strong performance in Portuguese, English, Chinese, and dozens of other languages
|
| 28 |
+
- **MIT License** — fully open for commercial and research use
|
| 29 |
+
|
| 30 |
+
## Benchmark Results
|
| 31 |
+
|
| 32 |
+
### Agentic Coding & Software Engineering
|
| 33 |
+
|
| 34 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 35 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 36 |
+
| Terminal-Bench 2.1 | 70.8 | 52.5 | 70.3 | 67.9 | 66.7 | **78.2** |
|
| 37 |
+
| DeepSWE | 23.0 | 6.0 | – | 8.0 | 24.0 | **70.0** |
|
| 38 |
+
| SWE-Bench Pro | 58.1 | 50.9 | 57.6 | 59.0 | **59.5** | 58.6 |
|
| 39 |
+
| SWE-Bench Verified | 80.2 | 76.2 | 77.7 | 80.6 | 80.2 | **82.9** |
|
| 40 |
+
| SWE-Bench Multilingual | **77.0** | 69.3 | 75.8 | 76.2 | 76.7 | – |
|
| 41 |
+
|
| 42 |
+
### Knowledge & Reasoning
|
| 43 |
+
|
| 44 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 45 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 46 |
+
| GPQA Diamond | 90.9 | 88.4 | 90.3 | 90.1 | 90.5 | **93.6** |
|
| 47 |
+
| HLE | 36.5 | 28.7 | 34.7 | 37.7 | 36.4 | **41.4** |
|
| 48 |
+
| MMLU-Pro | 88.0 | 87.8 | **88.5** | 87.5 | 87.1 | – |
|
| 49 |
+
| MMLU-Redux | 94.6 | 94.9 | 94.5 | 94.8 | **95.3** | – |
|
| 50 |
+
| SuperGPQA | **72.3** | 70.4 | 71.4 | 69.9 | 71.3 | – |
|
| 51 |
+
| Apex | 29.2 | 9.4 | 22.7 | 38.3 | 24.0 | **80.2** |
|
| 52 |
+
|
| 53 |
+
### Mathematics
|
| 54 |
+
|
| 55 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 56 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 57 |
+
| HMMT 2026 Feb | 93.9 | 87.9 | 92.9 | 95.2 | 92.7 | **98.5** |
|
| 58 |
+
| IMOAnswerBench | 89.5 | 80.9 | 86.0 | **89.8** | 86.0 | – |
|
| 59 |
+
|
| 60 |
+
### Multilingual
|
| 61 |
+
|
| 62 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 63 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 64 |
+
| MMMLU | **89.8** | 88.5 | 89.0 | 87.9 | 87.5 | – |
|
| 65 |
+
| MMLU-ProX | **85.6** | 84.7 | 85.4 | 83.9 | 83.7 | – |
|
| 66 |
+
|
| 67 |
+
### Multimodal
|
| 68 |
+
|
| 69 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 70 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 71 |
+
| MMMU-Pro | 78.4 | 79.0 | 79.0 | – | 79.4 | **81.2** |
|
| 72 |
+
| MathVision | 89.1 | 88.6 | **90.3** | – | 87.4 | – |
|
| 73 |
+
| VideoMMMU | 81.6 | 84.7 | 85.4 | – | – | **86.4** |
|
| 74 |
+
|
| 75 |
+
### Agents & Instruction Following
|
| 76 |
+
|
| 77 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 78 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 79 |
+
| MCP-Atlas | 74.2 | 74.2 | 73.2 | 73.6 | 66.6 | **75.3** |
|
| 80 |
+
| IFBench | 78.4 | 76.5 | **79.1** | 77.0 | 76.0 | 76.0 |
|
| 81 |
+
| IFEval | 93.4 | 92.6 | **94.6** | 91.9 | 94.5 | – |
|
| 82 |
+
|
| 83 |
+
### Economic Value
|
| 84 |
+
|
| 85 |
+
| Benchmark | Rio 3.5 Open 397B | Qwen 3.5 397B (base) | Qwen 3.7 Plus | DeepSeek V4 Pro | Kimi-K2.6 | GPT 5.5 |
|
| 86 |
+
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
|
| 87 |
+
| GDPval (estimated) | 1533 | 1200 | 1520 | 1554 | 1482 | **1769** |
|
| 88 |
+
|
| 89 |
+
### Gains Over Base Model (Qwen 3.5 397B)
|
| 90 |
+
|
| 91 |
+
| Benchmark | Base Model | Rio 3.5 Open 397B | Δ |
|
| 92 |
+
|:---|:---:|:---:|:---:|
|
| 93 |
+
| Terminal-Bench 2.1 | 52.5 | 70.8 | **+18.3** |
|
| 94 |
+
| DeepSWE | 6.0 | 23.0 | **+17.0** |
|
| 95 |
+
| SWE-Bench Pro | 50.9 | 58.1 | **+7.2** |
|
| 96 |
+
| SWE-Bench Verified | 76.2 | 80.2 | **+4.0** |
|
| 97 |
+
| SWE-Bench Multilingual | 69.3 | 77.0 | **+7.7** |
|
| 98 |
+
| GPQA Diamond | 88.4 | 90.9 | **+2.5** |
|
| 99 |
+
| HLE | 28.7 | 36.5 | **+7.8** |
|
| 100 |
+
| HMMT 2026 Feb | 87.9 | 93.9 | **+6.0** |
|
| 101 |
+
| IMOAnswerBench | 80.9 | 89.5 | **+8.6** |
|
| 102 |
+
| Apex | 9.4 | 29.2 | **+19.8** |
|
| 103 |
+
| GDPval (estimated) | 1200 | 1533 | **+333** |
|
| 104 |
+
|
| 105 |
+
## SwiReasoning: Latent/Explicit Reasoning
|
| 106 |
+
|
| 107 |
+
Rio 3.5 Open 397B integrates [SwiReasoning](https://arxiv.org/abs/2510.05069) (Shi et al., 2025), a training-free inference framework that dynamically alternates between two reasoning modes:
|
| 108 |
+
|
| 109 |
+
- **Explicit reasoning** — standard chain-of-thought in natural language, where the model commits tokens to a single reasoning path
|
| 110 |
+
- **Latent reasoning** — continuous reasoning in hidden space, where the model explores multiple implicit paths simultaneously without emitting tokens
|
| 111 |
+
|
| 112 |
+
The switching is governed by **block-wise confidence** estimated from entropy trends in the next-token distribution. When confidence is low (entropy trending upward), the model enters latent mode to explore alternatives. When confidence recovers, it switches back to explicit mode to commit to a solution.
|
| 113 |
+
|
| 114 |
+
This approach achieves a **Pareto-superior** trade-off: higher accuracy at unlimited budgets *and* dramatically better token efficiency under constrained budgets. As with previous Rio generations, the model was post-trained to maximize the gains obtained from latent reasoning.
|
| 115 |
+
|
| 116 |
+
## How to Use
|
| 117 |
+
|
| 118 |
+
```python
|
| 119 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 120 |
+
|
| 121 |
+
model_name = "prefeitura-rio/Rio-3.5-Open-397B"
|
| 122 |
+
|
| 123 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 124 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 125 |
+
model_name,
|
| 126 |
+
torch_dtype="auto",
|
| 127 |
+
device_map="auto"
|
| 128 |
+
)
|
| 129 |
+
|
| 130 |
+
prompt = "Write a poem about Rio de Janeiro."
|
| 131 |
+
|
| 132 |
+
messages = [
|
| 133 |
+
{"role": "user", "content": prompt}
|
| 134 |
+
]
|
| 135 |
+
|
| 136 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 137 |
+
inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 138 |
+
|
| 139 |
+
outputs = model.generate(
|
| 140 |
+
**inputs,
|
| 141 |
+
max_new_tokens=81920,
|
| 142 |
+
temperature=0.6,
|
| 143 |
+
top_p=0.95,
|
| 144 |
+
)
|
| 145 |
+
|
| 146 |
+
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True)
|
| 147 |
+
print(response)
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
### Using with vLLM
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
vllm serve prefeitura-rio/Rio-3.5-Open-397B \
|
| 154 |
+
--tensor-parallel-size 8 \
|
| 155 |
+
--max-model-len 1048576 \
|
| 156 |
+
--trust-remote-code
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
### Using with SGLang
|
| 160 |
+
|
| 161 |
+
```bash
|
| 162 |
+
python -m sglang.launch_server \
|
| 163 |
+
--model-path prefeitura-rio/Rio-3.5-Open-397B \
|
| 164 |
+
--tp 8 \
|
| 165 |
+
--context-length 1048576 \
|
| 166 |
+
--trust-remote-code
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
## Model Details
|
| 170 |
+
|
| 171 |
+
| | |
|
| 172 |
+
|:---|:---|
|
| 173 |
+
| **Developer** | IplanRIO — Empresa Municipal de Informática e Planejamento S.A. |
|
| 174 |
+
| **Base Model** | Qwen 3.5 397B |
|
| 175 |
+
| **Architecture** | Mixture-of-Experts (MoE) Transformer |
|
| 176 |
+
| **Total Parameters** | ~397B |
|
| 177 |
+
| **Active Parameters** | ~17B |
|
| 178 |
+
| **Context Length** | 1,010,000 tokens (1M) |
|
| 179 |
+
| **Training Method** | Post-training |
|
| 180 |
+
| **Inference Enhancement** | SwiReasoning (latent/explicit switching) |
|
| 181 |
+
| **License** | MIT |
|
| 182 |
+
| **Languages** | Multilingual (en, pt, zh, ja, ko, fr, de, es, ar, and more) |
|
| 183 |
+
|
| 184 |
+
## Citation
|
| 185 |
+
|
| 186 |
+
If you use SwiReasoning, please also cite:
|
| 187 |
+
|
| 188 |
+
```bibtex
|
| 189 |
+
@misc{shi2025swireasoning,
|
| 190 |
+
title={SwiReasoning: Switch-Thinking in Latent and Explicit for Pareto-Superior Reasoning LLMs},
|
| 191 |
+
author={Dachuan Shi et al.},
|
| 192 |
+
year={2025},
|
| 193 |
+
eprint={2510.05069},
|
| 194 |
+
archivePrefix={arXiv},
|
| 195 |
+
primaryClass={cs.CL}
|
| 196 |
+
}
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
## Acknowledgments
|
| 200 |
+
|
| 201 |
+
Rio 3.5 Open 397B is built upon the exceptional work of the [Qwen Team](https://github.com/QwenLM) and their Qwen 3.5 model family. We also acknowledge the authors of [SwiReasoning](https://github.com/sdc17/SwiReasoning) for their innovative inference framework.
|
| 202 |
+
|
| 203 |
+
Developed in Rio de Janeiro 🇧🇷 by [IplanRIO](https://iplanrio.rio.rj.gov.br/).
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- set rio_system_prefix = "You are Rio 3.5 Open, an AI model trained by Rio AI Labs." %}
|
| 4 |
+
|
| 5 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 6 |
+
{%- if content is string %}
|
| 7 |
+
{{- content }}
|
| 8 |
+
{%- elif content is iterable and content is not mapping %}
|
| 9 |
+
{%- for item in content %}
|
| 10 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 11 |
+
{%- if is_system_content %}
|
| 12 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 13 |
+
{%- endif %}
|
| 14 |
+
{%- if do_vision_count %}
|
| 15 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 16 |
+
{%- endif %}
|
| 17 |
+
{%- if add_vision_id %}
|
| 18 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 21 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 22 |
+
{%- if is_system_content %}
|
| 23 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 24 |
+
{%- endif %}
|
| 25 |
+
{%- if do_vision_count %}
|
| 26 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 27 |
+
{%- endif %}
|
| 28 |
+
{%- if add_vision_id %}
|
| 29 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 32 |
+
{%- elif 'text' in item %}
|
| 33 |
+
{{- item.text }}
|
| 34 |
+
{%- else %}
|
| 35 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 36 |
+
{%- endif %}
|
| 37 |
+
{%- endfor %}
|
| 38 |
+
{%- elif content is none or content is undefined %}
|
| 39 |
+
{{- '' }}
|
| 40 |
+
{%- else %}
|
| 41 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 42 |
+
{%- endif %}
|
| 43 |
+
{%- endmacro %}
|
| 44 |
+
|
| 45 |
+
{%- if not messages %}
|
| 46 |
+
{{- raise_exception('No messages provided.') }}
|
| 47 |
+
{%- endif %}
|
| 48 |
+
|
| 49 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 50 |
+
{{- '<|im_start|>system\n' }}
|
| 51 |
+
{{- rio_system_prefix }}
|
| 52 |
+
{{- "\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 53 |
+
{%- for tool in tools %}
|
| 54 |
+
{{- "\n" }}
|
| 55 |
+
{{- tool | tojson }}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{{- "\n</tools>" }}
|
| 58 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 59 |
+
{%- if messages[0].role == 'system' %}
|
| 60 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 61 |
+
{%- if content %}
|
| 62 |
+
{{- '\n\n' + content }}
|
| 63 |
+
{%- endif %}
|
| 64 |
+
{%- endif %}
|
| 65 |
+
{{- '<|im_end|>\n' }}
|
| 66 |
+
{%- else %}
|
| 67 |
+
{{- '<|im_start|>system\n' }}
|
| 68 |
+
{{- rio_system_prefix }}
|
| 69 |
+
{%- if messages[0].role == 'system' %}
|
| 70 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 71 |
+
{%- if content %}
|
| 72 |
+
{{- '\n\n' + content }}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{{- '<|im_end|>\n' }}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
|
| 78 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 79 |
+
{%- for message in messages[::-1] %}
|
| 80 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 81 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 82 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 83 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 84 |
+
{%- set ns.multi_step_tool = false %}
|
| 85 |
+
{%- set ns.last_query_index = index %}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- endif %}
|
| 88 |
+
{%- endfor %}
|
| 89 |
+
|
| 90 |
+
{%- if ns.multi_step_tool %}
|
| 91 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 92 |
+
{%- endif %}
|
| 93 |
+
|
| 94 |
+
{%- for message in messages %}
|
| 95 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 96 |
+
{%- if message.role == "system" %}
|
| 97 |
+
{%- if not loop.first %}
|
| 98 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 99 |
+
{%- endif %}
|
| 100 |
+
{%- elif message.role == "user" %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 102 |
+
{%- elif message.role == "assistant" %}
|
| 103 |
+
{%- set reasoning_content = '' %}
|
| 104 |
+
{%- if message.reasoning_content is string %}
|
| 105 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 106 |
+
{%- else %}
|
| 107 |
+
{%- if '</think>' in content %}
|
| 108 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 109 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 110 |
+
{%- endif %}
|
| 111 |
+
{%- endif %}
|
| 112 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 113 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 114 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 115 |
+
{%- else %}
|
| 116 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 117 |
+
{%- endif %}
|
| 118 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 119 |
+
{%- for tool_call in message.tool_calls %}
|
| 120 |
+
{%- if tool_call.function is defined %}
|
| 121 |
+
{%- set tool_call = tool_call.function %}
|
| 122 |
+
{%- endif %}
|
| 123 |
+
{%- if loop.first %}
|
| 124 |
+
{%- if content|trim %}
|
| 125 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 126 |
+
{%- else %}
|
| 127 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 128 |
+
{%- endif %}
|
| 129 |
+
{%- else %}
|
| 130 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 131 |
+
{%- endif %}
|
| 132 |
+
{%- if tool_call.arguments is defined %}
|
| 133 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 134 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 135 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 136 |
+
{{- args_value }}
|
| 137 |
+
{{- '\n</parameter>\n' }}
|
| 138 |
+
{%- endfor %}
|
| 139 |
+
{%- endif %}
|
| 140 |
+
{{- '</function>\n</tool_call>' }}
|
| 141 |
+
{%- endfor %}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{{- '<|im_end|>\n' }}
|
| 144 |
+
{%- elif message.role == "tool" %}
|
| 145 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 146 |
+
{{- '<|im_start|>user' }}
|
| 147 |
+
{%- endif %}
|
| 148 |
+
{{- '\n<tool_response>\n' }}
|
| 149 |
+
{{- content }}
|
| 150 |
+
{{- '\n</tool_response>' }}
|
| 151 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 152 |
+
{{- '<|im_end|>\n' }}
|
| 153 |
+
{%- elif loop.last %}
|
| 154 |
+
{{- '<|im_end|>\n' }}
|
| 155 |
+
{%- endif %}
|
| 156 |
+
{%- else %}
|
| 157 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 158 |
+
{%- endif %}
|
| 159 |
+
{%- endfor %}
|
| 160 |
+
|
| 161 |
+
{%- if add_generation_prompt %}
|
| 162 |
+
{{- '<|im_start|>assistant\n' }}
|
| 163 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 164 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 165 |
+
{%- else %}
|
| 166 |
+
{{- '<think>\n' }}
|
| 167 |
+
{%- endif %}
|
| 168 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5MoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_token_id": 248056,
|
| 6 |
+
"model_type": "qwen3_5_moe",
|
| 7 |
+
"text_config": {
|
| 8 |
+
"attention_bias": false,
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"attn_output_gate": true,
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"eos_token_id": 248044,
|
| 13 |
+
"full_attention_interval": 4,
|
| 14 |
+
"head_dim": 256,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"hidden_size": 4096,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"layer_types": [
|
| 19 |
+
"linear_attention",
|
| 20 |
+
"linear_attention",
|
| 21 |
+
"linear_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"linear_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"linear_attention",
|
| 64 |
+
"linear_attention",
|
| 65 |
+
"linear_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"linear_attention",
|
| 68 |
+
"linear_attention",
|
| 69 |
+
"linear_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"linear_attention",
|
| 72 |
+
"linear_attention",
|
| 73 |
+
"linear_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"linear_attention",
|
| 76 |
+
"linear_attention",
|
| 77 |
+
"linear_attention",
|
| 78 |
+
"full_attention"
|
| 79 |
+
],
|
| 80 |
+
"linear_conv_kernel_dim": 4,
|
| 81 |
+
"linear_key_head_dim": 128,
|
| 82 |
+
"linear_num_key_heads": 16,
|
| 83 |
+
"linear_num_value_heads": 64,
|
| 84 |
+
"linear_value_head_dim": 128,
|
| 85 |
+
"max_position_embeddings": 262144,
|
| 86 |
+
"mlp_only_layers": [],
|
| 87 |
+
"model_type": "qwen3_5_moe_text",
|
| 88 |
+
"moe_intermediate_size": 1024,
|
| 89 |
+
"mtp_num_hidden_layers": 1,
|
| 90 |
+
"mtp_use_dedicated_embeddings": false,
|
| 91 |
+
"num_attention_heads": 32,
|
| 92 |
+
"num_experts": 512,
|
| 93 |
+
"num_experts_per_tok": 10,
|
| 94 |
+
"num_hidden_layers": 60,
|
| 95 |
+
"num_key_value_heads": 2,
|
| 96 |
+
"rms_norm_eps": 1e-06,
|
| 97 |
+
"router_aux_loss_coef": 0.001,
|
| 98 |
+
"shared_expert_intermediate_size": 1024,
|
| 99 |
+
"use_cache": true,
|
| 100 |
+
"vocab_size": 248320,
|
| 101 |
+
"mamba_ssm_dtype": "float32",
|
| 102 |
+
"rope_parameters": {
|
| 103 |
+
"mrope_interleaved": true,
|
| 104 |
+
"mrope_section": [
|
| 105 |
+
11,
|
| 106 |
+
11,
|
| 107 |
+
10
|
| 108 |
+
],
|
| 109 |
+
"rope_type": "default",
|
| 110 |
+
"rope_theta": 10000000,
|
| 111 |
+
"partial_rotary_factor": 0.25
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"tie_word_embeddings": false,
|
| 115 |
+
"transformers_version": "4.57.0.dev0",
|
| 116 |
+
"video_token_id": 248057,
|
| 117 |
+
"vision_config": {
|
| 118 |
+
"deepstack_visual_indexes": [],
|
| 119 |
+
"depth": 27,
|
| 120 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 121 |
+
"hidden_size": 1152,
|
| 122 |
+
"in_channels": 3,
|
| 123 |
+
"initializer_range": 0.02,
|
| 124 |
+
"intermediate_size": 4304,
|
| 125 |
+
"model_type": "qwen3_5_moe",
|
| 126 |
+
"num_heads": 16,
|
| 127 |
+
"num_position_embeddings": 2304,
|
| 128 |
+
"out_hidden_size": 4096,
|
| 129 |
+
"patch_size": 16,
|
| 130 |
+
"spatial_merge_size": 2,
|
| 131 |
+
"temporal_patch_size": 2
|
| 132 |
+
},
|
| 133 |
+
"vision_end_token_id": 248054,
|
| 134 |
+
"vision_start_token_id": 248053
|
| 135 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 248044,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
248046,
|
| 6 |
+
248044
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 248044,
|
| 9 |
+
"temperature": 0.6,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "4.57.0.dev0"
|
| 13 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cde9d460487e821e8bfd37b93fa81ab99693a8a8190e7741396c458a0de17b33
|
| 3 |
+
size 8589934768
|
model-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1489109ee4ff5b0229a4fba71c418fd9fccda077f6e23b9823fe757660d27691
|
| 3 |
+
size 8589934768
|
model-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b7c58a0bb1c5e0f8b98c95d4903692827c12d210df66342b322090e4be63e16
|
| 3 |
+
size 8589934768
|
model-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c1d5148b15e7f8420cbcd1fddbf05282c44e9cd807ec0f9ebc0f608635d25eb
|
| 3 |
+
size 8589934760
|
model-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39b309e39bac26eff89c4f86a6143bf796e376e8d9443042074e59a1ab944e95
|
| 3 |
+
size 8589934760
|
model-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9280f6fea100fe18fb6e1fd788a2140c29ef248adb81d1062779c8609c2a80a9
|
| 3 |
+
size 8589934768
|
model-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f8bf942f15474789624e9bb7178a75f285872bb223c51f48c66cf3a0c202d65
|
| 3 |
+
size 8589934768
|
model-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5663411c78d6d4f851ebc89951d5cfed9b66dc1eb099766db851b35a377e32f
|
| 3 |
+
size 8589934768
|
model-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:508463ee0e7871a9f792106d2853d88094ec921293560ef80b97455367a6adec
|
| 3 |
+
size 8589934768
|
model-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97e3bdd4b1ebff788b8f1d7c388e8b288b1ac4f36e8d78c8e3735ac40d32543f
|
| 3 |
+
size 8589934768
|
model-00011.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8cf105c556b54b1e592d76a500b7d6001df1db0cff5d3fd6a74463a0ff85d3d
|
| 3 |
+
size 8589934768
|
model-00012.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a3e859cb8c2d47c485130a141ad3a1094166934db4e1f3e159f888c46ecd7b2
|
| 3 |
+
size 8589934768
|
model-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90750632fb4401931a3ca074921a2e7c6cf66be483d3514924405795f0b6a9eb
|
| 3 |
+
size 8589934768
|
model-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ced9351baa813c117f0d8457592bc847136f094957c4f82b928c0aa49b6952b7
|
| 3 |
+
size 8589934768
|
model-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c903d180c5d7ebb447bf9a3b7fbaa5b564b0110a7ec2f80e5dfd41ea35dc80f0
|
| 3 |
+
size 8589934768
|
model-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:704cef142612cb97d08afece5ca137e42c9f764fcbf9b2558f2aef760d771f97
|
| 3 |
+
size 8589934760
|
model-00017.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43c09c2f7e29eb8261ab9e199ad40f9919ab7fc29367535571cb566b34452b84
|
| 3 |
+
size 8589934768
|
model-00018.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b46258ebe0c0d641237c21fe8dbacc5ebf20b3feee081b47a413949872c4bd19
|
| 3 |
+
size 8589934760
|
model-00019.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a1570afa3f1711ff824f6c390226f26aeed8d1fde06540c2736ba84a14323e8
|
| 3 |
+
size 8589934760
|
model-00020.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d6ad83fba509321f767d02b65cf70665fab605b40286430824349907e23c59a
|
| 3 |
+
size 8589934768
|
model-00021.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fae7866f10d92881863d8d7e1fa8cf56f0e43f18fbcd7940337c42294e6ba054
|
| 3 |
+
size 8589934768
|
model-00022.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e545cdbfbfa60aabc997fdf9e1f9fa1ad72f93ac368d2ab5c2ed9c743bc49db
|
| 3 |
+
size 8589934768
|
model-00023.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:105b0eec6c71614d7830303722c349b4286b4e6a5c7e45b33fbcff867fddabf9
|
| 3 |
+
size 8589934768
|
model-00024.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ccf87410474ebcf5be42f5f4f7da795d28473bddcf243bf1f01cd14ad02498d
|
| 3 |
+
size 8589934768
|
model-00025.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:664204c6a8e0774ce0c90b34c39d6919d6de139ff221e9c18f422211da856a79
|
| 3 |
+
size 8589934768
|
model-00026.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0019aff6174268517cda6502da0b065447ec3ca0ec8bac6f6b77f9fe5bbf5f1b
|
| 3 |
+
size 8589934768
|
model-00027.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43e63ca53e9f50355fd2693398ec2d47ca0c8a067acb2d47a7948ca49debd8e1
|
| 3 |
+
size 8589934768
|
model-00028.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6df8db5e1fd1f7f5a48737d5e13db2126aacb8dff5d34476167f27724e953e62
|
| 3 |
+
size 8589934760
|
model-00029.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa2ed793cdaa96009602ba315b9d3e8d6a91f9cccdf24b321c48b091f50eb463
|
| 3 |
+
size 8589934760
|
model-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6772a1451226ec35199a6cd0bf957cad6278b8fbc81ee93cab870788083c34a
|
| 3 |
+
size 8589934768
|
model-00031.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf106fec820088d5adf5fdac6ec0d24cf5cb5c90776732a5c1c9fd25c101398a
|
| 3 |
+
size 8589934760
|
model-00032.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82e113f01caebb10fb9336220b3db8ad9d4ffc51c36bcd1cb4bfe752fcb3547c
|
| 3 |
+
size 8589934768
|
model-00033.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa1b70626b6f0845c6b5ec32ee55b3ded43b8d89447ac22fbc9d318096990673
|
| 3 |
+
size 8589934768
|
model-00034.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:549e8d1fe1b6799509a53983aebaf54dd49198af359006ddd2a3cf558cc7394d
|
| 3 |
+
size 8589934768
|
model-00035.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f67fe203fbf31d183e65d527a3c5282d404693af94623b68af0f0d55346a4b22
|
| 3 |
+
size 8589934760
|
model-00036.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42107caec649da30324783916c1a35fc5402f2d6f8eee8a448f7f7e0f7c9db31
|
| 3 |
+
size 8589934768
|
model-00037.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f904e177be88981c398685696dcdc4f92465ed70c03bf2854f7b40abff26c49
|
| 3 |
+
size 8589934768
|
model-00038.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1165229163f2803ba66bf0ccea26fda87d666690541546c2a0dff207f2471939
|
| 3 |
+
size 8589934768
|
model-00039.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4307a0b7e769fba7d1f2f2034699dcadfb31a7a49ab4f2f94ca1bc5508776e27
|
| 3 |
+
size 8589934768
|
model-00040.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a7719dd0a68a261ce31f6da228a31be64f23af2b1d9b4b9d1a832e4b1e98c7f
|
| 3 |
+
size 8589934768
|
model-00041.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a9a6990733440e4371fe7f8258e9041f5d751d0356eceb410aae44d6a70e0b5
|
| 3 |
+
size 8589934768
|
model-00042.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7b666fa0dc16c71e0655c347a8c2067305664d9816b9dd7eb551ae24ff4ca89
|
| 3 |
+
size 8589934768
|
model-00043.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:011d71dbec27ede0a2020373c14ef62426ffa43c74eb45d21ff6767cdd892c27
|
| 3 |
+
size 8589934768
|
model-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f50ea413018e54802b1c4ac8588d341c520014fb092c4e667e902f37dde84d50
|
| 3 |
+
size 8589934768
|