How to use omeryentur/phi-3-sql with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("omeryentur/phi-3-sql", dtype="auto")
How to use omeryentur/phi-3-sql with llama-cpp-python:
# !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." )
How to use omeryentur/phi-3-sql with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf omeryentur/phi-3-sql:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf omeryentur/phi-3-sql:Q4_K_M
docker model run hf.co/omeryentur/phi-3-sql:Q4_K_M
How to use omeryentur/phi-3-sql with Ollama:
ollama run hf.co/omeryentur/phi-3-sql:Q4_K_M
How to use omeryentur/phi-3-sql with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for omeryentur/phi-3-sql to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for omeryentur/phi-3-sql to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for omeryentur/phi-3-sql to start chatting
How to use omeryentur/phi-3-sql with Docker Model Runner:
How to use omeryentur/phi-3-sql with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull omeryentur/phi-3-sql:Q4_K_M
lemonade run user.phi-3-sql-Q4_K_M
lemonade list
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|>"""
Chat template
4-bit