/ Модель

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

Контекст
1 024 токена
Параметры
42,4 млн
Лицензия
MIT
Архитектура
haru_dense · dense
Библиотека
transformers
Опубликована
30 сен 2026

haru_3-teacher-base

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

Haru v3 Teacher Base — корейская базовая языковая модель для продолжения детских рассказов и дистилляции компактных моделей.

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

Бенчмарки

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

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

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

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

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

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

Haru v3 Teacher Base — авторская плотная авторегрессионная модель Alice Noa Chan для продолжения детских рассказов на корейском языке. Это базовый чекпойнт без instruction tuning: на вход ей подают начало рассказа, а модель дописывает продолжение. В метаданных указаны архитектура HaruDenseForCausalLM, 42,4 млн параметров и контекст до 1 024 токенов; README сообщает о 30 997 377 параметрах, 16 слоях и ширине скрытого слоя 384. Веса FP32 Safetensors, библиотека Transformers.

Модель обучена с нуля и предназначена также для использования в качестве учителя при дистилляции компактных экспериментальных моделей. В тесте на 64 рассказах её BPC составил 0,871838; сравнение с Haru v2 не изолирует влияние архитектуры и не доказывает превосходство малых ученических моделей. Модель может терять детали сюжета и причинно-следственные связи, повторять идеи или менять персонажей; её общие фактические знания и способности к рассуждению не установлены. Поддерживаются контексты до 1 024 токенов. Веса и исходный код распространяются по лицензии MIT; обучающие корпуса в репозитории не опубликованы.

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

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

Ограничения

Модель может терять детали и причинно-следственные связи сюжета, повторяться или неожиданно менять персонажей; контексты длиннее 1 024 токенов не поддерживаются. Она не настроена для следования инструкциям, а её фактические знания и общие способности к рассуждению не подтверждены.

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

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

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

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

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

Открыть на Hugging Face

Haru v3 Teacher Base (non-IT)

A 30,997,377-parameter self-trained teacher for Korean children's-story continuation and distillation into compact experimental students. This teacher is larger than the students' 18M parameter limit. It is a non-IT / base checkpoint: provide the beginning of a story to continue it.

Teacher IT and both evaluated student candidates are now released separately; see the candidate comparison and repository links below.

The weights are unquantized FP32 Safetensors. Weights and included source code are released under MIT; see LICENSE. Training corpora are not distributed with this repository. Existing synthetic corpora were reused; no new external-LLM-generated data or pretrained weights were used.

Installation and compatibility

Use Python 3.11 or newer. CPU inference is supported.

python -m pip install "torch>=2.6" "transformers==4.57.1" sentencepiece safetensors

Independent loading and generation were verified with Transformers 4.57.1 and 5.17.0. The included wrapper fixes the Transformers 5 all_tied_weights_keys loading error. The tokenizer preserves training BOS and reserved-role tokens under both versions. These compatibility fixes did not change the trained FP32 weights. trust_remote_code=True loads the included custom model and tokenizer implementation.

Input plus generated output must fit 1,024 tokens. For GPU inference, use an appropriate PyTorch build and move both the model and inputs to cuda.

Story continuation

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "alice-noa-chan/haru_3-teacher-base"
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo, trust_remote_code=True
).to(device).eval()

prompt = "작은 마을에 사는 토끼는 길에서 반짝이는 단추를 발견했어요."
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=904).to(device)
with torch.inference_mode():
    output = model.generate(
        **inputs, max_new_tokens=120, do_sample=True,
        temperature=0.8, top_p=0.9, repetition_penalty=1.08, use_cache=True,
    )
print(tokenizer.decode(output[0], skip_special_tokens=True))

The output contains the input and continuation. To print only new text:

continuation = output[0, inputs["input_ids"].shape[1]:]
print(tokenizer.decode(continuation, skip_special_tokens=True))

The example limits the input to 904 tokens and generates at most 120 tokens. For greedy reproduction, set do_sample=False and omit temperature and top_p.

Architecture

SettingValue
Model typeharu_dense
Decoder layers16
Hidden width / FFN width384 / 960
Query / KV heads6 / 2 (GQA)
Vocabulary12,000 BPE tokens
Context1,024 tokens
AttentionFull causal attention in every layer; incremental KV cache
Position representationRoPE
NormalizationRMSNorm and QK RMSNorm
FFNSwiGLU, independent across teacher layers
Attention outputInput-dependent elementwise sigmoid gate
EmbeddingsTied input/output embeddings with Korean surface features

The full-attention v3 decoder differs from the legacy v1/v2 CFRD architecture. The teacher does not use recurrent cells or shared FFNs.

Training and checkpoint selection

Base training completed at 2,000,027,648 tokens. The public weights are the best story-validation checkpoint at 1,914,437,632 tokens / step 14,606, with validation story BPC 0.865567. The final resume state, including optimizer, sampler and RNG, is preserved locally.

Measured performance

The same 64 held-out raw test stories were evaluated at context 512. Lower BPC is better.

ModelParametersTest story BPCRelation ranking
Haru v3 Teacher Base30,997,3770.87183826/50
Legacy Haru v216,983,2131.14675023/50

Story BPC is approximately 24% lower, but parameter counts, tokenizers and training mixes differ. This comparison does not isolate the architecture's effect or establish an advantage for a sub-18M student. Relation ranking remains close to chance. Three fixed greedy continuations had no repeated 4-grams; this small observation does not establish broad repetition resistance. See the teacher evaluation.

Released models and student candidates

Two students were compared at exactly 13,688,705 parameters and 500,039,680 completed distillation tokens each. Both are publicly available.

ModelRoleRepository
Gated8-13mSelected student, non-ITharu_3-student-base
Gated8-13m ITIT version of the selected studentharu_3-student-chat
PairShare8-r48Unselected experimental student, non-ITharu_3-student-pairshare-base
Teacher baseFrozen non-IT teacherharu_3-teacher-base
Teacher ITFrozen IT teacherharu_3-teacher-chat

PairShare shares each SwiGLU FFN across two adjacent layers and adds a rank-48 linear residual adapter per layer. Its attention layers and KV caches remain independent. Gated8 uses independent FFNs with width 512; PairShare uses width 960.

CandidateValidation story BPC (lower is better)Training-host CPU generation, 4 threads
PairShare8-r480.94583493.28 tokens/s
Gated8-13m0.949001110.63 tokens/s

The paired document-bootstrap 95% interval for PairShare minus Gated validation BPC was [-0.009002, 0.003038], including zero. The predeclared selection rule therefore chose the faster CPU model, Gated8-13m. Test scores did not drive selection. This is one training seed; the bootstrap does not measure variation between training seeds. PairShare is preserved for architecture experiments; no PairShare IT checkpoint was trained.

See the Haru collection, training instructions, and completed evaluation.

Limitations

  • Generations can lose object locations, promises and event causes.
  • Longer outputs may repeat ideas or change characters unexpectedly.
  • This base checkpoint has no instruction tuning; use the separate IT teacher for chat-formatted inputs.
  • Factual assistance and general reasoning have not been established.
  • Contexts longer than 1,024 tokens are unsupported.
  • No claim of being the strongest model below 18M is made.

Source and license

GitHub provides the training, distillation and evaluation code. Weights and included code are MIT; training corpora remain outside this release. The tokenizer compatibility implementation is recorded at 8d4a4d1.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
HaruDenseForCausalLM
Ревизия весов
50e7686

0 моделей