Instructions to use EricWesthoff/phi-1_5-finetuned-SQL 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 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", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("EricWesthoff/phi-1_5-finetuned-SQL", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EricWesthoff/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 "EricWesthoff/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": "EricWesthoff/phi-1_5-finetuned-SQL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EricWesthoff/phi-1_5-finetuned-SQL
- SGLang
How to use EricWesthoff/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 "EricWesthoff/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": "EricWesthoff/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 "EricWesthoff/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": "EricWesthoff/phi-1_5-finetuned-SQL", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EricWesthoff/phi-1_5-finetuned-SQL with Docker Model Runner:
docker model run hf.co/EricWesthoff/phi-1_5-finetuned-SQL
Commit ·
b3b3eb2
1
Parent(s): 7bfbb2b
End of training
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/phi-1_5](https://huggingface.co/microsoft/phi-1_5) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss: 1.
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
@@ -40,17 +40,27 @@ The following hyperparameters were used during training:
|
|
| 40 |
- seed: 42
|
| 41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
- lr_scheduler_type: cosine
|
| 43 |
-
-
|
| 44 |
|
| 45 |
### Training results
|
| 46 |
|
| 47 |
-
| Training Loss | Epoch | Step
|
| 48 |
-
|:-------------:|:-----:|:----
|
| 49 |
-
|
|
| 50 |
-
|
|
| 51 |
-
| 1.
|
| 52 |
-
| 1.
|
| 53 |
-
| 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
### Framework versions
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/phi-1_5](https://huggingface.co/microsoft/phi-1_5) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 1.4282
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
|
|
| 40 |
- seed: 42
|
| 41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
- lr_scheduler_type: cosine
|
| 43 |
+
- training_steps: 1500
|
| 44 |
|
| 45 |
### Training results
|
| 46 |
|
| 47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
| 49 |
+
| 2.4485 | 0.4 | 100 | 2.0478 |
|
| 50 |
+
| 2.0521 | 0.8 | 200 | 1.9223 |
|
| 51 |
+
| 1.9626 | 1.2 | 300 | 1.8386 |
|
| 52 |
+
| 1.8707 | 1.6 | 400 | 1.7702 |
|
| 53 |
+
| 1.79 | 2.0 | 500 | 1.7149 |
|
| 54 |
+
| 1.7197 | 2.4 | 600 | 1.6567 |
|
| 55 |
+
| 1.6904 | 2.8 | 700 | 1.6055 |
|
| 56 |
+
| 1.6379 | 3.2 | 800 | 1.5583 |
|
| 57 |
+
| 1.5794 | 3.6 | 900 | 1.5267 |
|
| 58 |
+
| 1.5977 | 4.0 | 1000 | 1.4928 |
|
| 59 |
+
| 1.4773 | 4.4 | 1100 | 1.4638 |
|
| 60 |
+
| 1.5185 | 4.8 | 1200 | 1.4446 |
|
| 61 |
+
| 1.4476 | 5.2 | 1300 | 1.4337 |
|
| 62 |
+
| 1.4321 | 5.6 | 1400 | 1.4287 |
|
| 63 |
+
| 1.4393 | 6.0 | 1500 | 1.4282 |
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|