Instructions to use TeeA/codeLlama_text2sql_word_r4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TeeA/codeLlama_text2sql_word_r4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TeeA/codeLlama_text2sql_word_r4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TeeA/codeLlama_text2sql_word_r4") model = AutoModelForCausalLM.from_pretrained("TeeA/codeLlama_text2sql_word_r4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TeeA/codeLlama_text2sql_word_r4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TeeA/codeLlama_text2sql_word_r4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TeeA/codeLlama_text2sql_word_r4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TeeA/codeLlama_text2sql_word_r4
- SGLang
How to use TeeA/codeLlama_text2sql_word_r4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TeeA/codeLlama_text2sql_word_r4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TeeA/codeLlama_text2sql_word_r4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TeeA/codeLlama_text2sql_word_r4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TeeA/codeLlama_text2sql_word_r4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TeeA/codeLlama_text2sql_word_r4 with Docker Model Runner:
docker model run hf.co/TeeA/codeLlama_text2sql_word_r4
Commit History
-
Training in progress, step 17800
Verified signature58e7289 -
Training in progress, step 17600
Verified signaturea5040b5 -
Training in progress, step 17400
Verified signature8754eb7 -
Training in progress, step 17200
Verified signature87c84c6 -
Training in progress, step 17000
Verified signature865bcb6 -
Training in progress, step 16800
Verified signatureaf907ef -
Training in progress, step 16600
Verified signature20d7d93 -
Training in progress, step 16400
Verified signaturef9ee8d3 -
Training in progress, step 16200
Verified signature5815e11 -
Training in progress, step 16000
Verified signature3b81d43 -
Training in progress, step 15800
Verified signature8caa697 -
Training in progress, step 15600
Verified signaturefd275b4 -
Training in progress, step 15400
Verified signature27ebcb3 -
Training in progress, step 15200
Verified signature5826016 -
Training in progress, step 15000
Verified signaturec24468c -
Training in progress, step 14800
Verified signature5fc65d6 -
Training in progress, step 14600
Verified signatureccce08b -
Training in progress, step 14400
Verified signaturee22e41a -
Training in progress, step 14200
Verified signature8221369 -
Training in progress, step 14000
Verified signature3a5198e -
Training in progress, step 13800
Verified signaturefe9aa79 -
Training in progress, step 13600
Verified signaturefbe86a7 -
Training in progress, step 13400
Verified signature94fdc74 -
Training in progress, step 13200
Verified signaturee8192fe -
Training in progress, step 13000
Verified signature48442b6 -
Training in progress, step 12800
Verified signatureedd4d65 -
Training in progress, step 12600
Verified signature46bd43a -
Training in progress, step 12400
Verified signaturec7b6251 -
Training in progress, step 12200
Verified signature255b1d6 -
Training in progress, step 12000
Verified signatureac276a3 -
Training in progress, step 11800
Verified signature67ee071 -
Training in progress, step 11600
Verified signature65b9729 -
Training in progress, step 11400
Verified signaturefc83394 -
Training in progress, step 11200
Verified signature9a46f95 -
Training in progress, step 11000
Verified signature7478656 -
Training in progress, step 10800
Verified signaturefc0a220 -
Training in progress, step 10600
Verified signature64cf218 -
Training in progress, step 10400
Verified signatured5411d5 -
Training in progress, step 10200
Verified signature90e0d3a -
Training in progress, step 10000
Verified signature5c523d3 -
Training in progress, step 9800
Verified signature53d0968 -
Training in progress, step 9600
Verified signature057cd6a -
Training in progress, step 9400
Verified signature8cb8fac -
Training in progress, step 9200
Verified signature767eaae -
Training in progress, step 9000
Verified signature3311c7f -
Training in progress, step 8800
Verified signatureeb0bccc -
Training in progress, step 8600
Verified signature1f28d5b -
Training in progress, step 8400
Verified signatureb1df1de -
Training in progress, step 8200
Verified signature356ad62 -
Training in progress, step 8000
Verified signature95f1d00