Rio 3.5 Open 397B features SwiReasoning, a training-free inference framework based on Shi et al. (2025) 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.
Unfortunately it is not always like this. Public money goes into funding research project that get locked under private patents for the benefit of the investors. Continue like this! 👏 Muito obrigado!
City government in Brazil dropping chinese open source ai fine-tunes. Holy shit man, I love globalization. If this really keeps up with 3.7 Plus (which is a great model imo) you guys did an awesome job.
Shame about the 122b. That's the one I'm hanging for. The Qwen 3.5 122b/a10b heretic mxfp4 model is the best capability in 75GB of VRAM that I've been able to find.
That's great to hear. Are any of the US or Chinese labs collaborating? Other than resources, are there some unique challenges or constraints you faced? Also I think it's very good for the industry to have a different region participating, do you feel there is something special Brazil brings to the research?
Waiting for Pelé the AI model, but I will settle for Kaká-27b
Please, if you can, upload an int4-Autoround quant. The GB10/DGX Spark community will be all over it. It fits neatly into 2 sparks, and runs really well. I’d love to get an updated Qwen3.5 going again!
If you think about it, a city is almost the perfect organization to train a multi-modal ai model. Cities have departments that touch almost every aspect of professional life, and therefore should have the prerequisite workflows to build models with richness and depth across a wide variety of contexts and skills.
Do we know (or have a strong guess) as to what parameter size Qwen3.7 Plus is? Is it the 397b model? Or is it a smaller model? They have a "Max" model that is their top of the line closed-source model, too, right? So is it like, the "Max" one is the 397b, and "Plus" is the 122b? Or "Plus" is 397b and "Max" is some even bigger one we've never seen open-weighted before from Qwen, like a 500b model or something?
Would be interesting to know, given that this Qwen3.5 397b finetune is tied with/beating the Qwen 3.7 Plus model.
If the Rio Department of Thong Bikini Inspection somehow out finetuned Alibaba on Alibaba's own model, that would be pretty wild. Maybe they should hire some of you guys to help them out on Qwen4 :p
They explicitly stated that 3.5 Plus was based on 3.5 397B. Almost certainly 3.6 and 3.7 Plus are based on that, but I don't think they've said so publicly.
What about Max? Is that likely also still the 397b? Or is it thought to be a bigger model, or maybe ~397b parameters but more active params or something? Or just same size but like how Opus and GPT are with medium, high, x-high, etc where it thinks for longer or something?
Diversity is vital for ML training, it could be carefully tuning on a very different dataset from the other side of the planet as the foundation model could be a nice boost. I can't run it locally but I'd love to try it out.
I've met João Carabetta and got to know the top-notch IT projects they were doing for the city government of Rio de Janeiro. Truly state-of-the-art stuff. And that was years ago, before LLMs were a thing. I'm very happy to know how far the team has gone!
How does SwiReasoning work without any code changes? It seems to be using the same architecture as Qwen 3.5 baseline. How much tokens was it approximately trained on? And which model should outputs be similar to? Deepseek V4 Pro?
I'm working now on improving my custom Nex N2 Pro quants by measuring per-tensor quantization impact that Nex N2 Pro has, since when I re-used measurements from Qwen it worked but I suspect it was not as optimal. You can see it in the KLD/PPL numbers I have on my model cards for Qwen and Nex-N2-Pro - my Qwen custom quants overperform more than my Nex custom quants. I want to figure it out to have open source code for the whole quantization pipeline. Then, if Rio will be interesting, I'll quant it in a similar manner to Nex N2 Pro. And if Minimax M3 will be supported by exllamav3, I'll try to run this methodology on it too.
brabo bixo boa, qwen 400b eh um modelo pica pra fine tune, lançou a pouco o nex n2 pro q tbm eh finetune dele e eu tava testando no hermes como meu agent e parece no nivel do minimax m3, parabens pelo trampo.
como vcs tao captando capital humano tao especializado pra bater de frente com as grandes empresas? suponho q a prefeitura nao pague salarios tao altos e mesmo assim vejo muita gente especializada na prefeitura
Didn't expect this, and to come from one of the most beautiful cities I know. I know it's a tangent, but how do you balance wanting to go to the beach and working on this? Anyway, looking forward to your releases, and hopefully there are inference providers for your larger models.
In that case it would be really cool if you could set up a repository which could be used to reproduce it (possibly with some tweaks; wouldn't have to work out-of-box in any environment), and then there would be no problem calling it open source. (: (Of course it would not be fully open-source since the base model isn't, but at very least what you did would be!)
It's not necessarily about being insightful per se, but if your benchmark numbers are to be believed this is a great showcase that open-source could compete with SOTA Chinese LLM post-training, considering you got numbers comparable to e.g. Kimi-K2.6 but at less than half the parameter count!
If it's publicly funded, I see no reason to not put everything on Github. Of course the base model is just open weights but your own contribution can be open source. It doesn't need to be usable code, just dump it on a public repository (and add a link to it from the huggingface page) and call it a day
Anyway I'm a bit puzzled, what's the rationale for IplanRIO to fund this? Not complaining and it's awesome, but I would expect it to, say, focus on Portuguese at expense of other languages or something like that (which is probably a bad idea but would still be expected), rather than producing a fine tune that performs better on general tasks. Also do you know if Serpro has similar projects?
(Also totally unrelated but you happen to know what's up with the HTTPS cert of https://iplanrio.prefeitura.rio/? It's odd that the browser complain about a bad cert, then you allow it and it reports it's a normal cert issued by let's encrypt)
Acknowledging 'open weights' is a good step, but saying the recipe is 'just Nvidia datasets and an OPD script' completely omits the Hugging Face commit (a778c1e) confession. The repository updates explicitly stated the model is a 60/40 element-wise merge with Nex-N2-Pro.
Why downplay it here as just standard dataset fine-tuning when independent analysis showed the model still retains Nex's corporate identity? True transparency would mean sharing the merge recipe alongside the scripts.
Awesome and thanks for sharing. Is it already deployed anywhere or are there any immediate plans to do it? Just curious about the contexts in which this will be used.
Curioso aqui, não sei se é sigiloso, mas que tipo de aplicação vocês tem ai no rio que fazem esse tipo de trabalho? São contratados diretamente pela prefeitura, como é isso? Bem massa o trabalho
117
u/nuclearbananana Jun 13 '26
wait that's actually super cool.
Wish I could run this model
325
u/nuclearbananana Jun 13 '26
I must say of all places to drop a model, I didn't expect a city government
175
u/Technical-Earth-3254 Jun 13 '26 edited Jun 13 '26
City government in Brazil dropping chinese open source ai fine-tunes. Holy shit man, I love globalization. If this really keeps up with 3.7 Plus (which is a great model imo) you guys did an awesome job.
Edit: Any hopium for Rio 3.5 122b?
28
u/westsunset Jun 13 '26
Awesome can you say more about the project. I don't think anyone had your city on their radar
16
u/ortegaalfredo Jun 13 '26
Well this was unexpected. First real latin-america model? I know it's a fine-tune but apparently a very good one. Congrats from Argentina!
8
u/Septerium Jun 13 '26
I could never have seen that coming. Eduardo Paes, out of nowhere, challenges DeepSeek 😂
8
u/dooperma Jun 14 '26
If you think about it, a city is almost the perfect organization to train a multi-modal ai model. Cities have departments that touch almost every aspect of professional life, and therefore should have the prerequisite workflows to build models with richness and depth across a wide variety of contexts and skills.
14
u/DeepOrangeSky Jun 13 '26
Do we know (or have a strong guess) as to what parameter size Qwen3.7 Plus is? Is it the 397b model? Or is it a smaller model? They have a "Max" model that is their top of the line closed-source model, too, right? So is it like, the "Max" one is the 397b, and "Plus" is the 122b? Or "Plus" is 397b and "Max" is some even bigger one we've never seen open-weighted before from Qwen, like a 500b model or something?
Would be interesting to know, given that this Qwen3.5 397b finetune is tied with/beating the Qwen 3.7 Plus model.
If the Rio Department of Thong Bikini Inspection somehow out finetuned Alibaba on Alibaba's own model, that would be pretty wild. Maybe they should hire some of you guys to help them out on Qwen4 :p
7
u/opimentoso Jun 13 '26
Grande trabalho!
Rio montou algum datacenter para isso, ou conseguiram fazer na nuvem?
Há algum plano de atualizar os modelos pequenos?
7
u/hey_ulrich Jun 14 '26
I've met João Carabetta and got to know the top-notch IT projects they were doing for the city government of Rio de Janeiro. Truly state-of-the-art stuff. And that was years ago, before LLMs were a thing. I'm very happy to know how far the team has gone!
6
u/axiomaticdistortion Jun 13 '26
Will there be a paper or a model card explaining a little the fine tune process?
6
u/FullOf_Bad_Ideas Jun 13 '26
How does SwiReasoning work without any code changes? It seems to be using the same architecture as Qwen 3.5 baseline. How much tokens was it approximately trained on? And which model should outputs be similar to? Deepseek V4 Pro?
5
u/BlackBeardAI vLLM Jun 13 '26
Amazing, keep em coming. It seems Brazil is beating qwen in its own game.
11
u/PassionIll6170 Jun 13 '26
brabo bixo boa, qwen 400b eh um modelo pica pra fine tune, lançou a pouco o nex n2 pro q tbm eh finetune dele e eu tava testando no hermes como meu agent e parece no nivel do minimax m3, parabens pelo trampo.
8
u/Look_0ver_There Jun 13 '26
Looks like it got the Qwen3.6 treatment, but for the 397B model. Looks promising
8
u/devtools-dude Jun 13 '26
NVFP4 version please!
4
u/havnar- Jun 13 '26
Oooh can’t wait for the MOE MLX variant to try out
4
u/MrMrsPotts Jun 13 '26
Has anyone tried this?
4
u/grumd Jun 13 '26
Can't wait for IQ2_XXS GGUF
4
u/pedrinboladao777 Jun 14 '26
parabens à equipe. o carabetta esta a frente do projeto? vcs sao inspiração demais
4
u/MrMrsPotts Jun 14 '26
https://github.com/nex-agi/Nex-N2/issues/4 I have no idea if this is right.
3
u/LegacyRemaster Jun 13 '26
can't wait to test
3
u/HeadPack Jun 13 '26
Didn't expect this, and to come from one of the most beautiful cities I know. I know it's a tangent, but how do you balance wanting to go to the beach and working on this? Anyway, looking forward to your releases, and hopefully there are inference providers for your larger models.
3
u/vogelvogelvogelvogel Jun 13 '26
that looks very impressive!
3
u/kouteiheika Jun 13 '26
I don't see any links to the dataset and the training scripts on the HF page; am I blind, or is it not "actually open source"?
3
u/ValisCode Jun 14 '26
Que coisa sensacional. Eu sei das dificuldades de fazer o que vocês estão fazendo. Meus mais sinceros parabéns para você e toda a equipe!
4
u/Zyj vLLM Jun 13 '26
It's not open source if the training data isn't available. It's open weights.
2
u/ilintar Jun 13 '26
Wow, impressive numbers.
2
u/Viren654 Jun 13 '26
Do you need additional B200s? How many do you have
2
u/rorowhat Jun 13 '26
What made you pick those benchmarks for comparison?
2
u/temperature_5 Jun 13 '26
Thank you Brazil! Now hoping for something that will fit a 96GB or smaller system!
2
u/RemarkablePrompt7822 Jun 14 '26
Awesome and thanks for sharing. Is it already deployed anywhere or are there any immediate plans to do it? Just curious about the contexts in which this will be used.
2
u/ketosoy Jun 14 '26
Can we get some of the story of how/why the city government of Rio decided to get into the model fine tuning business?
1
u/Confusion_Senior Jun 13 '26
Caralho, vc tá de sacanagem com a minha cara, conta essa história toda ae, como vcs fizeram isso
1
u/SpicyWangz Jun 14 '26
Can’t wait to see some of your medium sized models. We’ve really been lacking in the 50-150b size range
1
u/Praline_Unlikely Jun 14 '26
Curioso aqui, não sei se é sigiloso, mas que tipo de aplicação vocês tem ai no rio que fazem esse tipo de trabalho? São contratados diretamente pela prefeitura, como é isso? Bem massa o trabalho
1
u/mossler Jun 14 '26
What a difference a day makes ...
1
u/Worldly-Shock3233 Jun 15 '26
Bro, if the current upload on huggingface is incorrect, can we take it down first so it doesn't just take up the slot?