Analytical weight editing of MiniMind2 Q4

These three standalone GGUF checkpoints document an experiment on English generation in MiniMind2, a model with about 104 million parameters. Each file is 63,656,672 bytes. R3 reduced repetitive output on a development set while sharply worsening story perplexity. R4 reversed that perplexity loss. R5-pilot obtained the lowest story perplexity, with mixed results on grammar and causal choice. Research paper · LaTeX source, methods and evidence

Results

All accuracies are counts of correct answers. TinyStories perplexity is lower for better next-token prediction.

Checkpoint TinyStories validation PPL, 21,990 stories BLiMP, /67,000 COPA test, /500 Strict English, /96 Exact copying, /72
Upstream Q4, tokenizer aligned 24.524 39,658 252 0 0
R3 214.478 36,571 253 7 47
R4 17.615 40,210 253 9 48
R5-pilot 11.981 39,900 251 12 52

Candidate selection used the strict English and copying prompts, public benchmark subsets, and findings from earlier full evaluations. TinyStories training text supplied calibration data. The TinyStories result measures prediction of other stories in the same domain. In a separate check written after the R5 weights were frozen, R4 and R5-pilot answered 4 and 5 of 40 questions with reference answers. R5-pilot gained two answers and lost one. Among all 48 prompts in that check, both produced zero empty responses and zero responses flagged by the repetition detectors. These detectors look for recurring word or character sequences and can miss semantic repetition. Causal reasoning, free-form English fluency and reliable tool use remain open problems.

How the files were produced

The starting file was Jingyao Gong's Q4-MiniMind2.gguf. The author GGUF identifies its pretokenizer as qwen2. Switching the five-byte value to gpt-2 aligned the evaluation prompts with the author's tokenizer while preserving the tensor payload. This corrected file is the baseline in the table. Pinned upstream release

  • R3 built on earlier lexical, normalization and response-termination edits. It changed the output projection of the final MLP (blk.15.ffn_down.weight) relative to R2. Logit-margin constraints on frozen activations targeted looping, word extraction and exact copying. Several reference answers and copy examples supplied targets.
  • R4 used corpus statistics from 400 TinyStories training stories and lexical preferences from a frozen sentence encoder. The final MLP was adjusted while protecting selected response trajectories. Sentence encoder
  • R5-pilot started from the released R4. It combined short-sequence frequencies and next-token predictions from a frozen teacher across different tokenizers, then added a calibration for causal connectives, changed attention input scales in eight blocks and imposed margin constraints for protected responses. Nine tensors differ from R4. Frozen TinyStories-33M teacher

The edits used data, target responses and analytical fitting without a gradient optimizer. Inference uses one GGUF and has no external teacher dependency.

Download and run

Choose one checkpoint from the table. For example, the following commands download R5-pilot and start a short greedy chat in llama.cpp.

hf download rexarrior/MiniMind2-English-Analytical-Repair-GGUF MiniMind2-Q4-English-R5-pilot.gguf --local-dir .
llama-completion -m MiniMind2-Q4-English-R5-pilot.gguf -cnv \
    -sys 'You are a helpful assistant' -p 'Repeat exactly: crystal morning' \
    -n 24 --temp 0 --repeat-penalty 1

This example uses the embedded chat template. The internal scores above use the study's prompt template and a 96-token generation cap. The paper describes both templates.

Provenance and checksums

Jingyao Gong and the MiniMind contributors created the original model. Rexarrior published the modified checkpoints for this research. The upstream model repository specifies Apache License 2.0. Upstream model card · License · SHA-256 checksums for the three downloads

Starting artifact SHA-256
Upstream Q4 e0e4592d6015327dbf1a71b8572284becd59e03344a3a4bc1365932ad7efa22e
Tokenizer-aligned Q4 baseline 5c504e6e2ecb8fd0bc425580951f0069cceabd01e794465bb26dc7ee57234cd8
Downloads last month
155
GGUF
Model size
0.1B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for rexarrior/MiniMind2-English-Analytical-Repair-GGUF

Quantized
(1)
this model