Downloads ยท 30 days
19
6% of all-time downloads
Abhinav-Tyagi/synapse-slm
synapse-slm is a text generation model from Abhinav-Tyagi. Use it when you need the model to write or continue text. The card lists the license as mit.
Built by Abhinav Tyagi ๐ GitHub โข ๐ LinkedIn โข ๐ง Live Demo
Downloads ยท 30 days
19
6% of all-time downloads
All-time downloads
295
Public
Repo size
6.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf6.4 GB ยท 100%
From the Hugging Face model README
Built by Abhinav Tyagi
๐ GitHub โข ๐ LinkedIn โข ๐ง Live Demo
Synapse SLM is a QLoRA fine-tuned Llama-3.2-3B model optimized for:
This is not a wrapper around an API โ it runs fully locally, inside ~4GB RAM, at ~45 tokens/sec on CPU.
| Property | Value |
|---|---|
| Base Model | Llama-3.2-3B-Instruct |
| Fine-tuning Method | QLoRA (rank=16, alpha=32) |
| Quantization | 4-bit GGUF via llama.cpp |
| Inference Speed | ~45 tokens/sec (CPU-only) |
| RAM Footprint | ~4GB |
| Training Data | 3,500+ Hinglish instruction samples |
| Languages | English, Hindi, Hinglish |
| Deployment | Docker containerized |
Fine-tuned with rank=16, alpha=32 on 3,500+ Hinglish instruction samples. The training objective wasn't just language โ it was behavioral engineering: teaching the model when to explain, when to commit, and how to handle Hindi-English code-switching naturally.
Fine-tuning doesn't just improve answers โ it rewires behavior. The training signal determines what feels "safe" to the model: explain vs. hedge, commit vs. qualify, answer vs. avoid.
Converted to GGUF format using llama.cpp. Achieves ~45 tokens/sec on CPU-only hardware within a ~4GB RAM footprint โ making it deployable on any laptop without GPU.
Implements embedding-based retrieval for local PDF/TXT ingestion. Supports context-aware responses without any cloud API dependency โ fully air-gapped.
Trained specifically on Hindi-English mixed language patterns. Handles natural Hinglish input without requiring language detection or preprocessing.
During development, Abhinav Tyagi trained two variants from the same base model to study behavioral drift:
Key finding: Same architecture. Same tokenizer. Same base weights. Only the training signal differed โ yet the behavioral output was completely different.
Model B wasn't hallucinating. It was over-aligned. And still useless.
Alignment without usability collapses into abstraction. Reasoning without explanation helps no one.
This study shaped Synapse's training philosophy: reasoning must serve explanation, not replace it.
# Install llama.cpp
pip install llama-cpp-python
# Run inference
from llama_cpp import Llama
llm = Llama(
model_path="synapse-slm-q4.gguf",
n_ctx=2048,
n_threads=8
)
response = llm(
"Bhai, explain karo gradient descent kya hota hai",
max_tokens=512,
temperature=0.7
)
print(response['choices'][0]['text'])
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained("Abhinav-Tyagi/synapse-slm")
model = AutoModelForCausalLM.from_pretrained(
"Abhinav-Tyagi/synapse-slm",
torch_dtype=torch.float16,
device_map="auto"
)
inputs = tokenizer("Explain neural networks simply", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
git clone https://github.com/abhinavtyagi466/synapse-slm
cd synapse-slm
docker compose up
# Access at http://localhost:7860
Base Model : meta-llama/Llama-3.2-3B-Instruct
Method : QLoRA
LoRA Rank : 16
LoRA Alpha : 32
Dataset Size : 3,500+ instruction pairs
Languages : English + Hindi + Hinglish
Quantization : 4-bit GGUF (llama.cpp)
Inference : ~45 tokens/sec on CPU
RAM : ~4GB footprint
Deployment : Docker containerized
RAG : Offline PDF/TXT ingestion via dense embeddings
Synapse includes a fully offline RAG system:
/docs folderNo internet required. No API keys. Fully private.
| Metric | Value |
|---|---|
| Inference Speed (CPU) | ~45 tokens/sec |
| RAM Usage | ~4GB |
| Quantization | 4-bit GGUF |
| Hinglish Fluency | Improved via targeted instruction tuning |
| Context Window | 2048 tokens |
Abhinav Tyagi is an LLM Engineer specializing in fine-tuning, quantization, and deployment of production-ready AI systems. He also built:
๐ง [email protected]
๐ GitHub
๐ผ LinkedIn
MIT License โ free to use, modify, and distribute with attribution.
"Building AI that works offline, works fast, and actually works."
โ Abhinav Tyagi