MicroBot Scratch

MicroBot is a 2,157,696-parameter decoder-only Transformer initialized with random weights and trained from scratch on 27 self-authored conversation examples. It does not use a pretrained base model or hosted inference service.

Intended use

This checkpoint is an educational experiment for exploring the mechanics of training a language model from random initialization. It is not a capable general-purpose assistant or a reliable MicroPython coding model. The small dataset mostly covers simple MicroPython examples and a few general explanations. It has no live web access by itself; web search is implemented in the separate MicroBot application.

Limitations

This is a very small experimental model. Its limited parameter count and tiny training corpus produce weak, often incoherent generations. It may produce incorrect or unsafe code. Do not rely on it for factual, educational, or hardware guidance without checking its output. It has not been evaluated on held-out data or benchmarks. Publication makes the checkpoint downloadable; it does not imply that it meets production or assistant quality expectations.

Training

  • Training data: 27 self-authored conversations in the MicroBot starter corpus.
  • Architecture: GPT-2-style causal language model; 4 layers, width 192, vocabulary size 1,584.
  • Training: 60 epochs on a Mac CPU, starting from random initialization.
  • Pretrained base model: none.

Load with Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "psandilya1440/microbot-scratch"  # replace if you publish under another repository name
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

prompt = (
    "<|bos|><|system|>\nYou are MicroBot. Coding help is MicroPython only.\n"
    "<|user|>\nExplain what a GPIO pin does.\n<|assistant|>\n"
)
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=80, do_sample=False)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Generation quality is poor and may be incoherent; this example demonstrates loading only, not a recommended production workflow.

Downloads last month
-
GGUF
Model size
2.16M params
Architecture
gpt2
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