Update README.md 1c194d1 verified
Anoop Srivastava commited on
How to use ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF", device_map="auto")How to use ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
# 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 ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
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 ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
docker model run hf.co/ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
How to use ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF with Ollama:
ollama run hf.co/ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
How to use ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF with Docker Model Runner:
docker model run hf.co/ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
How to use ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ThePromptKing/Code-Llama-2-7B-instruct-text2sql-GGUF:Q2_K
lemonade run user.Code-Llama-2-7B-instruct-text2sql-GGUF-Q2_K
lemonade list