Downloads · 30 days
22
21% of all-time downloads
yamraj047/my_optimal_model-GGUF-with-sysprompt
my_optimal_model-GGUF-with-sysprompt is a machine learning model from yamraj047. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
🎯 KEY FEATURE: Legal citation system prompt is permanently embedded in this GGUF file!
Downloads · 30 days
22
21% of all-time downloads
All-time downloads
106
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.4 GB · 100%
From the Hugging Face model README
🎯 KEY FEATURE: Legal citation system prompt is permanently embedded in this GGUF file!
from llama_cpp import Llama
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="yamraj047/my_optimal_model-GGUF-with-sysprompt",
filename="my-optimal-model-Q4_K_M.gguf"
)
# Load and use (system prompt is automatic!)
llm = Llama(model_path=model_path, n_ctx=2048, n_threads=4)
response = llm("Can four friends start a company in Nepal?", max_tokens=400)
print(response['choices'][0]['text'])
Output automatically includes:
Under Law: Company Act, 2063 (2006)
Chapter: 3 - Incorporation of Company
Section: 46 - Appointment of Directors
Yes, four friends can collectively form a company...
| Property | Value |
|---|---|
| Size | ~4 GB |
| Quantization | Q4_K_M |
| Quality | ~98% of FP16 |
| Hardware | CPU only |
| Context | 2048+ tokens |
| System Prompt | ✅ Embedded |
from llama_cpp import Llama
llm = Llama(
model_path="path/to/my-optimal-model-Q4_K_M.gguf",
n_ctx=2048,
n_threads=4
)
# Just ask - formatting is automatic!
response = llm("What are director requirements?", max_tokens=300)
print(response['choices'][0]['text'])
# Import model
ollama create nepali-legal -f - <<EOF
FROM yamraj047/my_optimal_model-GGUF-with-sysprompt:latest
EOF
# Use it
ollama run nepali-legal "Tell me about company formation"
import gradio as gr
from llama_cpp import Llama
llm = Llama(model_path="path/to/model.gguf", n_ctx=2048)
def chat(message, history):
response = llm(message, max_tokens=400)
return response['choices'][0]['text'].strip()
gr.ChatInterface(
fn=chat,
title="🤖 Nepali Legal AI"
).launch()
This model automatically applies the following behavior:
No manual configuration needed!
Created from: yamraj047/jaii2.033my_optimal_model-merged-fp16
Process:
The system prompt is embedded in the model's chat template and automatically applies to all conversations.
Apache 2.0
This AI provides general legal information only. Always consult a licensed legal professional for specific legal matters.