Text Generation
GGUF
Bengali
English
llama.cpp
qwen2
bengali
bangla
bilingual
slm
small-language-model
conversational
kotha-lab
Instructions to use logicwahid/Kotha-S2-Instruct-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 logicwahid/Kotha-S2-Instruct-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 logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf logicwahid/Kotha-S2-Instruct-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 logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf logicwahid/Kotha-S2-Instruct-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 logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use logicwahid/Kotha-S2-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "logicwahid/Kotha-S2-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "logicwahid/Kotha-S2-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
- Ollama
How to use logicwahid/Kotha-S2-Instruct-GGUF with Ollama:
ollama run hf.co/logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use logicwahid/Kotha-S2-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
- Lemonade
How to use logicwahid/Kotha-S2-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull logicwahid/Kotha-S2-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Kotha-S2-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Kotha-S2-Instruct (GGUF)
Quantized GGUF builds of Kotha-S2-Instruct (~201.4M parameters), a bilingual (Bengali and English) Small Language Model pretrained from scratch by Kotha Lab on the Qwen2 architecture with a custom 32K bilingual ByteLevel BPE tokenizer.
Designed for fast, offline inference on standard CPUs, Android phones, and edge devices using llama.cpp and compatible runtimes.
- Developed by: Kotha Lab (
logicwahid) - Original Instruct Model:
logicwahid/Kotha-S2-Instruct - Base Model:
logicwahid/Kotha-S2 - Languages: Bengali (
bn), English (en), and Romanized Bengali (Banglish) - License: MIT
Available Quantizations
| File | Quant Type | Approx. Size | Speed (Standard CPU) | Recommendation |
|---|---|---|---|---|
Kotha-S2-Instruct-Q8_0.gguf |
8-bit | ~205.5 MB | ~60 tokens/sec | Recommended — cleanest Bengali & English quality |
Kotha-S2-Instruct-Q6_K.gguf |
6-bit | ~160 MB | ~65 tokens/sec | Balanced size and quality |
Kotha-S2-Instruct-Q4_K_M.gguf |
4-bit | ~125 MB | ~76+ tokens/sec | Smallest footprint for low-RAM Android / edge devices |
Kotha-S2-Instruct-F16.gguf |
16-bit | ~385.5 MB | — | Full FP16 reference build |
Quickstart
1. Run in Terminal (llama-cli)
llama-cli \
-m Kotha-S2-Instruct-Q8_0.gguf \
-c 2048 \
--temp 0.6 \
--top-p 0.9 \
--min-p 0.05 \
--repeat-penalty 1.18 \
-sys "You are Kotha S2, a helpful bilingual Bengali and English AI assistant created by Kotha Lab. Respond clearly, accurately, and naturally in the user's language." \
-p "তুমি কে? তোমাকে কে বানিয়েছে?"
2. Run as an OpenAI-Compatible API (llama-server)
llama-server \
-m Kotha-S2-Instruct-Q8_0.gguf \
--host 0.0.0.0 \
--port 8080 \
-c 4096
3. Mobile & Desktop Apps
Works out of the box with any llama.cpp-based client:
- Android / iOS: PocketPal AI, ChatterUI, Layla
- Desktop: LM Studio, Jan, KoboldCpp, Ollama
Recommended Sampling & Chat Format
| Parameter | Recommended Value |
|---|---|
| Chat Template | ChatML (<|im_start|>, <|im_end|>) |
| Stop Token | <|im_end|> |
| Temperature | 0.6 |
| Top-P | 0.9 |
| Min-P | 0.05 |
| Repeat Penalty | 1.18 |
| Context Length | Up to 8,192 tokens (2,048–4,096 recommended for mobile) |
Limitations
- As a ~201M-parameter model, Kotha-S2-Instruct has limited factual memory compared to larger LLMs and may occasionally hallucinate facts.
- Lower quantizations (
Q4_K_M) may show slight repetition in Bengali; useQ8_0orQ6_Kwhenever memory allows.
Citation
@misc{kotha_s2_instruct_gguf_2026,
title = {Kotha-S2-Instruct (GGUF): Quantized 201M Bilingual Bengali-English SLM},
author = {Kotha Lab},
year = {2026},
url = {[https://huggingface.co/logicwahid/Kotha-S2-Instruct-GGUF](https://huggingface.co/logicwahid/Kotha-S2-Instruct-GGUF)}
}
- Downloads last month
- -
Hardware compatibility
Log In to add your hardware
4-bit
6-bit
8-bit
16-bit
Model tree for logicwahid/Kotha-S2-Instruct-GGUF
Base model
logicwahid/Kotha-S2-Instruct