MiniMind-Dense-64M-Mixed-SFT-v1.0
Version: v1.0. Final 2-epoch mixed SFT checkpoint, released 2026-10-25. Architecture: MiniMind Dense, 63,912,192 parameters, hidden size 768, 8 layers, vocabulary 6400. FP16 safetensors; tied embeddings. This is an experimental English model, not a reliable reasoning assistant.
Training
Full-document pretraining on FineWeb-Edu sample/10BT filtered by score >= 3.5, 2 epochs. 340-token windows, stride 339; incomplete final pretraining window per document dropped. Mixed SFT: UltraChat train_sft (207,865 conversations), SmolTalk all/train (1,020,912), GSM8K main/train (6,851), after deduplication and held-out prompt exclusion. Total 1,235,628 conversations / 5,396,469 windows per epoch. Natural mixture, no oversampling. SFT length 340, stride 256; overlapping labels masked; final short windows padded so assistant targets and EOS are retained. Assistant-only loss; 2 epochs, 84,320 optimizer updates; BF16; effective batch 128; peak LR 5e-5. Exact held-out prompt and GSM8K-question substring checks were applied; paraphrase-level or pretraining decontamination is not guaranteed. Each source's license/terms still apply; Apache-2.0 identifies this model/code release, not a relicensing of source datasets. Architecture code derived from https://github.com/jingyaogong/minimind (Apache-2.0).
Evaluation and limitations
Assistant-only validation PPL: 11.7068 → 3.7949 (512 fixed windows per source).
GSM8K main/test, all 1,319 questions, zero-shot greedy: 15/1319 (1.14%) with strict final #### number scoring.
Last-number fallback: 23/1319. See evaluation.json for before/after metrics.
Evaluation uses maximum total context 340 and up to 256 new tokens. Short context/output limits can truncate solutions.
Outputs can contain repetition, factual errors, incorrect arithmetic and failure to follow instructions. Low PPL does not demonstrate reasoning accuracy.
The architectural position buffer permits longer contexts, but training used length 340; longer context quality is unvalidated.
Usage
Install requirements.txt. Review model_minimind.py before enabling custom code. The prompt template must remove the empty thinking block to match SFT preprocessing.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "caspar/MiniMind-Dense-64M-Mixed-SFT-v1.0"
tokenizer = AutoTokenizer.from_pretrained(repo, revision="v1.0")
model = AutoModelForCausalLM.from_pretrained(
repo, revision="v1.0", trust_remote_code=True,
torch_dtype=torch.float32,
).eval()
text = tokenizer.apply_chat_template(
[{"role": "user", "content": "Why is the sky blue?"}],
tokenize=False, add_generation_prompt=True, open_thinking=False,
).replace('<think>
</think>
', '')
x = tokenizer(text, return_tensors="pt", add_special_tokens=False).input_ids
assert x.shape[1] < 340
with torch.inference_mode():
y = model.generate(inputs=x, max_new_tokens=min(128, 340-x.shape[1]),
do_sample=False, temperature=1., top_p=1., top_k=0,
repetition_penalty=1., eos_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(y[0, x.shape[1]:], skip_special_tokens=True))
The repo contains inference weights, configuration, tokenizer, custom model code, license, minimal dependency list and evaluation summary only. No optimizer states, training datasets, W&B logs or credentials.