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 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 -
Training in progress, step 42200
Verified signature19e89d9 -
Training in progress, step 42000
Verified signature3a4161c -
Training in progress, step 41800
Verified signatureed0778d -
Training in progress, step 41600
Verified signatured95c843 -
Training in progress, step 41400
Verified signatureffb76fa -
Training in progress, step 41200
Verified signaturea373041 -
Training in progress, step 41000
Verified signature3f7ad32 -
Training in progress, step 40800
Verified signature1e2bc6e -
Upload 2 files
Verified signature37dd24c -
Training in progress, step 40600
Verified signature8d4e422 -
Training in progress, step 40400
Verified signature886607f -
Training in progress, step 40200
Verified signaturee456fb5 -
Training in progress, step 40000
Verified signature26b875a -
Training in progress, step 39800
Verified signature3eae132 -
Training in progress, step 39600
Verified signaturee51d895 -
Training in progress, step 39400
Verified signature144d4b3 -
Training in progress, step 39200
Verified signature2a9a846 -
Training in progress, step 39000
Verified signaturead32b1d