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 Settings
- 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 ·
9af3734
1
Parent(s): 071f8ca
Training in progress, epoch 0
Browse files- README.md +14 -0
- adapter_model.bin +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -6,6 +6,7 @@ tags:
|
|
| 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,6 +30,18 @@ More information needed
|
|
| 29 |
|
| 30 |
## Training procedure
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
### Training hyperparameters
|
| 33 |
|
| 34 |
The following hyperparameters were used during training:
|
|
@@ -46,6 +59,7 @@ 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
|
|
|
|
| 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 |
|
| 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 |
|
| 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
|
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 18908110
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:318b1a848d9807b8998cb51ac529d7f9bb55045ed7c300d78d8c818ad8bb1696
|
| 3 |
size 18908110
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2b66a6f23e140b61d0eeea6d2a3c4e2b4ea17355293f6bce0812bb8196e4652
|
| 3 |
size 4536
|