Instructions to use KarthikeyaSKGP/know_sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KarthikeyaSKGP/know_sql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KarthikeyaSKGP/know_sql", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("KarthikeyaSKGP/know_sql", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use KarthikeyaSKGP/know_sql with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KarthikeyaSKGP/know_sql" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KarthikeyaSKGP/know_sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KarthikeyaSKGP/know_sql
- SGLang
How to use KarthikeyaSKGP/know_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 "KarthikeyaSKGP/know_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": "KarthikeyaSKGP/know_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 "KarthikeyaSKGP/know_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": "KarthikeyaSKGP/know_sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KarthikeyaSKGP/know_sql with Docker Model Runner:
docker model run hf.co/KarthikeyaSKGP/know_sql
Commit ·
0eec1d1
1
Parent(s): 9af3734
End of training
Browse files
README.md
CHANGED
|
@@ -6,7 +6,6 @@ tags:
|
|
| 6 |
model-index:
|
| 7 |
- name: know_sql
|
| 8 |
results: []
|
| 9 |
-
library_name: peft
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -30,18 +29,6 @@ More information needed
|
|
| 30 |
|
| 31 |
## Training procedure
|
| 32 |
|
| 33 |
-
|
| 34 |
-
The following `bitsandbytes` quantization config was used during training:
|
| 35 |
-
- quant_method: bitsandbytes
|
| 36 |
-
- load_in_8bit: False
|
| 37 |
-
- load_in_4bit: True
|
| 38 |
-
- llm_int8_threshold: 6.0
|
| 39 |
-
- llm_int8_skip_modules: None
|
| 40 |
-
- llm_int8_enable_fp32_cpu_offload: False
|
| 41 |
-
- llm_int8_has_fp16_weight: False
|
| 42 |
-
- bnb_4bit_quant_type: nf4
|
| 43 |
-
- bnb_4bit_use_double_quant: True
|
| 44 |
-
- bnb_4bit_compute_dtype: float16
|
| 45 |
### Training hyperparameters
|
| 46 |
|
| 47 |
The following hyperparameters were used during training:
|
|
@@ -59,7 +46,6 @@ The following hyperparameters were used during training:
|
|
| 59 |
|
| 60 |
### Framework versions
|
| 61 |
|
| 62 |
-
- PEFT 0.5.0
|
| 63 |
- Transformers 4.34.1
|
| 64 |
- Pytorch 2.1.0+cu118
|
| 65 |
- Datasets 2.14.6
|
|
|
|
| 6 |
model-index:
|
| 7 |
- name: know_sql
|
| 8 |
results: []
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 29 |
|
| 30 |
## Training procedure
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
### Training hyperparameters
|
| 33 |
|
| 34 |
The following hyperparameters were used during training:
|
|
|
|
| 46 |
|
| 47 |
### Framework versions
|
| 48 |
|
|
|
|
| 49 |
- Transformers 4.34.1
|
| 50 |
- Pytorch 2.1.0+cu118
|
| 51 |
- Datasets 2.14.6
|