Downloads · 30 days
5
10% of all-time downloads
SomDutt/som-tripathi-phi3-4k-indiangk
som-tripathi-phi3-4k-indiangk is a text generation model from SomDutt. Use it when you need the model to write or continue text. The card lists the license as mit.
som-tripathi-phi3-4k-indiangk is a lightweight, highly optimized, English-only fine-tuned model based on Microsoft's Phi-3-mini-4k-instruct architecture.
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
51
Public
Repo size
4.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.3 GB · 100%
From the Hugging Face model README
som-tripathi-phi3-4k-indiangk is a lightweight, highly optimized, English-only fine-tuned model based on Microsoft's Phi-3-mini-4k-instruct architecture.
The model has been explicitly trained on a specialized, curation-grade dataset of structured historical facts covering ancient, medieval, and modern Indian history. Thanks to strict masking techniques applied during training, the model responds with direct, high-accuracy factual outputs while preventing repetition or conversation loops.
Q4_K_M), making it incredibly fast and perfect for running locally on weak hardware, laptops, or mobile devices via Ollama, LM Studio, or Llama.cpp.unsloth with output-only response masking to prevent common factual hallucinations and question-repetition issues.You can easily pull this GGUF file and run it inside your local Ollama environment.
Save the downloaded GGUF file (som-phi-gk.Q4_K_M.gguf) in a directory, and create a file named Modelfile (without any extension) next to it with the following configuration:
FROM ./som-tripathi-phi3-4k-indiangk.gguf
# Explicit ChatML Template configuration for Phi-3
TEMPLATE """{{ if .System }}<|system|>
{{ .System }}<|end|>
{{ end }}{{ if .User }}<|user|>
{{ .User }}<|end|>
{{ end }}<|assistant|>
{{ .Output }}<|end|>"""
# Hardstop parameters to prevent model spillover
PARAMETER stop "<|end|>"
PARAMETER stop "<|user|>"
PARAMETER stop "<|assistant|>"
PARAMETER stop "<|system|>"
PARAMETER stop "<|end_of_text|>"
# Conservative sampling for precise factual recovery
PARAMETER temperature 0.3
PARAMETER top_p 0.9
# Hardcoded English System Instructions
SYSTEM "You are a strict English-only assistant. You must answer accurately based on historical facts. Provide a direct, short answer to the user's question and stop immediately."
Open your terminal in that folder and execute the following commands:
ollama create som-tripathi-phi3-4k-indiangk -f ./Modelfile
ollama run som-tripathi-phi3-4k-indiangk
unsloth/Phi-3-mini-4k-instruct (4-bit quantized)Unsloth (utilizing train_on_responses_only to mask user question loss calculations)r): 16q, k, v, o, gate, up, down_proj)This project is open-sourced under the MIT License. Special thanks to the Microsoft Phi team for the incredibly efficient base model architecture and the Unsloth AI team for providing the core libraries to execute memory-safe local micro-fine-tuning.