/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Qwen2.5-3B-Instruct
Библиотека
transformers
Опубликована
23 ноя 2026

deal-master-negotiator

Генерация текстаТекст → текст
592скачиваний за 30 дней1лайквеса обновлены24 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная на базе Qwen2.5-3B-Instruct модель предлагает структурированные JSON-ходы в B2B-переговорах о цене и условиях оплаты.

Deal Master Negotiator — специализированная чат-модель для многоходовых B2B-переговоров о цене и условиях оплаты. Она дообучена методом QLoRA и DPO на базе Qwen/Qwen2.5-3B-Instruct с 3,1 млрд параметров; репозиторий содержит адаптеры LoRA и объединённую сборку GGUF Q4_K_M. Модель генерирует ход переговоров в виде JSON с заданными полями и перечислениями действий, стараясь не раскрывать скрытый предел уступок. Основной сценарий — использовать её как компонент системы автоматизации переговоров, а не как самостоятельного агента.

Сценарии применения

  • предложение встречной цены в B2B-переговорах
  • выбор действия в диалоге о цене и сроках оплаты
  • генерация JSON-ответов для автоматизированной системы переговоров
  • поддержание заданной стратегии уступок и выхода из переговоров

Ограничения

Обучена на синтетических эпизодах без корпуса реальных контрагентов; качество сделок оценивалось на небольшом наборе из 80 эпизодов. Защита скрытого предела уступок зависит от соблюдения контракта промпта и отдельного слоя guardrails; модель не заменяет юридическую или коммерческую консультацию.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Deal Master — constrained B2B negotiation policy (3B)

A Qwen2.5-3B-Instruct policy fine-tuned to negotiate price and payment terms while emitting a strict JSON turn object and never revealing a hidden walk-away limit. The model is one half of a two-part system: the fine-tuned policy proposes a turn, and a deterministic Python guardrail layer validates or clamps the numbers before anything is sent.

This repository is private. It hosts LoRA adapters (small, versioned) and the merged Q4_K_M GGUF build that was actually benchmarked.

Recommended version

FilePurposeSHA256
gguf/dpo-drill-r1-q4_k_m.ggufmerged Q4_K_M build, use this onef3a72e080b8c46915d2c10d6f82196fdb4b68614e84e36d3f7d5837bf631ce3a
adapters/dpo_drill_r1/LoRA adapter that produced that GGUF741cb13bdf8bcf06fd20828d2131fd49c84a0e59a75deaf5446869ff7214470a
configs/dpo-drill-r1.generation_config.jsonchat template + stop tokens—

Older versions kept for rollback:

VersionFilesGate (80 episodes)
v0.1.0-sftadapters/sft_final/, gguf/sft-q4_k_m.ggufnot run at 80
v0.2.0-dpoadapters/dpo_final/, gguf/dpo-q4_k_m.gguf0.9325 / 0.9325 (fails gate)
v1.0.0-drill-r1adapters/dpo_drill_r1/, gguf/dpo-drill-r1-q4_k_m.gguf1.000 / 1.000

Git-style tags v0.1.0-sft, v0.2.0-dpo, and v1.0.0-drill-r1 point to the corresponding revisions on the Hub. To roll back, download the adapter/GGUF from that tag:

from huggingface_hub import hf_hub_download
path = hf_hub_download(
    repo_id="JamieAi33/deal-master-negotiator",
    filename="gguf/dpo-drill-r1-q4_k_m.gguf",
    revision="v1.0.0-drill-r1",
)

Base model and training

  • Base: Qwen/Qwen2.5-3B-Instruct (3.1B params, bf16).
  • Stage 1 — QLoRA SFT: 2,743 training / 296 validation synthetic multi-turn B2B negotiation episodes. 4-bit NF4, LoRA r=16 alpha=32 on q/k/v/o/gate/up/down projections, 2 epochs, effective batch 8, LR 2e-4, max sequence 1024, seed 3407. Gate: 1.0 schema / 1.0 zero-leak on 150 turns.
  • Stage 2 — DPO: 5,615 (prompt, chosen, rejected) pairs targeting floor leakage, premature capitulation, and walk-away discipline. Beta 0.1, LR 5e-6, 1 epoch (702 steps). It passed the gate but produced no measurable lift on the holdout.
  • Stage 3 — targeted action-field drill: 2,743 pairs built from the training split only. Each rejected turn is identical to chosen except action is replaced with the strategy label the quantized model wrongly emitted (close_deal / trade_terms). 1 epoch (343 steps) from the SFT adapter. This fixed the Q4 enum confusion and improved deal outcomes.

The training prompt lists the finite JSON enums and the chat template is the one saved in configs/*.generation_config.json. Use the same template at inference — the GGUF embeds it and LlamaCppBackend verifies parity.

Quantization

  • Format: GGUF Q4_K_M, 1,929,902,688 bytes, produced by Unsloth from the merged LoRA weights. All 36 layers fit in 80 GB VRAM with room to spare.
  • Pinned greedy sampling used for every benchmark row: temperature=0, top_p=1, min_p=0, top_k=1, max_tokens=512, seed=0.
  • Rationale for hosting adapters instead of full bf16 merged weights: the GGUF is the merged build used in production, and the LoRA adapters let you reproduce it or swap stages without storing three ~6 GB checkpoints.

Evaluation

Frozen 80-episode holdout (621–622 scored turns), same harness for every row. Gates: raw_schema_valid_rate >= 0.95, raw_zero_leak_rate >= 0.98.

Variantschemazero-leakdeal completionavg utility
base Qwen2.5-3B-Instruct0.0000.0000.0000.000
SFT HF adapter1.0001.0000.1500.041
SFT+DPO HF adapter1.0001.0000.1500.032
SFT GGUF Q4_K_M0.9070.9070.1500.038
DPO GGUF Q4_K_M0.93250.93250.2500.053
Drill GGUF Q4_K_M1.0001.0000.6630.130

The drill's 95% CI on both gate metrics is [0.994, 1.0] (621/621 valid turns). Raw result JSON, per-turn traces, and the full comparison table are in the companion GitHub repository (results/, docs/).

Output contract

Each turn is one JSON object, nothing else:

{
  "turn": 2,
  "strategy": "trade_terms",
  "action": "counter_offer",
  "opponent_read": "bluffing_deadline",
  "proposed_price": 300.89,
  "proposed_terms": "prepaid_discount",
  "concession_pct_of_room": 41.47,
  "walk_away_risk": "low",
  "rationale_short": "Trade terms kept inside the policy boundary.",
  "reply": "At 300.89 on prepaid_discount terms, we can align on the package."
}

action is one of counter_offer | accept_offer | hold_current | walk_away. close_deal is a strategy, not an action — this was the single quantized failure mode that the drill eliminated.

Serving and guardrails

The companion repo ships serve/app.py (FastAPI) and scripts/modal_demo.py (Modal H100 ASGI deployment). The server keeps the hidden deal policy and runs enforce_guardrails on every response: price floor clamp, concession pacing, terms allowlist, irrational-jump check, leak sanitization, and max-turn exit. Only a client-safe view of state is returned. A live demo is linked in the GitHub README.

Limitations

  • Trained on synthetic episodes; no real counterparty corpus.
  • Small holdout confidence intervals are now tight for the gates, but deal quality metrics still have wide intervals (n=80 episodes).
  • The model is not a legal or commercial advisor; guardrails enforce the configured policy, not real-world contract law.
  • Hidden limit protection depends on the prompt contract and guardrail layer; do not expose raw prompts or hidden config through an API.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Ревизия весов
d401a20

0 моделей