Instructions to use senthil-kumar/qwen-patch-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use senthil-kumar/qwen-patch-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-coder-1.5b-instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "senthil-kumar/qwen-patch-classifier") - Transformers
How to use senthil-kumar/qwen-patch-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="senthil-kumar/qwen-patch-classifier") 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("senthil-kumar/qwen-patch-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use senthil-kumar/qwen-patch-classifier with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "senthil-kumar/qwen-patch-classifier" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "senthil-kumar/qwen-patch-classifier", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/senthil-kumar/qwen-patch-classifier
- SGLang
How to use senthil-kumar/qwen-patch-classifier 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 "senthil-kumar/qwen-patch-classifier" \ --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": "senthil-kumar/qwen-patch-classifier", "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 "senthil-kumar/qwen-patch-classifier" \ --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": "senthil-kumar/qwen-patch-classifier", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use senthil-kumar/qwen-patch-classifier with Docker Model Runner:
docker model run hf.co/senthil-kumar/qwen-patch-classifier
Checkpoint epoch 3
Browse files
checkpoints/epoch_3/adapter_config.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
-
"q_proj",
|
| 38 |
"down_proj",
|
| 39 |
"gate_proj",
|
| 40 |
-
"up_proj",
|
| 41 |
-
"v_proj",
|
| 42 |
"k_proj",
|
| 43 |
-
"
|
|
|
|
|
|
|
|
|
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
|
|
|
| 37 |
"down_proj",
|
| 38 |
"gate_proj",
|
|
|
|
|
|
|
| 39 |
"k_proj",
|
| 40 |
+
"q_proj",
|
| 41 |
+
"up_proj",
|
| 42 |
+
"o_proj",
|
| 43 |
+
"v_proj"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
checkpoints/epoch_3/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 73911112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d60a510850c477fc60d614809f3aed9871219a3e2af4ee972270034b1e451787
|
| 3 |
size 73911112
|