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", dtype="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 Studio
How to use gemechisw/Tenacious-DPO-LoRA-v0.1 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for gemechisw/Tenacious-DPO-LoRA-v0.1 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for gemechisw/Tenacious-DPO-LoRA-v0.1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for gemechisw/Tenacious-DPO-LoRA-v0.1 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="gemechisw/Tenacious-DPO-LoRA-v0.1", max_seq_length=2048, ) - 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
- Model Card for
gemechisw/tenacious-pathb-dpo-lora-v0.1- Model Details
- Uses
- Bias, Risks, and Limitations
- How to Get Started with the Model
- Training Details
- Evaluation
- Model Examination [optional]
- Environmental Impact
- Technical Specifications [optional]
- Citation [optional]
- Glossary [optional]
- More Information [optional]
- Model Card Authors [optional]
- Model Card Contact
Model Card for gemechisw/tenacious-pathb-dpo-lora-v0.1
PEFT LoRA adapter trained with DPO for Tenacious-Bench sales-agent intervention experiments, focused on improving policy/reliability behavior over the Week 10 baseline while preserving reproducibility and explicit failure reporting.
Model Details
Model Description
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.
- Developed by: Gemechis Worku
- Shared by [optional]: Gemechis Worku
- Model type: PEFT LoRA adapter trained with DPO (Path B)
- Language(s) (NLP): English
- License: MIT
- Finetuned from model [optional]:
unsloth/Qwen2.5-3B-Instruct-bnb-4bit
Model Sources [optional]
Uses
Direct Use
- Benchmark-time intervention experiments on Tenacious-Bench v0.1 tasks.
- Reproducing comparisons between baseline, prompt-only, and trained variants.
- Evaluating preference-tuned behavior on sales-policy-sensitive drafting tasks.
Downstream Use [optional]
- As an adapter component inside a larger sales-assistant pipeline where outputs are additionally guarded by deterministic policy checks.
- As a starting point for further preference optimization on expanded hard-policy slices.
Out-of-Scope Use
- Fully autonomous production outreach without additional policy guardrails.
- Legal/compliance-sensitive quoting decisions without human review.
- General-purpose conversational deployment outside the benchmark scope.
Bias, Risks, and Limitations
- The adapter can produce fluent outputs that still violate hard policy constraints.
- Remaining known failure clusters include capacity over-commitment, specific TCV quoting, and discount/promo language.
- Evaluation performance is benchmark-specific and should not be interpreted as universal sales competence.
- Delta B did not beat a strong prompt-only intervention in this run.
Recommendations
- Keep a deterministic policy layer in front of any send action.
- Require human approval for capacity, pricing, and discount claims.
- Use this model as an experimental component, not as a standalone policy system.
- Monitor failure-family slices separately, not only aggregate score.
How to Get Started with the Model
Use the code below to load the base model and attach the adapter.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "unsloth/Qwen2.5-3B-Instruct-bnb-4bit"
adapter_id = "gemechisw/tenacious-pathb-dpo-lora-v0.1"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(base_id)
model = PeftModel.from_pretrained(base, adapter_id)
Training Details
Training Data
Training data comes from Tenacious-Bench v0.1 preference pairs:
training_data/path_b/preferences_train_dpo.jsonl(125 pairs)training_data/path_b/preferences_dev_dpo.jsonl(75 pairs)
Dataset reference:
Preprocessing and controls:
- Held-out split excluded from preference construction.
- Chosen/rejected pairs derived under benchmark rubric constraints.
- Leakage controls documented in
methodology_rationale.md
Training Procedure
Preprocessing [optional]
- Preference pairs were built from train/dev tasks only.
- Rejected outputs include deterministic-rubric and hard-policy failures.
- Chosen outputs are corrected outputs that pass threshold criteria.
Training Hyperparameters
- Training regime: Mixed precision (Colab/Unsloth workflow; exact mode to confirm from notebook runtime)
- Method: DPO + LoRA
- Seed: 42
- Max sequence length: 1024
- Optimizer:
adamw_8bit - Learning rate:
1e-5 - Epochs: configured
2in run config - Per-device batch size:
2 - Gradient accumulation steps:
4 - DPO beta (selected run):
0.1(run args includebeta: 0.05, selected run metadata records0.1) - LoRA config (project runbook):
r=16,alpha=32,dropout=0.05 - LoRA target modules:
q_proj,k_proj,v_proj,o_proj,up_proj,down_proj,gate_proj
Speeds, Sizes, Times [optional]
- Train runtime:
994.5271seconds (~16.6 minutes). - Train samples/sec:
0.251. - Train steps/sec:
0.032. - Reported train loss:
0.03. - Artifacts tracked in:
training/config.yamltraining/metrics.jsontraining/training_run.log
Evaluation
Testing Data, Factors & Metrics
Testing Data
Held-out evaluation used Tenacious-Bench v0.1 held-out split:
tenacious_bench_v0.1/held_out/tasks.jsonl(n=50)
Supporting outputs and traces:
ablation_results.jsonheld_out_traces.jsonl
Factors
Evaluation disaggregates by variant and policy behavior:
- Baseline vs prompt-only vs trained intervention.
- Failure families including signal honesty, bench capacity, pricing scope, and tone constraints.
Metrics
- Mean score percentage.
- Pass rate.
- Paired bootstrap 95% confidence interval for mean differences.
- One-sided and two-sided p-values for lift claims.
Results
Held-out aggregate (n=50):
- Baseline mean score:
93.44, pass rate0.86. - Prompt-only mean score:
100.0, pass rate1.0. - Trained mean score:
97.92, pass rate0.82.
Delta A (trained vs baseline):
- Mean diff:
+4.48. - 95% CI:
[3.68, 5.44]. - One-sided p-value:
0.0002. - Claim positive with significance:
true.
Delta B (trained vs prompt-only):
- Mean diff:
-2.08. - 95% CI:
[-3.36, -0.96]. - One-sided p-value:
1.0. - Claim training beats prompt-only:
false.
Summary
The adapter produced statistically significant lift over the baseline comparator (Delta A), but did not outperform the prompt-only intervention (Delta B). Remaining failures are concentrated in hard-policy honesty slices.
Model Examination [optional]
No dedicated interpretability study was run for this release. Error analysis was performed at trace level via held_out_traces.jsonl and summarized in project documentation.
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: NVIDIA T4 (Colab workflow)
- Hours used: ~0.28 hours for the reported training run
- Cloud Provider: Google Colab
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
- Base architecture: Qwen2.5-3B Instruct variant (4-bit base loading workflow via Unsloth).
- Adapter method: LoRA on attention + MLP projection modules.
- Objective: Direct Preference Optimization over chosen/rejected response pairs.
- Training path: ACT III Path B.
Compute Infrastructure
Colab-based training workflow with adapter-only output artifacts.
Hardware
- GPU class: T4 (16GB class runtime target)
- Local development artifacts synchronized into repo for reproducibility.
Software
- Unsloth training notebook workflow.
- TRL-based DPO training pipeline.
- Transformers + PEFT adapter loading stack.
Citation [optional]
BibTeX:
@misc{worku2026tenaciouspathb,
title = {Tenacious DPO LoRA v0.1},
author = {Gemechis Worku},
year = {2026},
howpublished = {Hugging Face model repository},
note = {Adapter model for Tenacious-Bench v0.1}
}
APA:
Worku, G. (2026). Tenacious DPO LoRA v0.1 [Model adapter]. Hugging Face.
Glossary [optional]
- Delta A: Trained minus baseline held-out mean score difference.
- Delta B: Trained minus prompt-only held-out mean score difference.
- DPO: Direct Preference Optimization.
- LoRA: Low-Rank Adaptation for parameter-efficient fine-tuning.
More Information [optional]
Related project artifacts:
- Dataset card: https://huggingface.co/datasets/gemechisw/tenacious_bench_v0.1
- Ablation JSON: https://github.com/gemechisworku/tenacious_bench_v01/blob/main/ablation_results.json
- Traces JSONL: https://github.com/gemechisworku/tenacious_bench_v01/blob/main/held_out_traces.jsonl
- Methodology rationale: https://github.com/gemechisworku/tenacious_bench_v01/blob/main/methodology_rationale.md
Model Card Authors [optional]
Gemechis Worku
Model Card Contact
[More Information Needed]
Framework versions
- PEFT 0.19.1
- Downloads last month
- 1
Model tree for gemechisw/Tenacious-DPO-LoRA-v0.1
Base model
Qwen/Qwen2.5-3B