Instructions to use SmallScale/Simple-Stories-Hindi-20M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SmallScale/Simple-Stories-Hindi-20M-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 SmallScale/Simple-Stories-Hindi-20M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SmallScale/Simple-Stories-Hindi-20M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf SmallScale/Simple-Stories-Hindi-20M-GGUF: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 SmallScale/Simple-Stories-Hindi-20M-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf SmallScale/Simple-Stories-Hindi-20M-GGUF: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 SmallScale/Simple-Stories-Hindi-20M-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
Use Docker
docker model run hf.co/SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use SmallScale/Simple-Stories-Hindi-20M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SmallScale/Simple-Stories-Hindi-20M-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SmallScale/Simple-Stories-Hindi-20M-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
- Ollama
How to use SmallScale/Simple-Stories-Hindi-20M-GGUF with Ollama:
ollama run hf.co/SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
- Unsloth Studio
How to use SmallScale/Simple-Stories-Hindi-20M-GGUF 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 SmallScale/Simple-Stories-Hindi-20M-GGUF 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 SmallScale/Simple-Stories-Hindi-20M-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SmallScale/Simple-Stories-Hindi-20M-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use SmallScale/Simple-Stories-Hindi-20M-GGUF with Docker Model Runner:
docker model run hf.co/SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
- Lemonade
How to use SmallScale/Simple-Stories-Hindi-20M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SmallScale/Simple-Stories-Hindi-20M-GGUF:F16
Run and chat with the model
lemonade run user.Simple-Stories-Hindi-20M-GGUF-F16
List all available models
lemonade list
Simple-Stories-Hindi-22M-GGUF
This repository contains the GGUF quantization (FP16) for SmallScale/Simple-Stories-Hindi-20M, a 22M parameter decoder-only Transformer trained from scratch on Hindi simple stories.
Model Files
| File Name | Quantization | Size | Description |
|---|---|---|---|
Simple-Stories-Hindi-22M-F16.gguf |
F16 (16-bit Float) | ~42.8 MB | Full 16-bit float precision GGUF format |
Model Architecture Details
| Parameter | Value |
|---|---|
| Parameters | 22.3M total (20M non-embedding) |
| Architecture | LLaMA-style (RoPE + SwiGLU + RMSNorm) |
| Context Length | 512 tokens |
Embedding Dim (d_model) |
384 |
| FFN Hidden Dim | 1024 |
| Layers | 10 |
| Attention Heads | 8 |
| Vocabulary | 6,000 (SentencePiece Unigram) |
Quick Start / Usage
1. Using with llama.cpp CLI
./llama-cli -m Simple-Stories-Hindi-22M-F16.gguf \
-p "एक समय की बात है" \
-n 150 \
--temp 0.8 \
--top-k 40 \
--top-p 0.95
2. Using with llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="Simple-Stories-Hindi-22M-F16.gguf",
n_ctx=512,
verbose=False
)
output = llm(
"एक समय की बात है",
max_tokens=150,
temperature=0.8,
top_k=40,
top_p=0.95
)
print(output["choices"][0]["text"])
3. Using in Browser (WebAssembly / Wllama)
Try the live browser demo powered by WebAssembly & WebGPU: SmallScale/simple-stories-20m-webgpu
License
MIT
- Downloads last month
- -
Hardware compatibility
Log In to add your hardware
16-bit
Model tree for SmallScale/Simple-Stories-Hindi-20M-GGUF
Base model
SmallScale/Simple-Stories-Hindi-20M