Downloads · 30 days
7
5% of all-time downloads
dhanushmekaka/phi-3-mini-text-to-cypher-supply
phi-3-mini-text-to-cypher-supply is a text generation model from dhanushmekaka. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a fine-tuned version of Microsoft Phi-3 Mini 4K Instruct, trained for:
Downloads · 30 days
7
5% of all-time downloads
All-time downloads
137
Public
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.1 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of Microsoft Phi-3 Mini 4K Instruct, trained for:
The model is exported to GGUF (Q8_0) for high-speed CPU inference using:
| File | Description |
|---|---|
| phi3_gguf_q8_0.gguf | Main model file (Q8_0) |
| README.md | Documentation |
./main -m https://huggingface.co/dhanushmekaka/phi-3-mini-text-to-cypher-supply/resolve/main/phi3_gguf_q8_0.gguf \
-p "<|user|>Top 5 products by total ordered quantity.<|end|><|assistant|>"
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="dhanushmekaka/phi-3-mini-text-to-cypher-supply",
filename="phi3_gguf_q8_0.gguf",
n_ctx=4096,
)
prompt = """<|user|>
Top 5 products by total ordered quantity.
<|end|>
<|assistant|>
"""
response = llm(prompt, max_tokens=150)
print(response["choices"][0]["text"])
FROM ./phi3_gguf_q8_0.gguf
TEMPLATE """<|system|>{{ .System }}<|end|><|user|>{{ .Prompt }}<|end|><|assistant|>"""
Create:
ollama create phi3-supply -f Modelfile
Run:
ollama run phi3-supply
M. Dhanush Vardhan Data Scientist • Supply Chain AI • LLM Engineer HuggingFace: https://huggingface.co/dhanushmekaka
This loads your HF model directly and runs inference:
from llama_cpp import Llama
# Load GGUF from your HuggingFace repo
llm = Llama.from_pretrained(
repo_id="dhanushmekaka/phi-3-mini-text-to-cypher-supply",
filename="phi3_gguf_q8_0.gguf",
n_ctx=4096,
)
# Prompt (Phi-3 Chat Template)
prompt = """<|user|>
Top 5 products by total ordered quantity.
<|end|>
<|assistant|>
"""
# Run inference
output = llm(prompt, max_tokens=200)
print("Model Response:\n", output["choices"][0]["text"])
If you want, I can also generate:
Just tell me!