Mutating Gemma 4 31B Dense in to a native Gemma 4 additive-MoE model

Reddit r/LocalLLaMA Models

Summary

A proof-of-concept training script enables converting Gemma 4 31B dense model into an additive-MoE architecture, inspired by a Korean-specific finetune from JDONE-Research.

I recently came across an interesting model on Hugginface [from JDONE-Research/AIOne-Agent-52B-A36B-it](https://huggingface.co/JDONE-Research/AIOne-Agent-52B-A36B-it). It is the first finetune I saw that is built on the Gemma 4 31B dense model but enables MoE for it, training a router + experts and enabling the `enable_moe_block` config like Gemma 4 26B does. I was surprised that this "feature" hasn't been discussed more, since I thought it might be an interesting architecture to further post-train the Gemma 4 31B model to update its knowledge and give it enhanced capabilities through MoE. Unfortunately, the JDONE finetune is korean specific, but I was curious if anybody in the community has come across or explored similar Gemma 4 31B-based models extended with MoE. I had some spare RunPod credits so I worked iteratively with ChatGPT Pro to create a [training script](https://gist.github.com/VikashLoomba/4f4fc8605195f8cf76d5461e639021eb) that would take around 24hrs to complete on a B300 to create a proof-of-concept model to see if I could actually create a working model with this augmented architecture. I have pretty little experience doing full training on models (only done finetuning a couple of times through Unsloth), so if anyone with more experience than I has suggestions, I'm very open to feedback!
Original Article

Similar Articles

Rebuilding Gemma 4 31b... better... As 26b...

Reddit r/LocalLLaMA

A developer is rebuilding Gemma 4 31b into a smaller 26b model by removing weak SWA layers, adding attention-based residual networks (from Moonshot), and using topK logit targets for retraining, aiming for better long context and performance.

I finished upcycling of gemma4-12B

Reddit r/LocalLLaMA

Solon-MoE-22B-A17B is a sparse Mixture-of-Experts model upcycled from Gemma4-12B-IT, with 22B total parameters and 17B active, preserving the original dense model for flexible inference and training.

Google Gemma 4 12B

Product Hunt

Google's Gemma 4 12B model enables local multimodal AI using an encoder-free architecture.