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 52400
Verified signature033105e -
Training in progress, step 52200
Verified signaturea5e5733 -
Training in progress, step 52000
Verified signatureec8f21d -
Training in progress, step 51800
Verified signature392d36a -
Training in progress, step 51600
Verified signature44032b5 -
Training in progress, step 51400
Verified signature75c84e5 -
Training in progress, step 51200
Verified signature3d8cf09
-
Training in progress, step 51000
Verified signature17530d0 -
Training in progress, step 50800
Verified signature1691615 -
Training in progress, step 50600
Verified signature075a868 -
Training in progress, step 50400
Verified signature6715e0a -
Training in progress, step 50200
Verified signature6574e8a -
Training in progress, step 50000
Verified signature06dc064 -
Training in progress, step 49800
Verified signature7bed74d -
Training in progress, step 49600
Verified signature2119fbd -
Training in progress, step 49400
Verified signaturea4a6383 -
Training in progress, step 49200
Verified signature753ca19 -
Training in progress, step 49000
Verified signaturebda7996 -
Training in progress, step 48800
Verified signature7a69943 -
Training in progress, step 48600
Verified signature5fb7422 -
Training in progress, step 48400
Verified signature1e52cad -
Training in progress, step 48200
Verified signature648b117 -
Training in progress, step 48000
Verified signatureb5725cd -
Training in progress, step 47800
Verified signatured7e6df6 -
Training in progress, step 47600
Verified signatureedc03bc -
Training in progress, step 47400
Verified signature27cd16c -
Training in progress, step 47200
Verified signature79208d2 -
Training in progress, step 47000
Verified signature7d0fa27 -
Training in progress, step 46800
Verified signaturef598da9 -
Training in progress, step 46600
Verified signature73c6c0a -
Training in progress, step 46400
Verified signaturea3e7a95 -
Training in progress, step 46200
Verified signaturea37a475 -
Training in progress, step 46000
Verified signaturec4f5860 -
Training in progress, step 45800
Verified signature5cb53cf -
Training in progress, step 45600
Verified signature1382bf7 -
Training in progress, step 45400
Verified signature5357959 -
Training in progress, step 45200
Verified signaturec58e2a4 -
Training in progress, step 45000
Verified signaturedb54c79 -
Training in progress, step 44800
Verified signaturec1bb3d9 -
Training in progress, step 44600
Verified signaturebc002b8 -
Training in progress, step 44400
Verified signature0664d84 -
Training in progress, step 44200
Verified signature1785613 -
Training in progress, step 44000
Verified signaturea4a3a18 -
Training in progress, step 43800
Verified signaturee0d25e3 -
Training in progress, step 43600
Verified signatureaff9271 -
Training in progress, step 43400
Verified signature13520f4 -
Training in progress, step 43200
Verified signature83a29d2 -
Training in progress, step 43000
Verified signature95bdf68 -
Training in progress, step 42800
Verified signature65a8a52 -
Training in progress, step 42600
Verified signaturedcc77d6