/ Модель

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

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

haru_3-teacher-chat

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

Экспериментальная корейская чат-модель для генерации детских историй и дистилляции компактных моделей.

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

Бенчмарки

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

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

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

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

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

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

Haru v3 Teacher IT — модель HaruDense с 42,4 млн параметров по метаданным. Её разработали как экспериментальную инструкционную модель для генерации детских историй на корейском языке и как учителя для дистилляции меньших моделей. Для диалогового использования предназначен chat template; архитектура — причинный декодер с 16 слоями и полным вниманием. Контекст составляет 1 024 токена. Модель принимает текст и генерирует текст.

В тестах на программно созданных заданиях точное совпадение составило 53/70 для знакомых сущностей и шаблонов, 9/70 для новых сущностей и 0/70 при изменении сущностей и шаблонов. В историях модель может терять предметы, обещания и связность событий; надёжное следование инструкциям, фактические ответы и общее рассуждение не подтверждены. Репозиторий распространяется по лицензии MIT.

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

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

Ограничения

Модель слабо обобщает на новые сущности и шаблоны, а в историях может терять объекты, обещания и последовательность событий. Надёжность для фактических ответов и общего рассуждения не установлена.

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

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

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

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

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

Открыть на Hugging Face

Haru v3 Teacher IT

The 30,997,377-parameter instruction-tuned teacher for experimental Korean children's-story instructions and student distillation. This is the IT version; use apply_chat_template rather than treating it as a plain base model. It is larger than the students' 18M parameter limit. Unquantized FP32 Safetensors and the included code are MIT licensed; see LICENSE.

The teacher base was trained from scratch and frozen before base distillation. Teacher IT training completed at 10,092,544 tokens, and the resulting frozen IT teacher was used to distill the selected Gated8 student IT. Training corpora are not distributed here. Existing synthetic corpora were reused; no new external LLM data, teacher outputs 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.

Chat-formatted story generation

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "alice-noa-chan/haru_3-teacher-chat"
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()
messages = [{"role": "user", "content": "토끼가 친구를 만나는 동화를 이어 써 주세요."}]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True,
).to(device)
with torch.inference_mode():
    output = model.generate(
        **inputs, max_new_tokens=120, do_sample=True,
        temperature=0.8, top_p=0.9, use_cache=True,
    )
print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

The chat template includes the training BOS token. skip_special_tokens=True removes assistant role boundaries. Shorten long messages before generation so the complete input plus output stays within 1,024 tokens.

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.

Evaluation and limitations

Validation story BPC is 0.945599. On the same 64 held-out raw stories at context 512, plain continuation BPC is 0.949023, compared with 0.871838 for teacher base. Raw-story BPC does not measure instruction following.

On the small program-generated exact-match suite, teacher IT scored 53/70 with familiar entities/templates, 9/70 with new entities and 0/70 when both entities and templates changed. This indicates weak generalization. Actual chat-formatted fixed stories still lose objects, promises and event continuity. The model is an experimental story checkpoint; reliable factual assistance and general reasoning have not been established.

See evaluation.json for measurements and fixed continuations. No claim of being the strongest model below 18M is made.

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.

Source and license

The training source is 11f7c7b. The tokenizer compatibility implementation is recorded at 8d4a4d1. Weights and included source code are MIT licensed. Raw training corpora are not distributed with this release.

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

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

GPU в ailist

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

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

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

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

0 моделей