Instructions to use Lkonshu/DevPilot-Code-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Lkonshu/DevPilot-Code-1.0 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Lkonshu/DevPilot-Code-1.0") - Transformers
How to use Lkonshu/DevPilot-Code-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lkonshu/DevPilot-Code-1.0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Lkonshu/DevPilot-Code-1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lkonshu/DevPilot-Code-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lkonshu/DevPilot-Code-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lkonshu/DevPilot-Code-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Lkonshu/DevPilot-Code-1.0
- SGLang
How to use Lkonshu/DevPilot-Code-1.0 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 "Lkonshu/DevPilot-Code-1.0" \ --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": "Lkonshu/DevPilot-Code-1.0", "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 "Lkonshu/DevPilot-Code-1.0" \ --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": "Lkonshu/DevPilot-Code-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Lkonshu/DevPilot-Code-1.0 with Docker Model Runner:
docker model run hf.co/Lkonshu/DevPilot-Code-1.0
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -204,4 +204,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 204 |
[More Information Needed]
|
| 205 |
### Framework versions
|
| 206 |
|
| 207 |
-
- PEFT 0.21.
|
|
|
|
| 204 |
[More Information Needed]
|
| 205 |
### Framework versions
|
| 206 |
|
| 207 |
+
- PEFT 0.21.2
|
adapter_config.json
CHANGED
|
@@ -26,14 +26,14 @@
|
|
| 26 |
"modules_to_save": null,
|
| 27 |
"monteclora_config": null,
|
| 28 |
"peft_type": "LORA",
|
| 29 |
-
"peft_version": "0.21.
|
| 30 |
"qalora_group_size": 16,
|
| 31 |
"r": 8,
|
| 32 |
"rank_pattern": {},
|
| 33 |
"revision": null,
|
| 34 |
"target_modules": [
|
| 35 |
-
"k_proj",
|
| 36 |
"v_proj",
|
|
|
|
| 37 |
"q_proj",
|
| 38 |
"o_proj"
|
| 39 |
],
|
|
|
|
| 26 |
"modules_to_save": null,
|
| 27 |
"monteclora_config": null,
|
| 28 |
"peft_type": "LORA",
|
| 29 |
+
"peft_version": "0.21.2",
|
| 30 |
"qalora_group_size": 16,
|
| 31 |
"r": 8,
|
| 32 |
"rank_pattern": {},
|
| 33 |
"revision": null,
|
| 34 |
"target_modules": [
|
|
|
|
| 35 |
"v_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
"q_proj",
|
| 38 |
"o_proj"
|
| 39 |
],
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4350392
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:748e1045c4e4358bc1886cf73f36a9e3db608ef119cb3fe708617415249a6623
|
| 3 |
size 4350392
|