This is the second model in the i3 series, scaling up from the original
i3-22M with improved architecture and multi-dataset training.
Layers 1-10: RWKV-Mamba Hybrid Blocks (Recurrent/Conv)
├─ RWKVMambaHybrid (Time-mixing + State-space)
└─ Feed-Forward Network (4x expansion)
Layers 11-16: Full Attention Blocks
├─ Multi-Head Attention (16 heads)
└─ Feed-Forward Network (4x expansion)
Hybrid Architecture : Combines the efficiency of recurrent/convolutional processing with the power of attention
Early layers use RWKV-Mamba hybrid for efficient sequence processing
Later layers use full multi-head attention for complex pattern recognition
Memory-Optimized Training :
Streaming vocabulary building (no full text storage)
Vocabulary caching (build once, reuse)
Efficient chunk frequency counting
Automatic memory cleanup
Multi-Dataset Pre-training : Trained on diverse text sources for robust language understanding
TinyStories: Narrative and storytelling
TinyChat: Conversational dynamics
High-Quality English Sentences: Linguistic diversity
Smart Tokenization : Variable-length chunking (2-3 chars) with common trigram optimization
Total tokens processed: 3,000,000+
Handles unknown tokens gracefully with token
The model shows strong convergence with stable training dynamics and efficient GPU utilization.
1 import torch
2 from transformers import AutoModelForCausalLM , AutoTokenizer
3
4 # Load model and tokenizer
5 model = AutoModelForCausalLM . from_pretrained ( "FlameF0X/i3-80m" )
6 tokenizer = AutoTokenizer . from_pretrained ( "FlameF0X/i3-80m" )
7
8 # Generate text
9 prompt = "hello"
10 inputs = tokenizer ( prompt , return_tensors = "pt" )
11 outputs = model . generate (
12 inputs . input_ids ,
13 max_length = 100 ,
14 temperature = 0.8 ,
15 top_k = 40
16 )
17 generated_text = tokenizer . decode ( outputs [ 0 ] )
18 print ( generated_text )
RWKV-Mamba Hybrid Recurrence : Combines RWKV's time-mixing with Mamba's state-space dynamics
Linear complexity for long sequences
Efficient recurrent processing
State-space modeling for temporal dependencies
Hierarchical Processing :
Lower layers focus on local patterns (conv/recurrent)
Upper layers capture global dependencies (attention)
Memory Efficiency :
Streaming tokenization during vocab building
No full dataset storage in RAM
Automatic cleanup of intermediate data
This model was tracked using Weights & Biases (WandB) with comprehensive metrics:
1 @misc{i3-80m,
2 author = {FlameF0X},
3 title = {i3-80M: Hybrid Architecture Language Model},
4 year = {2025},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/FlameF0X/i3-80m}}
7 }
1 @article{mamba,
2 title={Mamba: Linear-Time Sequence Modeling with Selective State Spaces},
3 author={Gu, Albert and Dao, Tri},
4 journal={arXiv preprint arXiv:2312.00752},
5 year={2023}
6 }
7 @article{RWKV,
8 title={RWKV: Reinventing RNNs for the Transformer Era},
9 author={Peng, Bo and others},
10 journal={arXiv preprint arXiv:2305.13048},
11 year={2023}
12 }
13