← All articles

TFree-HAT: six models, two training lineages

HAT’s byte encoder and word-level backbone span Llama-adapted and from-scratch models, with distinct contexts, results and licence conditions.

Updated:

TFree-HAT: byte encoding with a word-level backbone

HAT combines a byte-level encoder, a word-level autoregressive Transformer and a byte-level decoder. Learned cross-attention connects the components. A fixed 256-value byte alphabet replaces a learned subword vocabulary; segmentation uses Unicode-derived boundaries with adaptations for whitespace, punctuation and code.

Two training routes

The adapted route reuses Llama 3.1 backbones and trains new byte-level components. The nominal 8B line has about 7.19 billion parameters and Base, SFT and DPO editions. The 70B SFT model has about 69.3 billion parameters.

The separate 7B line trains from scratch on nearly four trillion words, followed by 10.5 billion words of long-context adaptation. Its Base and DPO models also have about 7.19 billion parameters. The DPO name includes Llama because Llama 3.3 helps filter training data.

The adapted 8B models initially train on 134 billion words. Long-context totals conflict: model cards give 84 billion words, while the technical report gives 20 billion. The 70B route uses 108 billion initial words and 10.2 billion additional long-context words.

Context units

  • Llama 3.1 8B Base — Word-level positions: 32,900; Byte-level positions: 262,144
  • Llama 3.1 8B SFT / DPO — Word-level positions: 32,768; Byte-level positions: 262,144
  • Llama 3.1 70B SFT — Word-level positions: 12,288; Byte-level positions: 98,304
  • From-scratch 7B Base — Word-level positions: 32,900; Byte-level positions: 262,144
  • From-scratch 7B DPO — Word-level positions: 20,480; Byte-level positions: 163,840

These units differ from conventional subword tokens. The 8B card’s shared table gives 32,900 words even for SFT/DPO, conflicting with their configurations. The 70B long-context training phase uses 16,000 words, exceeding its released configuration.

Instruction behavior and results

SFT adds instruction supervision; DPO adds preference optimization. The primarily English–German training supports generation, summarization, classification, question answering and labeling. Post-training includes Qwen synthetic responses, Mistral translation and answer generation, Llama 3.3 quality filtering and human-created data.

The publisher’s five-shot German MMMLU normalized log-accuracy is 0.591 for adapted 8B Base, 0.595 for SFT, 0.598 for DPO, 0.715 for 70B SFT, 0.618 for from-scratch Base and 0.610 for its DPO edition. These results use the publisher’s evaluation implementation. Code and mathematics are not specialist training targets.

Running and licensing

Weights use a custom Transformers-compatible implementation; the publisher also describes a vLLM fork. The historical 7B training checkpoints support analysis of learning dynamics.

Open Aleph License 1.0 permits qualifying non-commercial and non-administrative use with an academic exception. It excludes commercial product development and ordinary government administration, law enforcement and court use. Redistribution requires notices; derivatives require modification notices, source and the same licence.

Llama-derived editions also retain Meta’s attribution, NOTICE, Built with Llama, naming and acceptable-use conditions. The from-scratch DPO card has mixed Llama 3.3 and Llama 3.1 references whose full rights relationship is unresolved.

Original sources