Instructions to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sam-llm-dev/Llama-3.2-1B-SAM-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF 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 sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
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 sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Use Docker
docker model run hf.co/sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Ollama:
ollama run hf.co/sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Docker Model Runner:
docker model run hf.co/sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
- Lemonade
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3.2-1B-SAM-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sam-llm-dev/Llama-3.2-1B-SAM-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "sam-llm-dev/Llama-3.2-1B-SAM-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Llama-3.2-1B-SAM (Small Assistant Model)
Built with Llama
Llama-3.2-1B-SAM is a QLoRA fine-tuned derivative of meta-llama/Llama-3.2-1B-Instruct engineered for fast, low-VRAM, fact-dense educational explanations.
Overview & Purpose
- Low-VRAM Footprint: Optimized to run smoothly on modest consumer hardware, edge devices, and mobile environments without heavy overhead.
- Teaching Focus: Fine-tuned to break down concepts clearly and concisely for students and educators.
Benchmarks & Evaluation
Model Variant Without Python (Standard) With Python (Code Interpreter) Llama-3.2-1B-SAM-v1.0-F16.gguf35.0% (7/20) 40.0% (8/20) Llama-3.2-1B-SAM-v1.0-Q8_0.gguf25.0% (5/20) 40.0% (8/20) Llama-3.2-1B-SAM-v1.0-Q4_K_M.gguf20.0% (4/20) 20.0% (4/20) - I ackknowledge that these results are not optimal and I will attempt to try to improve scores, but for now, these models should not be relied on for maths.
- Roadmap (v2.0): A Retrieval-Augmented Generation (RAG) pipeline paired with a Python calculator/code-execution tool is currently in development to verify facts and push performance further.
Hardware Requirements (VRAM / RAM)
| Quantization Format | Precision | Approximate VRAM / RAM Needed |
|---|---|---|
| FP16 | 16-bit | ~2.5 GB – 3.0 GB |
| Q8_0 | 8-bit | ~1.5 GB – 2.0 GB |
| Q4_K_M | 4-bit | ~1.0 GB – 1.3 GB |
(Note: These estimates include overhead for the context window. Running with GPU offloading will require the corresponding VRAM; otherwise, system RAM will be used.)
Changelog
- v1.1: Used a deduplicated training set for more variety in fine tuning.
License & Acceptable Use
This model is governed by the Llama 3.2 Community License Agreement (included in the LICENSE file) and Meta's Acceptable Use Policy.
Contact & Feedback
For research inquiries, collaboration, or feedback, open a thread in the Community tab or email: samllmdev@gmail.com
- Downloads last month
- 606
4-bit
8-bit
16-bit
Model tree for sam-llm-dev/Llama-3.2-1B-SAM-GGUF
Base model
meta-llama/Llama-3.2-1B