Instructions to use Abiray/MicroLlama-134M-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Abiray/MicroLlama-134M-Instruct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Abiray/MicroLlama-134M-Instruct", filename="MiniLlama-134M-Instruct-v2-F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Abiray/MicroLlama-134M-Instruct with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Abiray/MicroLlama-134M-Instruct:F16 # Run inference directly in the terminal: llama-cli -hf Abiray/MicroLlama-134M-Instruct:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Abiray/MicroLlama-134M-Instruct:F16 # Run inference directly in the terminal: llama-cli -hf Abiray/MicroLlama-134M-Instruct:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Abiray/MicroLlama-134M-Instruct:F16 # Run inference directly in the terminal: ./llama-cli -hf Abiray/MicroLlama-134M-Instruct:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Abiray/MicroLlama-134M-Instruct:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Abiray/MicroLlama-134M-Instruct:F16
Use Docker
docker model run hf.co/Abiray/MicroLlama-134M-Instruct:F16
- LM Studio
- Jan
- Ollama
How to use Abiray/MicroLlama-134M-Instruct with Ollama:
ollama run hf.co/Abiray/MicroLlama-134M-Instruct:F16
- Unsloth Studio
How to use Abiray/MicroLlama-134M-Instruct with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Abiray/MicroLlama-134M-Instruct to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Abiray/MicroLlama-134M-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Abiray/MicroLlama-134M-Instruct to start chatting
- Docker Model Runner
How to use Abiray/MicroLlama-134M-Instruct with Docker Model Runner:
docker model run hf.co/Abiray/MicroLlama-134M-Instruct:F16
- Lemonade
How to use Abiray/MicroLlama-134M-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Abiray/MicroLlama-134M-Instruct:F16
Run and chat with the model
lemonade run user.MicroLlama-134M-Instruct-F16
List all available models
lemonade list
π¦ MicroLlama-134M-Instruct
MicroLlama-134M-Instruct is a custom-trained Small Language Model (SLM) created by Abhiray (Jay). Built using a scaled-down Llama architecture, this model is designed to be highly efficient, lightweight, and can try to conversational instruction-following.
π§ Model Details
- Parameters: 134 Million
- Architecture: Custom Llama (12 Layers, 12 Heads, 768 Embedding Dimension, 2048 Intermediate Size)
- Context Length: 1024 Tokens
- Precision:
bfloat16 - Tokenizer: TinyLlama-1.1B-Chat-v1.0 (32,000 Vocab)
ποΈ Training Pipeline
This model was trained entirely from scratch in three distinct phases:
- Phase 1 & 2: Continuous Pre-Training (CPT): Trained on ~9 Billion tokens of high-quality web, educational, and narrative data.
- Phase 3: Supervised Fine-Tuning (SFT): Fine-tuned for 250 high-precision steps using
-100target masking.
π» How to Use
The model strictly follows the ChatML-style template used during its SFT phase. For optimal performance, a generation temperature between 0.3 and 0.5 with a gentle repetition_penalty (e.g., 1.05) is recommended.
Prompt Format:
<|system|>
You are a highly capable, friendly, and helpful AI assistant.</s>
<|user|>
What is the core temperature of the Sun?</s>
<|assistant|>
- Downloads last month
- 9
docker model run hf.co/Abiray/MicroLlama-134M-Instruct:F16