Text Generation
Transformers
Safetensors
llama
text-generation-inference
8-bit precision
bitsandbytes
Instructions to use samadpls/querypls-prompt2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samadpls/querypls-prompt2sql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="samadpls/querypls-prompt2sql")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("samadpls/querypls-prompt2sql") model = AutoModelForCausalLM.from_pretrained("samadpls/querypls-prompt2sql") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use samadpls/querypls-prompt2sql with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "samadpls/querypls-prompt2sql" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "samadpls/querypls-prompt2sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/samadpls/querypls-prompt2sql
- SGLang
How to use samadpls/querypls-prompt2sql 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 "samadpls/querypls-prompt2sql" \ --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": "samadpls/querypls-prompt2sql", "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 "samadpls/querypls-prompt2sql" \ --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": "samadpls/querypls-prompt2sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use samadpls/querypls-prompt2sql with Docker Model Runner:
docker model run hf.co/samadpls/querypls-prompt2sql
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,20 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
datasets:
|
| 4 |
-
- samadpls/querypls-prompt2sql-dataset
|
| 5 |
-
- b-mc2/sql-create-context
|
| 6 |
-
tags:
|
| 7 |
-
- stabilityai/StableBeluga-7B
|
| 8 |
-
- langchain
|
| 9 |
-
- opensource
|
| 10 |
-
- stabilityai
|
| 11 |
-
- SatbleBeluga-7B
|
| 12 |
-
language:
|
| 13 |
-
- en
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
pipeline_tag: text2text-generation
|
| 18 |
---
|
| 19 |
|
| 20 |
|
|
@@ -66,4 +51,4 @@ For more information and details, please refer to the provided [documentation](h
|
|
| 66 |
|
| 67 |
## Model Card Authors
|
| 68 |
|
| 69 |
-
- 🤖 [samadpls](https://github.com/samadpls)
|
|
|
|
| 1 |
---
|
| 2 |
+
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
|
|
|
|
| 51 |
|
| 52 |
## Model Card Authors
|
| 53 |
|
| 54 |
+
- 🤖 [samadpls](https://github.com/samadpls)
|