Instructions to use EricWesthoff/phi-1_5-finetuned-SQL-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EricWesthoff/phi-1_5-finetuned-SQL-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EricWesthoff/phi-1_5-finetuned-SQL-2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("EricWesthoff/phi-1_5-finetuned-SQL-2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EricWesthoff/phi-1_5-finetuned-SQL-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EricWesthoff/phi-1_5-finetuned-SQL-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EricWesthoff/phi-1_5-finetuned-SQL-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EricWesthoff/phi-1_5-finetuned-SQL-2
- SGLang
How to use EricWesthoff/phi-1_5-finetuned-SQL-2 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 "EricWesthoff/phi-1_5-finetuned-SQL-2" \ --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": "EricWesthoff/phi-1_5-finetuned-SQL-2", "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 "EricWesthoff/phi-1_5-finetuned-SQL-2" \ --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": "EricWesthoff/phi-1_5-finetuned-SQL-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EricWesthoff/phi-1_5-finetuned-SQL-2 with Docker Model Runner:
docker model run hf.co/EricWesthoff/phi-1_5-finetuned-SQL-2
Commit History
-
Upload MixFormerSequentialForCausalLM
15f8738 -
End of training
ed83b40 -
Training in progress, step 20000
26b0ac7 -
Training in progress, step 19000
58f1ade -
Training in progress, step 18000
a67fda9 -
Training in progress, step 17000
2ea3fba -
Training in progress, step 16000
f6b2f83 -
Training in progress, step 15000
57d0ee7 -
Training in progress, step 14000
20fbff1 -
Training in progress, step 13000
ad20041 -
Training in progress, step 12000
7b525f7 -
Training in progress, step 11000
3348452 -
Training in progress, step 10000
4735142 -
Training in progress, step 9000
9279de5 -
Training in progress, step 8000
40ecd9f -
Training in progress, step 7000
b8c8d7e -
Training in progress, step 6000
4ccf70d -
Training in progress, step 5000
35b6e10 -
Training in progress, step 4000
0a6786f
-
Training in progress, step 3000
3a354b1 -
Training in progress, step 2000
3d2753e -
Training in progress, step 1000
1b552b4
-
Training in progress, step 10000
5bec4d7 -
Training in progress, step 9000
0fcc7ef -
Training in progress, step 8000
0b04208 -
Training in progress, step 7000
19b87a9 -
Training in progress, step 6000
e22dd72 -
Training in progress, step 5000
95d748d -
Training in progress, step 4000
8941ed6 -
Training in progress, step 3000
ffd548d -
Training in progress, step 2000
0083228 -
Training in progress, step 1000
0380e93 -
Upload MixFormerSequentialForCausalLM
1726c25 -
End of training
c310aa2 -
Training in progress, step 10000
0af28c3 -
Training in progress, step 9000
875f0a0 -
Training in progress, step 8000
6b65e2b -
Training in progress, step 7000
0cb86f7 -
Training in progress, step 6000
07666c2 -
Training in progress, step 5000
bb9a638 -
Training in progress, step 4000
8fbc72f -
Training in progress, step 3000
44f62e6 -
Training in progress, step 2000
f5faf1a -
Training in progress, step 1000
c8559c3 -
Training in progress, step 48200
442a84c -
Training in progress, step 48100
d855378
-
Upload MixFormerSequentialForCausalLM
a419c5b -
End of training
562f777 -
Training in progress, epoch 6
c57ae7f -
Training in progress, epoch 5
9b8aebe