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 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 -
Training in progress, step 38800
Verified signature751b8a9 -
Training in progress, step 38600
Verified signature53c2762 -
Training in progress, step 38400
Verified signaturec9fce3d -
Training in progress, step 38200
Verified signaturefe7a867 -
Training in progress, step 38000
Verified signature5d3c4c7 -
Training in progress, step 37800
Verified signature85ae8dc -
Training in progress, step 37600
Verified signature5a80941 -
Training in progress, step 37400
Verified signaturea86c764 -
Training in progress, step 37200
Verified signature3f0e084 -
Training in progress, step 37000
Verified signaturebe6e07b -
Training in progress, step 36800
Verified signatureefedf97 -
Training in progress, step 36600
Verified signatured9d9739 -
Training in progress, step 36400
Verified signature060b019 -
Training in progress, step 36200
Verified signaturecfecbfc -
Training in progress, step 35800
Verified signature50dfef0 -
Training in progress, step 35600
Verified signatureac1bbfe -
Training in progress, step 35400
Verified signature7b78070 -
Training in progress, step 35200
Verified signature3665743 -
Training in progress, step 35000
Verified signature0eebe0c -
Training in progress, step 34800
Verified signature2a27c80 -
Training in progress, step 34600
Verified signatureb09bf57 -
Training in progress, step 34400
Verified signaturef1026c5 -
Training in progress, step 34200
Verified signature107e14c -
Training in progress, step 34000
Verified signature4922607 -
Training in progress, step 33800
Verified signaturede2d734 -
Training in progress, step 33600
Verified signature2c73683