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 7800
Verified signature2d0ed99 -
Training in progress, step 7600
Verified signature0c9656d -
Training in progress, step 7400
Verified signature4024dad -
Training in progress, step 7200
Verified signature1cd6588 -
Training in progress, step 7000
Verified signaturede6ac53 -
Training in progress, step 6800
Verified signaturefb4d299 -
Training in progress, step 6600
Verified signaturef652ea7 -
Training in progress, step 6400
Verified signature9e1e02f -
Training in progress, step 6200
Verified signaturede4a06a -
Training in progress, step 6000
Verified signature6e19304 -
Training in progress, step 5800
Verified signaturec53523a -
Training in progress, step 5600
Verified signature37498e9 -
Training in progress, step 5400
Verified signature79b230a -
Training in progress, step 5200
Verified signature8616e20 -
Training in progress, step 5000
Verified signatureb2098bc -
Training in progress, step 4800
Verified signature79715ba -
Training in progress, step 4600
Verified signaturef4a5665 -
Training in progress, step 4400
Verified signaturef983204 -
Training in progress, step 4200
Verified signature87b70ee -
Training in progress, step 4000
Verified signature2de85c8 -
Training in progress, step 3800
Verified signatureedfe165 -
Training in progress, step 3600
Verified signaturef0ef163 -
Training in progress, step 3400
Verified signatureabaecf0 -
Training in progress, step 3200
Verified signature73d46c7 -
Training in progress, step 3000
Verified signature6631b72 -
Training in progress, step 2800
Verified signature75c1706 -
Training in progress, step 2600
Verified signaturec39cddd -
Training in progress, step 2400
Verified signaturefa85288 -
Training in progress, step 2200
Verified signature7e9db68 -
Training in progress, step 2000
Verified signatureca77053 -
Training in progress, step 1800
Verified signatureb524749 -
Training in progress, step 1600
Verified signature01b5114 -
Training in progress, step 1400
Verified signature0a10ff8 -
Training in progress, step 1200
Verified signature149201d -
Training in progress, step 1000
Verified signature8750b47 -
Training in progress, step 800
Verified signatureae6d38a -
Training in progress, step 600
Verified signature7e6d851 -
Training in progress, step 400
Verified signature813bae4 -
Training in progress, step 200
Verified signature13b828a -
Training in progress, step 600
Verified signature7628b09 -
Training in progress, step 400
Verified signature574da96 -
Training in progress, step 200
Verified signaturef38eae5 -
initial commit
Verified signature1d51c8d