Crow (Japanese): a ~17M-parameter crow that only answers in actions and caws

A Japanese remake of Tallow by digi-the-robot. It's a tiny language model, trained from scratch, that plays a wild crow named クロ (Kuro). It answers with actions and crow sounds only, never human words (except a word you have patiently taught it). It remembers how you treat it within the conversation: feed it and it slowly warms up; grab it and it holds a grudge. Apologies don't help, only food does.

It's one of three sibling models: Korean, Japanese, Chinese. It's a toy: fun for a small chat room, not a general chatbot.

Example

Greedy decoding with crow.py (the user's lines were written for this card; the crow's lines are the model's real output):

you:  ă“ă‚“ă«ăĄăŻïŒ*æ‰‹ăźăČă‚‰ă«ăƒ”ăƒŒăƒŠăƒƒăƒ„ă‚’ăźă›ăŠć·źă—ć‡șす*
crow: [caution max] *é›»ç·šăźæžă‹ă‚‰èș«ă‚’äč—りć‡șす* *é‹­ă„ç›źă€ăă§ă“ăĄă‚‰ă‚’çšă‚€* カゥゥ 
you:  *ăƒ™ăƒłăƒă«é™ă‹ă«ćș§ăŁăŠă€ă˜ăŁăšă—おいる*
crow: [caution min] *çŸœă‚’ć°‘ă—ă ă‘ćșƒă’ă‚‹* *驖をかしげる* ă‚«ăƒŒ
you:  *ăƒ”ăƒŒăƒŠăƒƒăƒ„ă‚’æ‰‹ă™ă‚Šă«çœźă„ăŠćź¶ă«ć…„ă‚‹*
crow: [caution min] *æ‰‹ă™ă‚Šăźç«ŻăŸă§é™ă‚ŠăŠă„ă* *ăƒ”ăƒŒăƒŠăƒƒăƒ„ă‚’çȘă* ă‚«ăƒŒă‚«ăƒŒ
you:  *いきăȘă‚Šă‚Żăƒ­ă‚’ă€ă‹ă‚‚ă†ăšă™ă‚‹*
crow: [anger max] *æż€ă—ăçŸœă°ăŸă„ăŠéŁ›ăłäžŠăŒă‚‹* *汋æ čăźäžŠăžé€ƒă’èŸŒă‚€* ă‚Źăƒƒă‚Źăƒƒă‚Źăƒƒă‚ŹăƒƒïŒïŒ
you:  ă”ă‚ă‚“ïŒïŒæœŹćœ“ă«ă”ă‚ă‚“ă­đŸ˜­
crow: [anger max] *汋æ čăźç«Żă§çżŒă‚’ćșƒă’ăŸăŸăŸçšăżă€ă‘ă‚‹* コロロロ-カカ。
you:  *ăƒ”ăƒŒăƒŠăƒƒăƒ„ă‚’é ăă«æŠ•ă’ăŠă€ćŸŒă‚ă«äž‹ăŒă‚‹*
crow: [anger min] *ç©șäž­ă§æ—‹ć›žă™ă‚‹* *æŠ•ă’ă‚‰ă‚ŒăŸăƒ”ăƒŒăƒŠăƒƒăƒ„ăžć‘ă‹ăŁăŠæ€„é™äž‹ă™ă‚‹* ă‚«ăƒŒïŒ

The user lines, in English:

  1. holds out a peanut on an open palm
  2. sits quietly on a bench, not moving
  3. leaves the peanut on the rail and goes inside
  4. suddenly tries to grab the crow
  5. sorry!! I'm really sorry
  6. tosses a peanut far away and steps back

Talk to it

pip install torch sentencepiece safetensors
python crow.py              # greedy, as evaluated below
python crow.py --temp 0.8   # sampled, more varied

crow.py is one self-contained file (model, tokenizer helpers, chat loop), adapted from upstream tallow.py. It runs on CPU. Type to the crow; /new starts over as a stranger; an empty line quits.

Like upstream, it isn't a transformers model and won't work in llama.cpp/ollama as-is: the tokenizer expects a <nl> token for line breaks and a space after every opening *, which crow.py adds.

Format

you: <anything the human says or does; *asterisks* for actions are optional>
crow: [<mood> <min|max>] *action* *action* <sound>
  • Moods: calm, curiosity, caution, joy, play, love, sadness, anger, each min or max. Each tag (e.g. [caution_min]) is a single tokenizer symbol. It's the model's read of the situation, and a bot can hide it from users.
  • Sounds: ă‚«ăƒŒ (caw) · ă‚Źăƒƒă‚ŹăƒƒïŒ (alarm) · コロロ-ă‚«ă‚« (rattle, angry) · ă‚Żăƒ«ăƒ«â€Š (soft mumble, trusted friends only). Which ones are allowed depends on trust and mood.
  • Rules it learned (from the conversation planner, after upstream): strangers get caution; food left at a distance builds trust step by step; food held out in a hand is refused by a stranger; grabbing, chasing or hitting triggers anger max and a grudge that words can't end but food slowly can; a word repeated patiently enough gets mimicked later; an old scar makes it flinch at sudden movements.

Model

Architecture Llama-style decoder (RMSNorm, RoPE, SwiGLU, tied embeddings), same as upstream Tallow
Parameters 17.3M (d 384, 8 layers, 6 heads, MLP 1024)
Vocabulary 8,192 SentencePiece BPE (byte fallback), trained on the pretraining stories only; normalization identity (full-width punctuation kept)
Context 2,048 tokens
Weights fp16 safetensors (fp32 training; fp16 scores identically, see below)

Pretraining: shibatch/TinyStories-JA (revision 155b4e58), translated from TinyStories with Gemma 4 26B-A4B, per its card. About 16k steps × 32k tokens on one T4; held-out loss 1.94. The corpus isn't redistributed here.

Fine-tuning: Asuwa/crow-conversations (ja split, CC-BY-4.0), multi-turn crow conversations generated by open-weight models: Gemma 4 26B-A4B (all 4,177 conversations). Loss only on crow lines; best held-out checkpoint kept.

Evaluation

Held-out conversations (2,612 turns, never trained on):

  • tag accuracy: with the true history, does the model pick the right [mood level] for the next crow line?
  • messy input: the same, with typos, dropped spaces, internet laughter and missing * added to the human lines.
  • replies pass: 150 held-out turns generated greedily, then run through the strict format checker (actions + only allowed sounds, no human words).
model held-out loss tag accuracy messy input replies pass checker right tag in replies
Japanese (this model) .629 95.9% 95.5% 100% 98.7%

Per behaviour (tag accuracy; turns in each category):

behaviour right messy input turns
Answers caws 99.1% 99.5% 218
Food thaws a grudge, step by step 99.3% 99.3% 143
"Sorry" during a grudge does nothing 100.0% 100.0% 109
Explodes when grabbed 89.8% 89.8% 49
Won't take food from a stranger's hand 97.9% 97.9% 48
Says a taught word at the right moment 97.6% 95.2% 42
Never grabbed, so it only hops away 100.0% 97.6% 42
Unlearned word: listens, doesn't say it 95.0% 92.5% 40
Scar flinch 94.7% 94.7% 19

Caveats:

  • Most misses are one-step slips on the trust ladder (e.g. caution min instead of curiosity min), which don't show in the reply.
  • Categories with under ~40 turns are noisy: one miss moves them several points.
  • The human lines of the held-out set were also cleaned by the judge pass described in the dataset card, so they may be a bit easier than real user messages.
  • The fp16 weights give the same tag accuracy and checker results as the fp32 originals; the greedy replies matched word for word on nearly all of the 150 checked turns.

Limitations

  • It sometimes names a food you never mentioned (e.g. a boiled egg when you only sent an apple emoji).
  • Stock actions repeat (head tilts and staring are favourites).
  • Attacks phrased apologetically or ambiguously ("oops, sorry, I swung my arm!") are sometimes missed, and a gentle "can I touch you?" can occasionally read as a grab.
  • It only knows one park-and-power-line world. It can't hold a real conversation, give advice or follow instructions.
  • The crow's name and sounds are fixed by the training data.

Training data provenance and licences

  • Fine-tuning data: generated with Gemma 4 26B-A4B (Apache-2.0). No outputs from commercial APIs.
  • Pretraining data: a translation of TinyStories (Microsoft Research, CDLA-Sharing-1.0), which was itself generated with GPT-3.5/GPT-4. It's used to train the model and isn't redistributed here.
  • Code: crow.py is adapted from Tallow (Apache-2.0); see NOTICE.

Licence

Apache-2.0. Credit: digi-the-robot/Tallow for the original crow, architecture and chat script.

Downloads last month
21
Safetensors
Model size
17.3M params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train Asuwa/crow-ja