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 59200
Verified signaturece54005 -
Training in progress, step 59000
Verified signature149fbc7 -
Training in progress, step 58800
Verified signature59d8e37 -
Training in progress, step 58600
Verified signature63371f1 -
Training in progress, step 58400
Verified signatureb55d598 -
Training in progress, step 58200
Verified signatureabfa9e6 -
Training in progress, step 58000
Verified signatured9bf0b2 -
Training in progress, step 57800
Verified signaturea7caaba -
Training in progress, step 57600
Verified signature4d1f8e6 -
Training in progress, step 57400
Verified signatureb832c1f -
Training in progress, step 57200
Verified signature21a582e -
Training in progress, step 57000
Verified signatured6eef9d -
Training in progress, step 56800
Verified signature6f7c654 -
Training in progress, step 56600
Verified signatureae41467 -
Training in progress, step 56400
Verified signatureb8f23ac -
Training in progress, step 56200
Verified signatureb6c5b91 -
Training in progress, step 56000
Verified signature931f7c9 -
Training in progress, step 55600
Verified signaturee6eda0e -
Training in progress, step 55400
Verified signature019eb82 -
Training in progress, step 55200
Verified signaturec678aad -
Training in progress, step 55000
Verified signaturebe916c4 -
Training in progress, step 54800
Verified signature307555b -
Training in progress, step 54400
Verified signature277642b -
Training in progress, step 54200
Verified signature36e66c6 -
Training in progress, step 54000
Verified signature9439f48 -
Training in progress, step 53800
Verified signature81f3540 -
Training in progress, step 53600
Verified signature96e8b85 -
Training in progress, step 53400
Verified signatureedf53eb -
Training in progress, step 53200
Verified signature6cf1a7b -
Training in progress, step 53000
Verified signatureb4ef8c6 -
Training in progress, step 52800
Verified signatureeafb219 -
Training in progress, step 52600
Verified signature76b7299 -
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