Instructions to use SmallAICreator/TinyGPT-60m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SmallAICreator/TinyGPT-60m with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SmallAICreator/TinyGPT-60m", filename="tinygpt-sft-f32.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SmallAICreator/TinyGPT-60m 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 SmallAICreator/TinyGPT-60m:F32 # Run inference directly in the terminal: llama cli -hf SmallAICreator/TinyGPT-60m:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SmallAICreator/TinyGPT-60m:F32 # Run inference directly in the terminal: llama cli -hf SmallAICreator/TinyGPT-60m:F32
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 SmallAICreator/TinyGPT-60m:F32 # Run inference directly in the terminal: ./llama-cli -hf SmallAICreator/TinyGPT-60m:F32
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 SmallAICreator/TinyGPT-60m:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SmallAICreator/TinyGPT-60m:F32
Use Docker
docker model run hf.co/SmallAICreator/TinyGPT-60m:F32
- LM Studio
- Jan
- Ollama
How to use SmallAICreator/TinyGPT-60m with Ollama:
ollama run hf.co/SmallAICreator/TinyGPT-60m:F32
- Unsloth Studio
How to use SmallAICreator/TinyGPT-60m 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 SmallAICreator/TinyGPT-60m 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 SmallAICreator/TinyGPT-60m to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SmallAICreator/TinyGPT-60m to start chatting
- Atomic Chat new
- Docker Model Runner
How to use SmallAICreator/TinyGPT-60m with Docker Model Runner:
docker model run hf.co/SmallAICreator/TinyGPT-60m:F32
- Lemonade
How to use SmallAICreator/TinyGPT-60m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SmallAICreator/TinyGPT-60m:F32
Run and chat with the model
lemonade run user.TinyGPT-60m-F32
List all available models
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
TinyGPT-60M
A compact 60M parameter language model trained from scratch for efficient local inference.
Model Details
Architecture: GPT-2-style transformer
Parameters: 60M
Training Data: SlimPajama + Wikipedia + conversation examples
Training Method: Supervised fine-tuning with heavy overtraining (~10x Chinchilla-optimal)
Inference Speed: 45-55 tokens/second on mobile (Pixel 6a)
What It Does Well
- Definitions & Explanations: Clean, coherent answers to "What is X?" questions
- Factual Recall: Simple closed-ended Q&A with known answers
- Clean Output: Proper grammar, no word salad, stays on topic for short contexts
- Local Inference: Runs entirely on-device with minimal memory footprint (250MB GGUF)
What It Doesn't Do
- Multi-step Reasoning: Can't chain logic across multiple steps
- Long-form Coherence: Struggles past ~150 tokens, starts repeating itself
- Code Generation: Will produce syntactically valid but semantically broken code
- Memory: No context retention between turns β each prompt is fresh
- Binary Choices: "A or B?" questions tend to confuse it
- Factual Consistency: May hallucinate or default to generic templates (e.g., confident George Washington is still president)
Best Practices
β Use for: Single-turn Q&A, definitions, summarization, chat assistants with short responses
β Don't use for: Sustained reasoning, code you'll actually run, factual lookups without verification
Capabilities by Task
| Task | Works? | Notes |
|---|---|---|
| Simple math (2+2) | β | Single-step only |
| Definitions | β β | Strong β this is the sweet spot |
| Stories | β οΈ | Coherent for 2-3 sentences, then loops |
| Lists/Recipes | β | Degrades into repetition |
| Code | β | Valid syntax, broken logic |
| Multi-turn chat | β οΈ | No memory between turns |
Limitations
This is a tiny model. It's genuinely impressive for its size β most 60M parameter models produce incoherent garbage. But it hits hard capability walls:
- No working memory: Can't track context across paragraphs
- No reasoning: Pattern matches instead of thinks
- Repetition-prone: Open-ended generation loops on high-probability tokens
- Hallucination: Confident wrong answers (it's trained to sound coherent, not correct)
Use Cases
- Education: Demo how language models actually work under the hood
- Local chat: Privacy-first inference on your device
- Mobile app: Base model for custom fine-tuning or RAG
- Research: Baseline for studying small model behavior and scaling
Running It
# With llama.cpp
llama serve -hf SmallAICreator/TinyGPT-60m:F32
# With Ollama
ollama run hf.co/SmallAICreator/TinyGPT-60m:F32
# With Python
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="SmallAICreator/TinyGPT-60m",
filename="tinygpt-sft-f32.gguf",
)
- Downloads last month
- 11
32-bit