Instructions to use PSANDILYA1440/MicroBot_V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PSANDILYA1440/MicroBot_V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PSANDILYA1440/MicroBot_V1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PSANDILYA1440/MicroBot_V1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use PSANDILYA1440/MicroBot_V1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0 # Run inference directly in the terminal: llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0 # Run inference directly in the terminal: llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0
Use Docker
docker model run hf.co/PSANDILYA1440/MicroBot_V1:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use PSANDILYA1440/MicroBot_V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PSANDILYA1440/MicroBot_V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PSANDILYA1440/MicroBot_V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PSANDILYA1440/MicroBot_V1:Q8_0
- SGLang
How to use PSANDILYA1440/MicroBot_V1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "PSANDILYA1440/MicroBot_V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PSANDILYA1440/MicroBot_V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "PSANDILYA1440/MicroBot_V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PSANDILYA1440/MicroBot_V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use PSANDILYA1440/MicroBot_V1 with Ollama:
ollama run hf.co/PSANDILYA1440/MicroBot_V1:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use PSANDILYA1440/MicroBot_V1 with Docker Model Runner:
docker model run hf.co/PSANDILYA1440/MicroBot_V1:Q8_0
- Lemonade
How to use PSANDILYA1440/MicroBot_V1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull PSANDILYA1440/MicroBot_V1:Q8_0
Run and chat with the model
lemonade run user.MicroBot_V1-Q8_0
List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0# Run inference directly in the terminal:
llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0# Run inference directly in the terminal:
./build/bin/llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0Use Docker
docker model run hf.co/PSANDILYA1440/MicroBot_V1:Q8_0MicroBot 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
- -
8-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf PSANDILYA1440/MicroBot_V1:Q8_0# Run inference directly in the terminal: llama cli -hf PSANDILYA1440/MicroBot_V1:Q8_0