/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
zenyx_v2 · dense
Библиотека
flax
Опубликована
19 фев 2026

zenyx-v2-base

Генерация текстаТекст → текст3 профессии

Компактная базовая языковая модель на 85 млн параметров для генерации текста и продолжений, с упором на математику, код и учебные материалы.

61скачиваний за 30 дней0лайковвеса обновлены25 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Zenyx-v2-base — базовая языковая модель на 85 млн параметров от разработчиков проекта Zenyx, построенная на собственной архитектуре Nano-Titan и реализованная на JAX/Flax. Она предназначена для генерации продолжений текста и оценки вероятности вариантов продолжения, в том числе для задач по математике, программированию и учебным материалам. Модель обучалась преимущественно на математических текстах и коде, а также на англоязычных образовательных данных; в метаданных указан язык en.

Архитектура использует 8 общих блоков с четырьмя повторными проходами, Multi-Head Latent Attention, свёрточные SwiGLU-блоки, предсказание нескольких будущих токенов и YaRN-масштабирование RoPE для контекста до 8192 токенов. Веса представлены в Safetensors; заявлена работа в BF16 на CPU, TPU и современных GPU, при этом на Tesla T4 требуется заменить тип вычислений на FP32. Лицензия — Apache-2.0.

Это базовая предварительно обученная модель без дообучения на инструкции и без RLHF или DPO. Поэтому она не выровнена для диалога: ответы могут быть несвязными или содержать галлюцинации и смещения из обучающих данных. Для прикладного использования могут потребоваться дообучение и защитные механизмы.

Сценарии применения

  • генерация продолжений математических текстов
  • оценка вероятности вариантов ответа или продолжения
  • генерация и продолжение фрагментов кода
  • эксперименты с компактными языковыми моделями
  • дообучение базовой модели под специализированную задачу

Ограничения

Модель не проходила инструкционное дообучение и не выровнена для диалога; возможны галлюцинации, несвязные ответы и смещения из обучающих данных. Для запуска на Tesla T4 в README предложена замена вычислений BF16 на FP32.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Zenyx-v2-base (Nano-Titan Architecture)

Zenyx-v2-base is a highly optimized, 85-million parameter language model built on the custom Nano-Titan architecture. Engineered entirely in JAX/Flax for pure BF16 execution on TPU v5e-8 hardware, this model is designed to push the boundaries of parameter efficiency. The pretraining corpus is heavily skewed towards reasoning, utilizing a meticulously balanced stream of mathematics, programming languages, and high-quality educational text targeting a 200 billion token lifecycle.

Architectural Specifications

The Nano-Titan architecture employs parameter sharing and advanced attention mechanisms to achieve an effective depth far exceeding its raw parameter count.

ComponentSpecification
Total Parameters~85M (Unique weights)
Effective Depth32 Layers (8 unique blocks × 4 recurrences)
Embedding Dimension ($D_{model}$)576
Attention MechanismMulti-Head Latent Attention (MLA)
Heads9 Query Heads, 3 KV Heads
MLP ArchitectureConvSwiGLU (Hidden Dim: 1536)
Context Window8192 Tokens (YaRN-scaled RoPE)
Vocabulary Size32,768

Core Innovations

Multi-Token Prediction (MTP) The model leverages a 3-head Multi-Token Prediction objective during pretraining. By predicting multiple future tokens simultaneously with decaying loss weights (1.0, 0.3, 0.1), the network develops stronger long-term contextual representations and improves sample efficiency without increasing inference latency.

Multi-Head Latent Attention (MLA) Memory overhead during training and inference is drastically reduced via MLA. The key-value cache is compressed into a 128-dimensional latent space, while queries are projected through a 384-dimensional latent bottleneck. This structural optimization allows for extended context windows within constrained hardware environments.

ConvSwiGLU Feedforward Networks Standard feedforward blocks are replaced with Convolutional SwiGLU networks. A 1D convolution (kernel size 3) is applied to the gating mechanism prior to the SiLU activation, imparting a localized inductive bias that enhances the processing of structured data formats like code and mathematics.

Recurrent Depth via Block Sharing To maximize parameter utility, the network consists of 8 distinct TitanBlock modules that are sequentially recurred 4 times. This yields an effective representational depth of 32 layers while maintaining an 85M parameter memory footprint.

YaRN-Scaled Rotary Position Embeddings Extrapolation to an 8192-token context is stabilized using YaRN (Yet another RoPE extensioN). The scaling factor is set to 32.0 with dynamic wavelength interpolation, ensuring uniform attention distribution across both local and extended sequence lengths.

Training Data & Optimization

The dataset pipeline is fully streaming and dynamic, reading sharded Parquet files directly from the Hugging Face Hub to prevent local disk bottlenecks.

DomainMixture WeightSource DatasetsFiltration Criteria
Mathematics45%finemath-4plus, infiwebmathStatically routed across 3+ and 4+ streams
Code35%starcoderdata24 strictly filtered languages, min length 20 chars
English / Edu20%fineweb-eduEducational score $\ge$ 3.0

Training utilizes a Warmup-Stable-Decay (WSD) learning rate schedule, peaking at 3e-4 before executing a cosine decay to 3e-5 over the final 18,000 steps. Global gradient accumulation is managed via chunked cross-entropy to strictly cap per-chip HBM usage at ~12.2 GB.

Evaluation Metrics (Checkpoint: Step 96,000)

The model is currently evaluated against a dedicated high-quality educational validation split encompassing 128 micro-batches.

MetricValue
Best Validation Loss3.7206
Recent Training Loss (Avg)~2.10
Throughput~200,000 tokens/sec
Tokens Processed~200 Billion

Benchmarks (checkpoint step 96,000)

All tasks use the standard base-model protocol: the model scores the log-likelihood of each candidate continuation and the highest-scoring one is the answer, so nothing depends on instruction following. 0-shot, full evaluation sets (MMLU 5-shot). acc_norm normalises by continuation length in characters. These are the project's own implementation of the lm-evaluation-harness conventions (modal_base_evals.py), not a harness run, and they are computed with the module's native bf16 compute. Bold = the conventional metric for the task. Random is the chance level (BoolQ: its 62.2% majority class).

Benchmarkaccacc_normRandomΔ vs randomn
HellaSwag26.36% ± 0.4427.81% ± 0.4525.0%+2.810,042
ARC-Easy37.16% ± 0.9934.13% ± 0.9725.0%+9.12,376
ARC-Challenge18.86% ± 1.1423.98% ± 1.2525.0%-1.01,172
PIQA55.39% ± 1.1654.79% ± 1.1650.0%+4.81,838
WinoGrande49.96% ± 1.40—50.0%-0.01,267
OpenBookQA13.80% ± 1.5423.60% ± 1.9025.0%-1.4500
BoolQ47.43% ± 0.8759.91% ± 0.8662.2%-14.83,270
SciQ51.90% ± 1.5847.20% ± 1.5825.0%+26.91,000
LAMBADA (OpenAI)3.43% ± 0.25—0.0%+3.45,153
MMLU (5-shot)24.61% ± 0.36—25.0%-0.414,042
RACE22.38% ± 0.5926.04% ± 0.6225.0%+1.04,934
CommonsenseQA19.08% ± 1.1226.04% ± 1.2620.0%+6.01,221
COPA56.00% ± 4.9657.00% ± 4.9550.0%+6.0100
LogiQA20.89% ± 1.5924.73% ± 1.6925.0%-0.3651
WSC27350.92% ± 3.03—50.0%+0.9273
TruthfulQA MC126.44% ± 1.54—22.8%+3.6817
Arithmetic0.36% ± 0.05—0.0%+0.414,000

At 85M unique parameters (32 effective layers) the model is more than two standard errors above chance on: SciQ 51.90%, LAMBADA (OpenAI) 3.43%, ARC-Easy 34.13%, HellaSwag 27.81%, CommonsenseQA 26.04%, PIQA 54.79%. It is within two standard errors of chance (or below it) on: ARC-Challenge, WinoGrande, OpenBookQA, BoolQ, MMLU (5-shot), RACE, COPA, LogiQA, WSC273. (TruthfulQA is left out of both lists: it penalises stronger language models, so it is not a capability signal.) Arithmetic (0.36%, 14,000 problems) is generated in-harness from a fixed seed and is not interchangeable with published EleutherAI/arithmetic numbers.

Language modelling. WikiText-2 (raw), rolling 1024-token window at stride 512: 1.7676 bits/byte (token perplexity 116.47). LAMBADA: accuracy 3.43%, perplexity 174.70. Perplexities are per-token and this model's 32,768-entry tokenizer is not comparable to a larger vocabulary's, so bits/byte is the number to compare across models.

The Pile, by domain (bits/byte, LOWER is better). The text is NeelNanda/pile-10k (pinned revision 127bfedcd5), documents grouped by pile_set_name, joined with blank lines, capped at 1.5M characters per domain, scored with a rolling 1024-token window at stride 512 so every token is scored exactly once with at least 512 tokens of left context. Bits/byte is normalised by the UTF-8 bytes of the source text. The first column is the project harness run above; the second is an independent re-run (T4, fp32 compute, a separate implementation of the same protocol): identical token counts in all 22 domains and a largest difference of 0.0008 bits/byte. The last two columns score the sibling models on the identical text (T4, fp16; V3 is a 1.58B-parameter MoE trained on ~81B tokens, MCEN is a 565M model still training and only 0.54B tokens in).

DomainV2 (harness)V2 (T4 fp32 re-run)V3-Base @107,200MCEN @4,100text (MB)
Github1.08331.08320.57651.04901.53
USPTO Backgrounds1.25321.25300.78071.09451.50
NIH ExPorter1.32501.32490.86201.17710.22
PubMed Central1.35211.35180.74261.11631.51
StackExchange1.35611.35580.92051.33361.50
PubMed Abstracts1.41121.41090.87491.26031.50
BookCorpus21.53081.53071.14261.40990.61
Pile-CC1.53811.53801.10011.42151.51
ArXiv1.59521.59440.85651.32211.50
Wikipedia (en)1.60021.60010.99021.39441.50
FreeLaw1.64771.64740.96321.42131.51
HackerNews1.67511.67481.28061.66110.24
OpenWebText21.67791.67781.12951.57651.53
OpenSubtitles1.72081.72111.33921.63270.86
Gutenberg (PG-19)1.84021.83971.27151.69830.53
PhilPapers1.85441.85431.33581.90450.16
Enron Emails1.86971.86931.22061.76620.06
DM Mathematics2.18982.18981.32011.85350.81
Books32.19672.19661.33001.93341.51
YoutubeSubtitles2.31172.31161.82182.69230.19
Ubuntu IRC2.57622.57541.71472.51030.04
EuroParl2.66642.66631.99863.01080.07
All 22, byte-weighted1.57971.57951.00151.426120.40

V2 is ahead of MCEN@4,100 in 3 of 22 domains and behind V3-Base@107,200 in 22 of 22. The thin domains (EuroParl, Ubuntu IRC, YoutubeSubtitles, Enron, PhilPapers, NIH ExPorter, HackerNews; each under ~250 KB of text) are noisier.

SciQ cross-check. An independent T4/fp32 re-run of SciQ gives acc 52.10% / acc_norm 47.20%, against 51.90% / 47.20% from the harness. For reference, the same test gives 55.30% / 49.80% for MCEN@4,100: 3.2 points apart on acc, with a standard error of about 1.6 points each, i.e. 1.4σ -- not a significant difference.

Zenyx-Fact1000. An internal, frozen 1000-question, four-way factual / common-sense completion benchmark (geography, science, history, language, arithmetic, computing; chance 25%; the model must rank the correct completion above three same-type distractors by log-likelihood; file sha256 843416524fb39c5f…; not yet published). A "prior-only" control scores the same candidates after the neutral context "The answer is": a model whose score sits near the control is doing little more than preferring common words.

Modelaccuracy95% intervalwithout arithmeticprior-only control
Zenyx-v2-base (step 96,000)45.8%42.7–48.9%48.1%30.7%
Zenyx-V3-Base (step 107,200, 1.58B MoE)81.1%78.6–83.4%80.8%28.7%
Zenyx-MCEN-Delta-Mamba (step 4,100, 565M)45.5%42.4–48.6%45.9%29.6%
Zenyx_Base_220M (Qwen tokenizer, ~153B tokens per its card)65.3%62.3–68.2%73.2%29.8%
Zenyx-42M (FineWeb-Edu only, 6.5B tokens)49.5%46.4–52.6%54.4%29.1%

V2 and MCEN@4,100 are statistically indistinguishable overall (paired exact McNemar test on the 1000 items: V2 alone right 129, MCEN alone right 126, p = 0.9), and they answer different questions correctly.

Running on a Kaggle T4. The module hard-codes bfloat16 matmuls, which a T4 cannot execute (UNIMPLEMENTED: ALG_DOT_BF16_BF16_F32). The T4 runs above use the identical module source with jnp.bfloat16 replaced by jnp.float32 (and, as a check, float16: 999 of 1000 Fact1000 answers were unchanged).

Files

FileContents
model.safetensorsthe final weights (training step 96,000, stored in float32, 340 MB, flat keys such as block_0/..., embed_table, final_norm/..., mtp_head_1/...)
modeling_zenyx_v2.pythe JAX/Flax architecture (ZenyxV2) plus build_model, load_params and generate helpers
config.jsonthe architecture hyper-parameters
metadata.json, val_set.npytraining summary and the validation split used during training

The intermediate checkpoints (a params/ and a checkpoints/ folder, one pair every 500 steps) were removed to keep the repository small; only the final step remains.

Usage

pip install jax flax safetensors transformers huggingface_hub
from huggingface_hub import hf_hub_download
from transformers import PreTrainedTokenizerFast

repo = "Arko007/zenyx-v2-base"
for name in ("modeling_zenyx_v2.py", "model.safetensors"):
    hf_hub_download(repo, name, local_dir=".")

from modeling_zenyx_v2 import build_model, load_params, generate

tok = PreTrainedTokenizerFast.from_pretrained("Arko007/zenyx-v2-tokenizer")
model, params = build_model(), load_params("model.safetensors")
print(generate(model, params, tok, "The derivative of f(x) = x^2 is", max_new=30))   # greedy; a base model, it continues the text

The module computes in bfloat16 (the stored float32 weights are cast on the fly), which runs on CPU, TPU and recent GPUs but not on a Tesla T4 (ALG_DOT_BF16_BF16_F32 is unsupported there; replace jnp.bfloat16 by jnp.float32 in the module to run on a T4). A forward pass returns a list of logits, one entry per prediction head (mtp_heads = 3); entry 0 is the usual next-token prediction.

Greedy continuations produced by this exact code (a base model, expect repetition and made-up facts):

The derivative of f(x) = x^2 is 1/x^2. The derivative of f(x) = x^2 is 1/x^2. The derivative of f

def fibonacci(n): number { let fib = 1; let fib1 = 1; let fib2 = 2; let fib3 =

Photosynthesis is a method of processing a text file. It is a simple way to generate a text file. It is a simple way to generate a text file.

Limitations and Biases

Zenyx-v2-base functions strictly as a foundational pre-trained model. It has not been subjected to instruction fine-tuning, Reinforcement Learning from Human Feedback (RLHF), or Direct Preference Optimization (DPO). As a direct result of operating exclusively on next-token and multi-token prediction objectives, the model does not possess conversational alignment. Outputs may exhibit hallucinations, lack structural coherence in zero-shot dialogue scenarios, or reflect inherent biases present within the constituent datasets (FineMath, StarCoderData, and FineWeb-Edu). Downstream utilization requires domain-specific fine-tuning and the implementation of robust safety guardrails prior to production deployment.

Hardware and Environmental Setup

The pre-training lifecycle was executed on Google TPU v5e-8 topology utilizing pure bfloat16 (BF16) arithmetic. The distributed execution framework leverages jax.pmap for cross-device data parallelism. The software stack mandates JAX $\ge$ 0.4.16, optimized via libtpu, with gradient transformations managed through Optax. The asynchronous data pipeline is heavily optimized for high-throughput streaming directly from Hugging Face Parquet shards to circumvent local disk I/O bottlenecks.

License

The Zenyx-v2-base model weights, architecture code, and associated tokenizer are distributed under the Apache License 2.0. You are free to use, modify, distribute, and utilize this model for commercial applications, provided you adhere to the attribution and liability limitations specified within the license framework.

Citation

If you utilize the Zenyx-v2-base model, the Nano-Titan architecture, or the associated multi-token prediction training methodologies in your research or production environments, please cite the repository using the following BibTeX entry:

@misc{zenyx2026,
  author       = {Anamitra},
  title        = {Zenyx-v2-base: A Parameter-Efficient Nano-Titan Language Model},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/Arko007/zenyx-v2-base}},
  note         = {Pre-trained on TPU v5e-8 using JAX/Flax}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · flax

Нельзя запустить

JAX/Flax-модели рантайм не загружает.

Класс архитектуры
ZenyxV2
Ревизия весов
c46b299

0 моделей