Zenyx-Base-220M: High-Density Nano Foundation Model
Zenyx-Base-220M
is a 220 million parameter causal language model built from scratch using JAX/Flax on Kaggle TPU v5e-8.
Unlike typical small models trained on limited data, Zenyx-Base was trained on
~153 Billion tokens
—far exceeding the Chinchilla optimal point for this parameter count. This "over-training" strategy was employed to maximize the information density and logic capabilities of the weights, creating a robust foundation for reasoning tasks.
Tokenizer:
Qwen 2.5 Tokenizer (151,650 Vocab Size) for high compression efficiency.
Context Window:
2048 Tokens.
Training Hardware:
TPU v5e-8.
Final Validation Loss:
~2.38
(Exceptional convergence for 220M).
Technical Specifications
Hyperparameter
Value
Layers
12
Hidden Dim
768
MLP Dim
3072
Attention Heads
12
KV Heads
4 (GQA)
Vocab Size
151,646
📚 Training Curriculum (The "Omni-Mix")
The model was trained using a rigorous 4-stage curriculum designed to layer capabilities sequentially:
Phase 1: Fundamentals (FineWeb-Edu)
Focus on high-quality educational English text to establish linguistic baselines.
Phase 2: Logic & Structure (StarCoder - Python)
Introduction of code data to enforce logical indentation, syntax, and structured thinking.
Phase 3: Multilingualism (FineWeb-2)
Exposure to 6 major languages (Hindi, Chinese, Russian, Japanese, French, Spanish) to expand the semantic embedding space.
Phase 4: The Infinite Polish (Omni-Mix)
A weighted interleaving of all previous datasets plus
OpenWebMath
to converge the model's logic and language capabilities.
💻 Usage
This model is a raw
JAX/Flax
checkpoint saved in
.safetensors
format. It uses a custom architecture definition and requires
flax
and
jax
to run.
Loading with JAX/Flax
import jax
import jax.numpy as jnp
from flax.training import train_state
from flax import serialization
from safetensors.flax import load_file
from transformers import AutoTokenizer
import flax.linen as nn
# 1. Define Architecture (Must match training config)classTransformerLM(nn.Module):
vocab_size: int
embed_dim: int = 768
num_layers: int = 12
num_heads: int = 12
num_kv_heads: int = 4
mlp_dim: int = 3072
max_length: int = 2048
dropout_rate: float = 0.0# ... (Insert full model class definition here from the training script) ...# 2. Load Resources
repo_id = "Arko007/Zenyx_Base_220M"
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct", trust_remote_code=True)
# 3. Initialize & Load Weights
model = TransformerLM(vocab_size=len(tokenizer))
dummy_input = jnp.ones((1, 1), dtype=jnp.int32)
params = model.init(jax.random.PRNGKey(0), dummy_input)['params']
# Load Safetensors# Ensure model.safetensors is downloaded locally
loaded_params = load_file("model.safetensors")
print("Weights loaded successfully!")
⚠️ Limitations
Size: At 220M parameters, the model's knowledge retrieval capacity is limited compared to 7B+ models.
Base Model: This is a pre-trained base. It has not been fine-tuned for chat or instruction following (see Zenyx-DeepSeek-220M for the instruct version).
Hallucinations: While logically consistent, it may generate factually incorrect statements.
📜 Citation
@misc{ZenyxBase220M,
title = {Zenyx-Base-220M: High-Density Foundation Model},
author = {Arko007},
year = {2025},
publisher = {HuggingFace},
url = {[https://huggingface.co/Arko007/Zenyx_Base_220M](https://huggingface.co/Arko007/Zenyx_Base_220M)}
}
Runs of Arko007 Zenyx_Base_220M on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About Zenyx_Base_220M huggingface.co Model
Zenyx_Base_220M huggingface.co is an AI model on huggingface.co that provides Zenyx_Base_220M's model effect (), which can be used instantly with this Arko007 Zenyx_Base_220M model. huggingface.co supports a free trial of the Zenyx_Base_220M model, and also provides paid use of the Zenyx_Base_220M. Support call Zenyx_Base_220M model through api, including Node.js, Python, http.
Zenyx_Base_220M huggingface.co is an online trial and call api platform, which integrates Zenyx_Base_220M's modeling effects, including api services, and provides a free online trial of Zenyx_Base_220M, you can try Zenyx_Base_220M online for free by clicking the link below.
Arko007 Zenyx_Base_220M online free url in huggingface.co:
Zenyx_Base_220M is an open source model from GitHub that offers a free installation service, and any user can find Zenyx_Base_220M on GitHub to install. At the same time, huggingface.co provides the effect of Zenyx_Base_220M install, users can directly use Zenyx_Base_220M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.