How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="omeryentur/phi-3-sql",
	filename="phi-3-sql.Q4_K_M.gguf",
)
llm.create_chat_completion(
	messages = "No input example has been defined for this model task."
)

Model Card Phi-3-Sql

This model is a fine-tuned version of the Phi-3-mini-4k-instruct model for text to SQL tasks. Its goal is to achieve high-performance text to SQL outputs using smaller models

Prompt ="""
<|system|>
{table_info}

<|user|>
{question}

<|sql|>"""
Downloads last month
112
GGUF
Model size
4B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using omeryentur/phi-3-sql 1