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 27800
Verified signature4434421 -
Training in progress, step 27600
Verified signaturefae3933 -
Training in progress, step 27400
Verified signature15fbaa6 -
Training in progress, step 27200
Verified signature5bcd62c -
Training in progress, step 27000
Verified signature4697344 -
Training in progress, step 26800
Verified signatureea07848 -
Training in progress, step 26600
Verified signature0025484 -
Training in progress, step 26400
Verified signature713706b -
Training in progress, step 26200
Verified signaturecf42652 -
Training in progress, step 26000
Verified signature4608fa7 -
Training in progress, step 25800
Verified signature0ba7a85 -
Training in progress, step 25600
Verified signature3ad3f71 -
Training in progress, step 25400
Verified signature3e65e7f -
Training in progress, step 25200
Verified signature9d242d2 -
Training in progress, step 25000
Verified signatureedb05a9 -
Training in progress, step 24800
Verified signatureafa4557 -
Training in progress, step 24600
Verified signature425ed0f -
Training in progress, step 24400
Verified signaturea1970d6 -
Training in progress, step 24200
Verified signature250ebc5 -
Training in progress, step 24000
Verified signature58c545f -
Training in progress, step 23800
Verified signature4e163db -
Training in progress, step 23600
Verified signature01fbd22 -
Training in progress, step 23400
Verified signatureaaa5754 -
Training in progress, step 23200
Verified signatureaaa4efe -
Training in progress, step 23000
Verified signature1d8c85b -
Training in progress, step 22800
Verified signature840b49a -
Training in progress, step 22600
Verified signature574d4bc -
Training in progress, step 22400
Verified signature9e3fb4a -
Training in progress, step 22200
Verified signature57abf16 -
Training in progress, step 22000
Verified signature6b56998 -
Training in progress, step 21800
Verified signature3afff42 -
Training in progress, step 21600
Verified signature7f492ae -
Training in progress, step 21400
Verified signature7aeb0cc -
Training in progress, step 21200
Verified signature1ea6488 -
Training in progress, step 21000
Verified signatureaffdc0d -
Training in progress, step 20800
Verified signaturebeff5c8 -
Training in progress, step 20600
Verified signature921eade -
Training in progress, step 20400
Verified signature14ce469 -
Training in progress, step 20200
Verified signature7c29a32 -
Training in progress, step 20000
Verified signature7bee289 -
Training in progress, step 19800
Verified signature68adc68 -
Training in progress, step 19600
Verified signature118fdaf -
Training in progress, step 19400
Verified signature4bf1a90 -
Training in progress, step 19200
Verified signature8524e03 -
Training in progress, step 19000
Verified signature86885ad -
Training in progress, step 18800
Verified signature19c1d46 -
Training in progress, step 18600
Verified signature727e4fc -
Training in progress, step 18400
Verified signatureaff432e
-
Training in progress, step 18200
Verified signature90d0e4d -
Training in progress, step 18000
Verified signature1adb2d3