Instructions to use gemechisw/Tenacious-DPO-LoRA-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-3B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "gemechisw/Tenacious-DPO-LoRA-v0.1") - Transformers
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gemechisw/Tenacious-DPO-LoRA-v0.1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gemechisw/Tenacious-DPO-LoRA-v0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gemechisw/Tenacious-DPO-LoRA-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gemechisw/Tenacious-DPO-LoRA-v0.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gemechisw/Tenacious-DPO-LoRA-v0.1
- SGLang
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 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 "gemechisw/Tenacious-DPO-LoRA-v0.1" \ --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": "gemechisw/Tenacious-DPO-LoRA-v0.1", "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 "gemechisw/Tenacious-DPO-LoRA-v0.1" \ --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": "gemechisw/Tenacious-DPO-LoRA-v0.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 with Docker Model Runner:
docker model run hf.co/gemechisw/Tenacious-DPO-LoRA-v0.1
Updated readme, removed slate links
Browse files
README.md
CHANGED
|
@@ -22,18 +22,15 @@ PEFT LoRA adapter trained with DPO for Tenacious-Bench sales-agent intervention
|
|
| 22 |
This artifact is an adapter-only checkpoint (not a full merged foundation model). It was trained on preference pairs derived from Tenacious-Bench v0.1 train/dev splits, where chosen outputs pass benchmark constraints and rejected outputs represent policy/reliability failures.
|
| 23 |
|
| 24 |
- **Developed by:** Gemechis Worku
|
| 25 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 26 |
- **Shared by [optional]:** Gemechis Worku
|
| 27 |
- **Model type:** PEFT LoRA adapter trained with DPO (Path B)
|
| 28 |
- **Language(s) (NLP):** English
|
| 29 |
-
- **License:**
|
| 30 |
- **Finetuned from model [optional]:** `unsloth/Qwen2.5-3B-Instruct-bnb-4bit`
|
| 31 |
|
| 32 |
### Model Sources [optional]
|
| 33 |
|
| 34 |
- **Repository:** https://github.com/gemechisworku/tenacious_bench_v01
|
| 35 |
-
- **Paper [optional]:** [More Information Needed]
|
| 36 |
-
- **Demo [optional]:** [More Information Needed]
|
| 37 |
|
| 38 |
## Uses
|
| 39 |
|
|
@@ -98,7 +95,7 @@ Dataset reference:
|
|
| 98 |
Preprocessing and controls:
|
| 99 |
1. Held-out split excluded from preference construction.
|
| 100 |
2. Chosen/rejected pairs derived under benchmark rubric constraints.
|
| 101 |
-
3. Leakage controls documented in `methodology_rationale.md`
|
| 102 |
|
| 103 |
### Training Procedure
|
| 104 |
|
|
@@ -128,7 +125,7 @@ Preprocessing and controls:
|
|
| 128 |
1. Train runtime: `994.5271` seconds (~16.6 minutes).
|
| 129 |
2. Train samples/sec: `0.251`.
|
| 130 |
3. Train steps/sec: `0.032`.
|
| 131 |
-
4. Reported train loss: `0.
|
| 132 |
5. Artifacts tracked in:
|
| 133 |
- `training/config.yaml`
|
| 134 |
- `training/metrics.json`
|
|
|
|
| 22 |
This artifact is an adapter-only checkpoint (not a full merged foundation model). It was trained on preference pairs derived from Tenacious-Bench v0.1 train/dev splits, where chosen outputs pass benchmark constraints and rejected outputs represent policy/reliability failures.
|
| 23 |
|
| 24 |
- **Developed by:** Gemechis Worku
|
|
|
|
| 25 |
- **Shared by [optional]:** Gemechis Worku
|
| 26 |
- **Model type:** PEFT LoRA adapter trained with DPO (Path B)
|
| 27 |
- **Language(s) (NLP):** English
|
| 28 |
+
- **License:** MIT
|
| 29 |
- **Finetuned from model [optional]:** `unsloth/Qwen2.5-3B-Instruct-bnb-4bit`
|
| 30 |
|
| 31 |
### Model Sources [optional]
|
| 32 |
|
| 33 |
- **Repository:** https://github.com/gemechisworku/tenacious_bench_v01
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Uses
|
| 36 |
|
|
|
|
| 95 |
Preprocessing and controls:
|
| 96 |
1. Held-out split excluded from preference construction.
|
| 97 |
2. Chosen/rejected pairs derived under benchmark rubric constraints.
|
| 98 |
+
3. Leakage controls documented in `methodology_rationale.md`
|
| 99 |
|
| 100 |
### Training Procedure
|
| 101 |
|
|
|
|
| 125 |
1. Train runtime: `994.5271` seconds (~16.6 minutes).
|
| 126 |
2. Train samples/sec: `0.251`.
|
| 127 |
3. Train steps/sec: `0.032`.
|
| 128 |
+
4. Reported train loss: `0.03`.
|
| 129 |
5. Artifacts tracked in:
|
| 130 |
- `training/config.yaml`
|
| 131 |
- `training/metrics.json`
|