Instructions to use Jairnetojp/phi-1_5-finetuned-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jairnetojp/phi-1_5-finetuned-sql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jairnetojp/phi-1_5-finetuned-sql", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Jairnetojp/phi-1_5-finetuned-sql", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jairnetojp/phi-1_5-finetuned-sql with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jairnetojp/phi-1_5-finetuned-sql" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jairnetojp/phi-1_5-finetuned-sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Jairnetojp/phi-1_5-finetuned-sql
- SGLang
How to use Jairnetojp/phi-1_5-finetuned-sql 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 "Jairnetojp/phi-1_5-finetuned-sql" \ --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": "Jairnetojp/phi-1_5-finetuned-sql", "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 "Jairnetojp/phi-1_5-finetuned-sql" \ --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": "Jairnetojp/phi-1_5-finetuned-sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Jairnetojp/phi-1_5-finetuned-sql with Docker Model Runner:
docker model run hf.co/Jairnetojp/phi-1_5-finetuned-sql
Commit History
-
Upload MixFormerSequentialForCausalLM
00b388a -
End of training
c908641 -
Training in progress, epoch 2
0354a46 -
Training in progress, epoch 1
6f19cf5
-
Upload MixFormerSequentialForCausalLM
7b7c1d7 -
End of training
a8d12b4 -
Training in progress, epoch 16
b13074d -
Training in progress, epoch 14
8c1eefe -
Training in progress, epoch 14
e63ee34 -
Training in progress, epoch 12
5b232c5 -
Training in progress, epoch 12
3473b67 -
Training in progress, epoch 10
a0fa500 -
Training in progress, epoch 10
ff6b10d -
Training in progress, epoch 8
d816f32 -
Training in progress, epoch 8
8ccdcee -
Training in progress, epoch 6
89c70ea -
Training in progress, epoch 6
1a7b49f -
Training in progress, epoch 4
58ba1bd -
Training in progress, epoch 4
e0376db -
Training in progress, epoch 2
51e37a6 -
Training in progress, epoch 2
dd83ea4 -
Training in progress, epoch 0
608c381 -
initial commit
11a6e18