/ Модель

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

Контекст
1 024 токена
Лицензия
Своя лицензия
Архитектура
nanochat · dense
Библиотека
transformers
Опубликована
30 мая 2026

chinese-babylm-nanochat-d22-step10000

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

Базовая китайская причинная языковая модель, обученная с нуля для продолжения текста и экспериментов в задачах Chinese BabyLM.

1 623скачиваний за 30 дней0лайковвеса обновлены12 июн 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Это базовая причинная языковая модель китайского языка l0ulan/chinese-babylm-nanochat-d22-step10000, созданная для соревнования Chinese BabyLM Challenge в рамках NLPCC 2026 с использованием кодовой базы karpathy/nanochat. Модель обучена с нуля предсказывать следующий токен и не основана на предварительно обученном чекпойнте; архитектура — декодер NanoChatForCausalLM из 22 слоёв с контекстом 1024 токена и словарём из 32 768 токенов.

Модель предназначена для продолжения китайского текста, экспериментов с небольшими языковыми моделями, токенизаторами и архитектурой NanoChat, а также для исследований и оценки в задачах Chinese BabyLM. Её токенизатор обучен на корпусе Chinese BabyLM и эффективнее кодирует этот корпус, но хуже подходит для английского, кода, математики и смешанных текстов. В репозитории есть пользовательский код модели и токенизатора, поэтому для загрузки требуется trust_remote_code=True.

Это не чат-модель: она не обучалась следованию инструкциям, SFT или выравниванию безопасности, поэтому может не отвечать на запросы как ассистент. Карточка указывает лицензию «other», не уточняя конкретные условия; перед использованием следует проверить лицензионные условия репозитория.

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

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

Ограничения

Модель не обучена следовать инструкциям и не выровнена по безопасности; не подходит для использования как готовый ассистент. Токенизатор специализирован на китайском корпусе BabyLM, а для загрузки нужен пользовательский код с trust_remote_code=True.

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

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

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

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

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

Открыть на Hugging Face

Chinese BabyLM NanoChat d22 Step 10000

Model Summary

chinese-babylm-nanochat-d22-step10000 is a Chinese base causal language model trained with the karpathy/nanochat codebase for the NLPCC 2026 Chinese BabyLM shared task.

This is a base continuation model, not an instruction-tuned or chat-aligned assistant. It should be prompted with plain text and interpreted as next-token continuation. It has not gone through SFT, RLHF, DPO, or safety alignment.

Competition Compliance

This checkpoint is intended for the Chinese BabyLM Challenge final model submission.

RequirementStatus
One submitted modelThis repo contains a single HF-exported checkpoint.
From scratchTrained from randomly initialized weights.
No pretrained checkpointNo pretrained model weights were loaded.
No distillationNo teacher-model distillation was used.
Data optionOfficial corpus option.
Pretraining datachinese-babylm-org/babylm-zho-100M.
Evaluation leakageNo evaluation datasets were intentionally included in pretraining.
Frozen submissionIntended checkpoint is step 10000.

Final submission repositories for the challenge should be public before the organizer deadline.

Model Details

FieldValue
Model typeDecoder-only causal language model
ArchitectureNanoChat NanoChatForCausalLM
Training objectiveNext-token prediction
LanguageChinese
Checkpointzh-d22-2gpu, step 10000
Context length1024 tokens
Vocabulary size32768
TokenizerCustom Chinese tokenizer trained on Chinese BabyLM text
Precisionbfloat16
Export formatHuggingFace trust_remote_code

Architecture

The model configuration:

ParameterValue
sequence_len1024
vocab_size32768
n_layer22
n_head22
n_kv_head22
n_embd1408
Head dimension64
window_patternL
representation_layer8
representation_hidden_states_modeselected_only
Estimated total parameters~1.123B

This repository includes custom model and tokenizer code:

configuration_nanochat.py
modeling_nanochat.py
tokenization_nanochat.py

Loaders must use trust_remote_code=True.

Repository Files

Expected files in this model repository:

config.json
pytorch_model.bin
tokenizer.pkl
tokenizer_config.json
special_tokens_map.json
configuration_nanochat.py
modeling_nanochat.py
tokenization_nanochat.py
README.md
.gitattributes
img/baseline_task_comparison.png

pytorch_model.bin is the model weight file. tokenizer.pkl is required by the custom tokenizer.

Training Data

The model was trained on the official Chinese BabyLM corpus:

chinese-babylm-org/babylm-zho-100M

The corpus was converted into nanochat parquet shards:

SplitRows
Train182,680
Validation918

Total prepared shards: 17.

No extra instruction data was used for this checkpoint.

Tokenizer

A 32K Chinese tokenizer was trained from the Chinese BabyLM training data.

Tokenizer compression on Chinese BabyLM text:

SplitThis tokenizer bytes/tokenGPT-2 bytes/tokenGPT-4/cl100k bytes/token
Train4.981.432.20
Validation4.811.442.19

This tokenizer is specialized for Chinese BabyLM data. It gives much better compression on the target corpus than GPT-2 or GPT-4 tokenizers, at the cost of weaker general-purpose compression on English, code, math, and mixed-domain text.

Training Setup

The final recovered training run used one RTX 5090 GPU.

Main training configuration:

FieldValue
Depth22
Sequence length1024
Device batch size4
Total batch size65536 tokens
Iterations10000
Trained tokens655,360,000
Dtypebfloat16
Final train loss0.015389
Minimum observed train loss0.014984
Total training time363.75 minutes
Peak memory~19.1 GiB

Official Open Evaluation

The model was exported to HuggingFace format and evaluated with a fresh copy of the official Chinese BabyLM eval pipeline:

SiyuanSong2004/chinese-babylm-eval-pipeline

The final official run used the unmodified official pipeline with backend: causal. The Hanzi tasks use the refreshed June 6 evaluation data/rules released by the Chinese BabyLM organizers. For cognitive evaluation, this repository exposes layer 8 as the HF AutoModel representation (representation_layer=8, representation_hidden_states_mode=selected_only). The language-model weights are still the same d22 step10000 checkpoint.

The repository root includes config.yaml, which freezes the official evaluation pipeline settings and NLU fine-tuning hyperparameters for hidden evaluation. It is an evaluation config, not a model architecture or training config.

Final gathered official open-task scores:

TaskScore
zhoblimp67.45
hanzi_structure52.35
hanzi_pinyin51.00
word_fmri55.80
fmri10.66
afqmc68.61
ocnli55.59
tnews51.31
cluewsc202059.54
Mean over open tasks52.48

Baseline Comparison

The figure compares this model against three representative baselines:

  • bert-base-chinese: strong pretrained encoder baseline.
  • Qwen3-0.6B: strong generative baseline.
  • babylm-chinese-bert-14m-epoch20: strong small BabyLM-trained baseline.

Our model is shown with the darkest pink. Its Hanzi scores use the June 6 refreshed evaluation data; baseline values are the public reference scores listed in the challenge materials available during development.

Chinese BabyLM per-task baseline comparison

Usage

Because this repository contains custom model/tokenizer code, use trust_remote_code=True.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo_id = "l0ulan/chinese-babylm-nanochat-d22-step10000"

tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

prompt = "春天来了,公园里的花"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=120,
        do_sample=True,
        temperature=0.8,
        top_k=50,
    )

print(tokenizer.decode(output_ids[0], skip_special_tokens=False))

Limitations

  • This is a base model, not a chat model. It does not reliably follow instructions.
  • Outputs may be unrelated to user intent if prompted like an assistant.
  • The model has not been safety-aligned.
  • The training corpus is Chinese BabyLM-focused; general-domain multilingual performance is not the goal of this checkpoint.
  • The model requires custom code loading with trust_remote_code=True.

Recommended Use

Appropriate uses:

  • Chinese BabyLM research.
  • Base LM continuation experiments.
  • Tokenizer/model architecture experiments.
  • Downstream SFT or probing baselines.
  • Re-running the official Chinese BabyLM eval pipeline.

Not recommended as-is:

  • Production assistant use.
  • Safety-critical applications.
  • Instruction-following/chat evaluation before SFT.

Acknowledgements

This checkpoint was trained with the karpathy/nanochat codebase and evaluated with the Chinese BabyLM eval pipeline from SiyuanSong2004/chinese-babylm-eval-pipeline.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
NanoChatForCausalLM
Ревизия весов
7945c2a

0 моделей