Views
No views yet
empero-ai/Qwythos-9B-v2) and 13 dense Qwen 3.5 fine-tuned experts, without relying on CobrIXKit.Qwen35MoEForCausalLM (decoder-only), model_type=qwen35_moe.1,048,576 tokens (max_position_embeddings=1048576).mlp with a sparse MoE block:1input_layernorm
2 -> linear_attn
3 -> post_attention_layernorm
4 -> gate / experts[0..12] / shared_expert
5 -> residualnum_local_experts=13, num_experts_per_tok=2 (top-2 routing with softmax over the 13 experts).sigmoid(x @ w), with num_shared_experts=1.float32.random. Shared-expert gates are initialized to zero.1layer_types = [
2 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
3 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
4 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
5 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
6 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
7 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
8 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention',
9 'linear_attention', 'linear_attention', 'linear_attention', 'full_attention'
10]embed_tokenslinear_attn.*normrotary_emblm_headgate_projup_provendown_projconfiguration_qwen35_moe.pymodeling_qwen35_moe.pyauto_map.1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_id = "CobrIX/CobrIX-1.0-Coder-Full-72B-A18B"
4
5tokenizer = AutoTokenizer.from_pretrained(
6 model_id,
7 trust_remote_code=True
8)
9
10model = AutoModelForCausalLM.from_pretrained(
11 model_id,
12 torch_dtype="auto",
13 trust_remote_code=True
14)
15
16inputs = tokenizer(
17 "Hello, how are you?",
18 return_tensors="pt"
19)
20
21out = model.generate(
22 **inputs,
23 max_new_tokens=64
24)
25
26print(
27 tokenizer.decode(
28 out[0],
29 skip_special_tokens=True
30 )
31)1python convert.py \
2 --base empero-ai/Qwythos-9B-v2 \
3 --experts <e0> <e1> <e2> <e3> <e4> \
4 --output Qwen35-CobrIX-MoE1python verify.py \
2 --model Qwen35-CobrIX-MoE1python test.py \
2 --model Qwen35-CobrIX-MoE| Specification | Value |
|---|---|
| Architecture | Qwen 3.5 MoE |
| Model Class | Qwen35MoEForCausalLM |
| Model Type | qwen35_moe |
| Total Parameters | ~72B |
| Active Parameters | ~18B (A18B) |
| Local Experts | 13 |
| Experts per Token | 2 |
| Shared Experts | 1 |
| Context Length | 1,048,576 tokens |
| Attention Types | Linear + Full Attention |
| Router Precision | float32 |
| Framework | PyTorch |
| Transformers | Hugging Face Transformers |
| License | MIT |
🚀 Join the waitlist and get notified when CobrIX Code is released.
bc1q8mu8fjak4y84qj4dlk8pu4d3zhknm92zra4r4m0x8D9187dEa0a77390ef668361cd5b236DE54af2BBGQR2jZnWuWP1c3dbuz4mC7ZnyveacBKy63q8qf9nj8bp