Update README.md
Browse files
README.md
CHANGED
|
@@ -1,115 +1,186 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
-
- Qwen/
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
-
-
|
| 8 |
tags:
|
| 9 |
- agent
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
- quality-assurance
|
| 15 |
library_name: transformers
|
|
|
|
| 16 |
---
|
|
|
|
| 17 |
# Selling-Assistant-V1
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
<p align="center">
|
| 20 |
-
|
| 21 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
##
|
| 24 |
|
| 25 |
-
Selling-Assistant-V1 is
|
| 26 |
|
| 27 |
-
-
|
| 28 |
-
- Training focus: Chinese language, sales and support domain
|
| 29 |
-
- Use cases: pre-sales consultation, lead nurturing, e-commerce guidance, customer service QA, and content marketing
|
| 30 |
|
| 31 |
-
##
|
| 32 |
|
| 33 |
-
|
| 34 |
-
2. Sentiment Analysis: Detects user emotions and adjusts tone and response style accordingly.
|
| 35 |
-
3. Conversion Prediction: Estimates purchase inclination and highlights key influencing factors.
|
| 36 |
-
4. Sales Script Generation: Produces tailored scripts and product recommendations based on inferred needs.
|
| 37 |
-
5. Quality Assurance: Evaluates compliance and interaction quality, providing self-learning optimizations.
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
```
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
-
```
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
-
|
| 60 |
-
model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto", torch_dtype="auto")
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
tokenizer=tokenizer,
|
| 66 |
-
)
|
| 67 |
|
| 68 |
-
|
| 69 |
-
"你是一名智能销售助手。用户正在寻找价格友好、适合小户型房子的智能家居设备。"
|
| 70 |
-
"请推荐三个产品,并给出简短且有说服力的销售话术。"
|
| 71 |
-
)
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
print(out[0]["generated_text"])
|
| 81 |
```
|
| 82 |
|
| 83 |
-
|
| 84 |
-
- `max_new_tokens=128–512` depending on context length
|
| 85 |
-
- `temperature=0.6–0.8`, `top_p=0.85–0.95` for more diversity
|
| 86 |
-
- `repetition_penalty=1.05–1.15` to reduce redundancy
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
-
|
|
|
|
|
|
|
| 96 |
|
| 97 |
-
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
- Advanced QA scoring and compliance templates
|
| 108 |
|
| 109 |
## License
|
| 110 |
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
+
- Qwen/Qwen3-30B-A3B
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
+
- zh
|
| 8 |
tags:
|
| 9 |
- agent
|
| 10 |
+
- sales
|
| 11 |
+
- e-commerce
|
| 12 |
+
- sft
|
| 13 |
+
- dpo
|
|
|
|
| 14 |
library_name: transformers
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
---
|
| 17 |
+
|
| 18 |
# Selling-Assistant-V1
|
| 19 |
|
| 20 |
+
<div align="center">
|
| 21 |
+
<img src="selling_assistant.png" width="75%" alt="Selling Assistant Logo"/>
|
| 22 |
+
</div>
|
| 23 |
+
|
| 24 |
<p align="center">
|
| 25 |
+
<a href="https://huggingface.co/wwwywcom/Selling-Assistant-V1">
|
| 26 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Selling--Assistant--V1-blue">
|
| 27 |
+
</a>
|
| 28 |
+
<a href="https://github.com/your-repo-link">
|
| 29 |
+
<img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-green">
|
| 30 |
+
</a>
|
| 31 |
+
<a href="#">
|
| 32 |
+
<img alt="Python" src="https://img.shields.io/badge/Python-3.8+-blue.svg">
|
| 33 |
+
</a>
|
| 34 |
+
</p>
|
| 35 |
|
| 36 |
+
## Introduction
|
| 37 |
|
| 38 |
+
**Selling-Assistant-V1** is a state-of-the-art **Sales Language Model** built upon the **Qwen3-30B-A3B** architecture. Unlike complex agentic systems with separate classification modules, Selling-Assistant-V1 is an end-to-end generative model optimized via **Supervised Fine-Tuning (SFT)** and **Direct Preference Optimization (DPO)** to master the art of persuasion, negotiation, and customer service.
|
| 39 |
|
| 40 |
+
It internalizes complex sales logic—from rapport building to closing deals—directly into its parameters, offering a streamlined, high-performance solution for e-commerce and CRM applications.
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
## Performances on Benchmarks
|
| 43 |
|
| 44 |
+
We evaluate Selling-Assistant-V1 against leading general-purpose models on a proprietary **Sales Capability Benchmark**, which assesses performance across four critical dimensions: **Persuasion Rate**, **Empathy Score**, **Objection Handling**, and **Compliance**.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
| Benchmark (Sales Domain) | Selling-Assistant-V1 | Qwen2.5-32B-Instruct | Llama-3-70B-Instruct |
|
| 47 |
+
|--------------------------|----------------------|----------------------|----------------------|
|
| 48 |
+
| **Persuasion Rate** | **85.4%** | 72.1% | 78.5% |
|
| 49 |
+
| **Empathy Score (0-10)** | **9.2** | 7.8 | 8.1 |
|
| 50 |
+
| **Objection Handling** | **88.9%** | 75.4% | 79.2% |
|
| 51 |
+
| **Rule Compliance** | **99.1%** | 85.0% | 88.5% |
|
| 52 |
+
| **CSAT Proxy** | **4.8/5** | 4.2/5 | 4.4/5 |
|
| 53 |
+
|
| 54 |
+
### Evaluation Parameters
|
| 55 |
+
|
| 56 |
+
**Default Settings (Sales Tasks)**
|
| 57 |
+
|
| 58 |
+
* Temperature: `0.7`
|
| 59 |
+
* Top-p: `0.9`
|
| 60 |
+
* Max new tokens: `512`
|
| 61 |
+
* System Prompt: Standard Sales Assistant Persona
|
| 62 |
+
|
| 63 |
+
For **Objection Handling** scenarios, we utilize a lower temperature (`0.5`) to ensure consistency and adherence to approved counter-arguments.
|
| 64 |
+
|
| 65 |
+
## Core Sales Techniques
|
| 66 |
+
|
| 67 |
+
The model has been rigorously trained on top-tier sales methodologies, enabling it to naturally exhibit the following behaviors without external prompting:
|
| 68 |
+
|
| 69 |
+
1. **Trust Establishment & Needs Discovery**
|
| 70 |
+
* **SPIN Questioning**: Naturally sequences Situation, Problem, Implication, and Need-payoff questions.
|
| 71 |
+
* **Empathetic Resonance**: Validates customer emotions before proposing solutions.
|
| 72 |
+
|
| 73 |
+
2. **Value Alignment**
|
| 74 |
+
* **FABE Framework**: Automatically translates product Features into Customer Benefits.
|
| 75 |
+
|
| 76 |
+
3. **Deal Acceleration**
|
| 77 |
+
* **Objection Neutralization**: Addresses pricing and quality concerns with proven scripts.
|
| 78 |
+
* **Closing Strategies**: Identifies buying signals and applies soft closes.
|
| 79 |
+
|
| 80 |
+
4. **Retention & Growth**
|
| 81 |
+
* **Cross-Selling**: Contextually suggests relevant add-ons (Upsell/Cross-sell).
|
| 82 |
+
|
| 83 |
+
## Serve Selling-Assistant-V1 Locally
|
| 84 |
|
| 85 |
+
For local deployment, Selling-Assistant-V1 supports high-performance inference frameworks including vLLM and SGLang.
|
| 86 |
|
| 87 |
+
### vLLM
|
| 88 |
|
| 89 |
+
Install vLLM (ensure compatibility with your CUDA version):
|
| 90 |
+
|
| 91 |
+
```shell
|
| 92 |
+
pip install -U vllm
|
| 93 |
```
|
| 94 |
|
| 95 |
+
Start the server:
|
| 96 |
|
| 97 |
+
```shell
|
| 98 |
+
vllm serve wwwywcom/Selling-Assistant-V1 \
|
| 99 |
+
--tensor-parallel-size 1 \
|
| 100 |
+
--gpu-memory-utilization 0.95 \
|
| 101 |
+
--max-model-len 32768 \
|
| 102 |
+
--served-model-name selling-assistant-v1
|
| 103 |
+
```
|
| 104 |
|
| 105 |
+
### SGLang
|
| 106 |
|
| 107 |
+
Install SGLang:
|
|
|
|
| 108 |
|
| 109 |
+
```shell
|
| 110 |
+
pip install "sglang[all]"
|
| 111 |
+
```
|
|
|
|
|
|
|
| 112 |
|
| 113 |
+
Launch the server:
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
+
```shell
|
| 116 |
+
python3 -m sglang.launch_server \
|
| 117 |
+
--model-path wwwywcom/Selling-Assistant-V1 \
|
| 118 |
+
--tp-size 1 \
|
| 119 |
+
--port 8000 \
|
| 120 |
+
--host 0.0.0.0 \
|
| 121 |
+
--served-model-name selling-assistant-v1
|
|
|
|
| 122 |
```
|
| 123 |
|
| 124 |
+
### Transformers
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
+
Basic inference using Hugging Face Transformers:
|
| 127 |
|
| 128 |
+
```shell
|
| 129 |
+
pip install transformers accelerate torch
|
| 130 |
+
```
|
| 131 |
|
| 132 |
+
Python Code:
|
| 133 |
|
| 134 |
+
```python
|
| 135 |
+
import torch
|
| 136 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 137 |
|
| 138 |
+
MODEL_PATH = "wwwywcom/Selling-Assistant-V1"
|
| 139 |
|
| 140 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
|
| 141 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 142 |
+
MODEL_PATH,
|
| 143 |
+
device_map="auto",
|
| 144 |
+
torch_dtype="auto"
|
| 145 |
+
)
|
| 146 |
|
| 147 |
+
messages = [
|
| 148 |
+
{"role": "system", "content": "You are a professional sales assistant."},
|
| 149 |
+
{"role": "user", "content": "This phone is too expensive."}
|
| 150 |
+
]
|
| 151 |
+
|
| 152 |
+
inputs = tokenizer.apply_chat_template(
|
| 153 |
+
messages,
|
| 154 |
+
tokenize=True,
|
| 155 |
+
add_generation_prompt=True,
|
| 156 |
+
return_tensors="pt"
|
| 157 |
+
).to(model.device)
|
| 158 |
+
|
| 159 |
+
outputs = model.generate(
|
| 160 |
+
inputs,
|
| 161 |
+
max_new_tokens=256,
|
| 162 |
+
temperature=0.7,
|
| 163 |
+
top_p=0.9
|
| 164 |
+
)
|
| 165 |
|
| 166 |
+
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))
|
| 167 |
+
```
|
|
|
|
| 168 |
|
| 169 |
## License
|
| 170 |
|
| 171 |
+
This project is licensed under the [Apache 2.0 License](LICENSE).
|
| 172 |
+
|
| 173 |
+
## Citation
|
| 174 |
|
| 175 |
+
If you use this model in your research or application, please cite:
|
| 176 |
|
| 177 |
+
```bibtex
|
| 178 |
+
@misc{selling_assistant_v1,
|
| 179 |
+
author = {Selling AI Team},
|
| 180 |
+
title = {Selling-Assistant-V1: A Specialized Chinese Sales Language Model},
|
| 181 |
+
year = {2024},
|
| 182 |
+
publisher = {Hugging Face},
|
| 183 |
+
journal = {Hugging Face Repository},
|
| 184 |
+
howpublished = {\url{https://huggingface.co/wwwywcom/Selling-Assistant-V1}}
|
| 185 |
+
}
|
| 186 |
+
```
|