Views
No views yet
| File | Description |
|---|---|
| phi3_gguf_q8_0.gguf | Main model file (Q8_0) |
| README.md | Documentation |
1./main -m https://huggingface.co/dhanushmekaka/phi-3-mini-text-to-cypher-supply/resolve/main/phi3_gguf_q8_0.gguf \
2 -p "<|user|>Top 5 products by total ordered quantity.<|end|><|assistant|>"1from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="dhanushmekaka/phi-3-mini-text-to-cypher-supply",
5 filename="phi3_gguf_q8_0.gguf",
6 n_ctx=4096,
7)
8
9prompt = """<|user|>
10Top 5 products by total ordered quantity.
11<|end|>
12<|assistant|>
13"""
14
15response = llm(prompt, max_tokens=150)
16print(response["choices"][0]["text"])FROM ./phi3_gguf_q8_0.gguf
TEMPLATE """<|system|>{{ .System }}<|end|><|user|>{{ .Prompt }}<|end|><|assistant|>"""ollama create phi3-supply -f Modelfileollama run phi3-supply1from llama_cpp import Llama
2
3# Load GGUF from your HuggingFace repo
4llm = Llama.from_pretrained(
5 repo_id="dhanushmekaka/phi-3-mini-text-to-cypher-supply",
6 filename="phi3_gguf_q8_0.gguf",
7 n_ctx=4096,
8)
9
10# Prompt (Phi-3 Chat Template)
11prompt = """<|user|>
12Top 5 products by total ordered quantity.
13<|end|>
14<|assistant|>
15"""
16
17# Run inference
18output = llm(prompt, max_tokens=200)
19print("Model Response:\n", output["choices"][0]["text"])