tiny-lm-8M GGUF (original and instruction-tuned; Q8_0 and Q4_0)

GGUFs of sixf0ur/tiny-lm-8M (commit e9b3815b72efdc9e97c17e292121b641e200d58c) for llama.cpp, quantized to Q8_0 (and the instruction-tuned one also to Q4_0). Made for a university SoC design project (ECE382M, UT Austin), where it runs on an FPGA accelerator for Q8_0 matrix-vector products.

Credit and license: the base model, its weights and tokenizer are by sixf0ur, under CC BY 4.0. The fine-tune also uses text from sixf0ur/nano_wiki (CC BY 4.0).

File What it is Size SHA-256
tiny-lm-8M-Q8_0.gguf The original model, converted; 256-token context, no chat template 8,960,448 bytes d2227b07595c0129be6066c0f6c6b552357d5c2a80c308ee8d2eb4af4a4b8733
tiny-lm-8M-ft-Q8_0.gguf Instruction-tuned: follows simple formatting instructions; 512-token context; plain-text chat template 8,960,128 bytes ac0e48a60ae9bf4a8a9f27333d140a37612411be5e0293b334e175353c38c470
tiny-lm-8M-ft-Q4_0.gguf The same instruction-tuned model in Q4_0, quantized from its f32 weights (not from the Q8_0 file). Every matrix is Q4_0, output.weight and token_embd.weight included (--output-tensor-type q4_0); the norms stay f32 4,794,496 bytes 1387254ca7a3e88608c6b0d6993c0467909ba44bfcec9ac283e29f8dc6da6155

The instruction-tuned file

A full fine-tune of all 8.4 M parameters, 2 epochs, on:

  • 33,000 synthetic instruction examples generated for this: an instruction about a topic with one or two formatting rules (exact sentence, paragraph, bullet or line counts; word ranges; lowercase or uppercase; no commas; forbidden or required words; a given start or end; quotes; JSON with given keys; a <<title>>; per-line patterns), answered with sentences from that topic's nano_wiki article and transformed to follow the rules. Every response was checked automatically against its rules.
  • About 4,000 plain-text chunks of nano_wiki, to keep it fluent and to train the 512-token context.

The chat template renders the conversation as plain text (the user's message, a newline, then the reply), the format it was trained on.

It is still an 8 M model: it follows the form of an instruction, but what it writes is often wrong or loosely related to the question. It has little world knowledge.

Q4_0 against Q8_0

On the course benchmark (50 items: HellaSwag, ARC-Easy, IFEval-style; x86 llama-server, five item samples, seeds 42, 1, 2, 3, 4):

File Mean Range HellaSwag ARC-Easy IFEval
tiny-lm-8M-ft-Q8_0.gguf 30.6 25.2 to 34.3 22.7 18.9 70
tiny-lm-8M-ft-Q4_0.gguf 28.3 22.9 to 31.3 22.4 18.3 60

Q4_0 loses most on the instruction-following part. It is 46% smaller.

Downloads last month
317
GGUF
Model size
8.34M params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Tractorman/tiny-lm-8M-Q8_0-GGUF

Quantized
(2)
this model