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 33200
Verified signature9a85e5e -
Training in progress, step 32800
Verified signature20ce65f -
Training in progress, step 32600
Verified signature85e5de1 -
Training in progress, step 32400
Verified signature9fa7a1e -
Training in progress, step 32000
Verified signature06fdd88 -
Training in progress, step 31800
Verified signature794925d -
Training in progress, step 31600
Verified signature43c7e4c -
Training in progress, step 31200
Verified signature7d88460 -
Training in progress, step 31000
Verified signature5ff4a11 -
Training in progress, step 30800
Verified signatured168983 -
Training in progress, step 30600
Verified signature0a349d6 -
Training in progress, step 30200
Verified signature1e52775 -
Training in progress, step 30000
Verified signatureaf09f33 -
Training in progress, step 29800
Verified signature72fc9a7 -
Training in progress, step 29600
Verified signature28c0807 -
Training in progress, step 29400
Verified signaturec6610f6 -
Training in progress, step 29200
Verified signatureedf18e6 -
Training in progress, step 29000
Verified signature6955196 -
Training in progress, step 28800
Verified signaturec2087ed -
Training in progress, step 28600
Verified signaturea6dfa27 -
Training in progress, step 28400
Verified signaturece3c3d2 -
Training in progress, step 28200
Verified signature8c64f8c -
Training in progress, step 28000
Verified signature3adc142 -
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