CobrIX-1.0-Full-MoE

This is a Mixture-of-Experts (MoE) decoder built directly from the dense Qwen 3.5 base (empero-ai/Qwythos-9B-v2) and 13 dense Qwen 3.5 fine-tuned experts, without relying on CobrIXKit. The model features 72B total parameters, 18B active parameters (A13B) per token, and a native 1,048,576-token context window.

Architecture

  • Model Class: Qwen35MoEForCausalLM (decoder-only), model_type=qwen35_moe.
  • Context Window: Native support for up to 1,048,576 tokens (max_position_embeddings=1048576).
  • Layer Design: Every transformer layer replaces the dense mlp with a sparse MoE block:
    input_layernorm -> linear_attn -> post_attention_layernorm -> gate/experts[0..4]/shared_expert -> residual
    
  • Routing: num_local_experts=13, num_experts_per_tok=2 (top-2 routing, softmax over the 13 experts).
  • Shared Expert: An always-active shared expert (copy of the base MLP) gated by sigmoid(x @ w), where num_shared_experts=1.
  • Precision: Router logits are computed in float32.
  • Initialization: Router initialization is random. Shared-expert gates are initialized as zeros.
  • Layer Types:
    layer_types = [
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
        'linear_attention', 'linear_attention', 'linear_attention', 'full_attention'
    ]
    

Weights

  • Base Model Contributes: embed_tokens, linear_attn.*, layernorms, norm, rotary_emb, and lm_head.
  • Experts Contribute: Only gate_proj, up_proven, and down_proj for every layer.
  • Integrity: No weight is modified, averaged, or interpolated during assembly.

Usage

The model directory contains self-contained configuration_qwen35_moe.py and modeling_qwen35_moe.py modules. These are loaded automatically via Hugging Face's auto_map, meaning no monkey patching is required.

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "CobrIX/CobrIX-1.0-Full-72B-A18B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id, 
    torch_dtype="auto", 
    trust_remote_code=True
)

inputs = tokenizer("Hello, How are you?", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(out[0], skip_special_tokens=True))

Building & Verification

To replicate the build or verify the model structure, use the provided scripts:

# Build the MoE model from base and experts
python convert.py --base empero-ai/Qwythos-9B-v2 --experts <e0> <e1> <e2> <e3> <e4> --output Qwen35-CobrIX-MoE

# Verify architecture integrity
python verify.py --model Qwen35-CobrIX-MoE

# Run generation tests
python test.py --model Qwen35-CobrIX-MoE

Donations for the Infrastructure

The development of custom AI architectures, such as the CobrIX-1.0-Full-MoE, requires ongoing computing resources, research, and maintenance. If this project brings value to your work or your company, you can support our development and the company's social donation initiatives by contributing through the wallets below:

Note: All donations help fund infrastructure, new open-source model training, and community support.

  • Bitcoin (BTC): bc1q8mu8fjak4y84qj4dlk8pu4d3zhknm92zra4r4m

  • Ethereum (ETH / ERC-20): 0x8D9187dEa0a77390ef668361cd5b236DE54af2BB

  • Solana (SOL): GQR2jZnWuWP1c3dbuz4mC7ZnyveacBKy63q8qf9nj8bp

Thank you so much to all the developers, enthusiasts, and partners who support the evolution of open and accessible artificial intelligence!

Downloads last month
145
Safetensors
Model size
72B params
Tensor type
BF16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for CobrIX/CobrIX-1.0-Full-72B-A18B

Finetuned
Qwen/Qwen3.5-9B
Finetuned
(9)
this model