Text Generation
Transformers
Safetensors
PEFT
English
code
sql-generation
text-generation-inference
conversational
Instructions to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT", device_map="auto") - PEFT
How to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT
- SGLang
How to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT 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 "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT with Docker Model Runner:
docker model run hf.co/NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder-PEFT
Update adapter_config.json
Browse files- adapter_config.json +2 -0
adapter_config.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
|
|
|
| 3 |
"auto_mapping": null,
|
| 4 |
"base_model_name_or_path": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
|
| 5 |
"bias": "none",
|
| 6 |
"eva_config": null,
|
| 7 |
"exclude_modules": null,
|
| 8 |
"fan_in_fan_out": false,
|
|
|
|
| 9 |
"inference_mode": true,
|
| 10 |
"init_lora_weights": true,
|
| 11 |
"layer_replication": null,
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
+
"auto_class": "PeftModelForCausalLM",
|
| 4 |
"auto_mapping": null,
|
| 5 |
"base_model_name_or_path": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
|
| 6 |
"bias": "none",
|
| 7 |
"eva_config": null,
|
| 8 |
"exclude_modules": null,
|
| 9 |
"fan_in_fan_out": false,
|
| 10 |
+
"inference_class": "AutoPeftModelForCausalLM",
|
| 11 |
"inference_mode": true,
|
| 12 |
"init_lora_weights": true,
|
| 13 |
"layer_replication": null,
|