llm-demo

Tiny from-scratch Llama models and the trainer that makes them (formerly scratch-demo).

  • training/ - Tiny LLM Trainer v5.2 (modular; see training/modules.json). Paste the cell from training/README.md into Kaggle.
  • datasets/english/ - twitter_chat_113000.txt and twitter_chat_115000.txt (refreshed from GitHub; one message per line, conversations separated by blank lines β†’ STORY_SEPARATOR = "blank_line").
  • datasets/english/chat_76m_words.txt - 76,000,008 words / 485,943 conversations of English chat (~416 MB): SODA (allenai/soda, CC-BY-4.0) 56,999,907 words + UltraChat (HuggingFaceH4/ultrachat_200k, MIT) 18,885,191 words + the Twitter chat 114,910 words, shuffled (seed 1234). One turn per line, no speaker labels, conversations separated by 3 blank lines β†’ STORY_SEPARATOR = "blank_line". Note: datasets/english/ now holds 3 files; link a file directly to train on just one.
  • datasets/karbi/ - Karbi (mjw) text copied from jor-t/datasets karbi/ (~550k unique words, mostly news); sources and licences in datasets/karbi/README.md.
  • models/tiny5m/ - first demo model (~5.9M params): HF weights, tokenizer, tiny5m-q8_0.gguf and its Ollama Modelfile.
  • misc/ - llm_bench.py: llama.cpp GPU speed test + prompt tool for Kaggle (see misc/README.md).
  • bin/llama.cpp/ - shared prebuilt llama.cpp CUDA programs for Kaggle T4 (bench, completion, cli, server, quantize), named <tag>-<cuda>-sm75[-fa] with a .json manifest (see bin/llama.cpp/README.md).

Each folder has its own README: datasets/english/, datasets/karbi/, models/tiny5m/, and training/ (plus one per subfolder).

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

8-bit

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