Text Generation
Safetensors
English
kefir
mixture-of-experts
gated-deltanet

Kefir 1 Base

Kefir 1 Base is the checkpoint after 310,000 next-token updates, trained by Edoardo Avenia and Rocco Angelella. It continues raw English text and is the pretrained ancestor of the conversational release. The hybrid decoder has 144,074,648 parameters, 9,987,992 active per token and a 2,048-token context.

Use the checkpoint

The weights run through the Kefir CLI in the GitHub repository, not through transformers. Use Python 3.12 or newer and uv. The download is one FP32 Safetensors file (576,329,232 bytes) containing the runtime configuration and tokenizer hash.

git clone https://github.com/ABCastor/kefir-1 && cd kefir-1
uv sync --locked --extra hf
uv run hf download abcastor/kefir-1-base model.safetensors --local-dir weights/kefir-1-base
uv run kefir generate --weights weights/kefir-1-base/model.safetensors --prompt "Once upon a time"

File SHA-256 is 11ca59f45f8ebcfd019ed5a027198d6adb549502e3d118a031f4bec8931888ac.

Training and evaluation

Training read the Kefir 1 pretraining corpus, tokenized with the SuperBPE 8k English tokenizer. 280,000 BF16 updates were followed by a 30,000-update cosine learning-rate cooldown on the same stream. Each update covers 131,072 targets, for 40,632,320,000 targets in total, including end-of-document padding.

Logged pretraining and validation loss over 40.63 billion target positions. Validation loss reaches 2.530763 nats per target.

The band shows training loss variability within 250-update bins. Training and validation use distinct text.

Measure Before cooldown Released checkpoint
Cross-entropy on 2,097,152 held-out targets (nats per target, BF16 logs) 2.638766 2.530763
Teacher-forced bits per byte on 384 held-out documents (CPU FP32) 0.931155 0.904261

One pretraining run supplied both checkpoints, with one seed and no constant-rate control, so the gain mixes extra training tokens with the change in schedule. In free-generation probes, none of 95 continuations ended with the end-of-document token within 48 tokens.

Limits and licence

Use this checkpoint for research on pretraining or as a fine-tuning starting point. It has no chat or safety tuning, and its continuations may be wrong, biased or offensive.

The weights are licensed CC BY-NC 4.0; the code and tokenizer are MIT. The pretraining text comes from NVIDIA Nemotron-ClimbMix (CC BY-NC 4.0), filtered and re-tokenized. Details are in this repository's NOTICE.

Questions: GitHub issues.

Related: GitHub · Kefir 1 · Pretraining corpus

Chip, the Castor beaver, by Castor, we give a dam

Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
I64
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for abcastor/kefir-1-base

Finetunes
1 model

Datasets used to train abcastor/kefir-1-base