Instructions to use digitalassistant-ai/Selling-Assistant-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use digitalassistant-ai/Selling-Assistant-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="digitalassistant-ai/Selling-Assistant-V1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("digitalassistant-ai/Selling-Assistant-V1", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use digitalassistant-ai/Selling-Assistant-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "digitalassistant-ai/Selling-Assistant-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitalassistant-ai/Selling-Assistant-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/digitalassistant-ai/Selling-Assistant-V1
- SGLang
How to use digitalassistant-ai/Selling-Assistant-V1 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 "digitalassistant-ai/Selling-Assistant-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitalassistant-ai/Selling-Assistant-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "digitalassistant-ai/Selling-Assistant-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitalassistant-ai/Selling-Assistant-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use digitalassistant-ai/Selling-Assistant-V1 with Docker Model Runner:
docker model run hf.co/digitalassistant-ai/Selling-Assistant-V1
Upload 3 files
Browse files- .gitattributes +2 -0
- README.md +115 -0
- selling_assistant.png +3 -0
- workflow.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
selling_assistant.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
workflow.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- Qwen/Qwen2.5-0.5B
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- cn
|
| 8 |
+
tags:
|
| 9 |
+
- agent
|
| 10 |
+
- intent-recognition
|
| 11 |
+
- sentiment-analysis
|
| 12 |
+
- conversion-prediction
|
| 13 |
+
- script-generation
|
| 14 |
+
- quality-assurance
|
| 15 |
+
library_name: transformers
|
| 16 |
+
---
|
| 17 |
+
# Selling-Assistant-V1
|
| 18 |
+
|
| 19 |
+
<p align="center">
|
| 20 |
+
<img src="selling_assistant.png" width=75%/>
|
| 21 |
+
<p>
|
| 22 |
+
|
| 23 |
+
## Overview
|
| 24 |
+
|
| 25 |
+
Selling-Assistant-V1 is an intelligent sales assistant model trained primarily on Chinese sales dialogues and service logs. It understands customer intent, analyzes sentiment, predicts purchase propensity, generates persuasive sales scripts, and audits conversations for compliance and quality. The model is packaged for local inference with the Transformers ecosystem and can be embedded into CRM systems, chat widgets, and customer service tools.
|
| 26 |
+
|
| 27 |
+
- Model path: `/Users/wangyiwen/Desktop/Selling_AI/model_simulation/model`
|
| 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 |
+
## Key Capabilities
|
| 32 |
+
|
| 33 |
+
1. Intent Recognition: Predicts and classifies sales intent to guide conversation strategy.
|
| 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 |
+
The specific workflow is shown here:
|
| 40 |
+
<p align="center">
|
| 41 |
+
<img src="workflow.png" width=75%/>
|
| 42 |
+
<p>
|
| 43 |
+
|
| 44 |
+
## Quickstart
|
| 45 |
+
|
| 46 |
+
Install dependencies:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
pip install transformers accelerate torch --upgrade
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Minimal inference (local path):
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 56 |
+
|
| 57 |
+
MODEL_PATH = "https://huggingface.co/wwwywcom/Selling-Assistant-V1/tree/main/model"
|
| 58 |
+
|
| 59 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
|
| 60 |
+
model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, device_map="auto", torch_dtype="auto")
|
| 61 |
+
|
| 62 |
+
assistant = pipeline(
|
| 63 |
+
"text-generation",
|
| 64 |
+
model=model,
|
| 65 |
+
tokenizer=tokenizer,
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
prompt = (
|
| 69 |
+
"你是一名智能销售助手。用户正在寻找价格友好、适合小户型房子的智能家居设备。"
|
| 70 |
+
"请推荐三个产品,并给出简短且有说服力的销售话术。"
|
| 71 |
+
)
|
| 72 |
+
|
| 73 |
+
out = assistant(
|
| 74 |
+
prompt,
|
| 75 |
+
max_new_tokens=256,
|
| 76 |
+
do_sample=True,
|
| 77 |
+
temperature=0.7,
|
| 78 |
+
top_p=0.9,
|
| 79 |
+
)
|
| 80 |
+
print(out[0]["generated_text"])
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Recommended settings:
|
| 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 |
+
## Architecture & Files
|
| 89 |
+
|
| 90 |
+
This repository includes a ready-to-run model directory containing tokenizer and weights for direct loading:
|
| 91 |
+
- `config.json`, `model.safetensors`, `tokenizer.json`, `vocab.json`, `merges.txt`, `special_tokens_map.json`, `added_tokens.json`, `tokenizer_config.json`, `chat_template.jinja`
|
| 92 |
+
|
| 93 |
+
## Safety & Responsible Use
|
| 94 |
+
|
| 95 |
+
Use the model in accordance with the Apache 2.0 License. Ensure generated content respects applicable laws, privacy, and platform policies. Apply domain-specific guardrails for compliance and brand tone. Always verify critical recommendations (e.g., pricing, legal terms) before use.
|
| 96 |
+
|
| 97 |
+
## Limitations
|
| 98 |
+
|
| 99 |
+
- Trained primarily on Chinese data; performance in non-Chinese contexts may vary.
|
| 100 |
+
- Conversion predictions are probabilistic and should be combined with business rules.
|
| 101 |
+
- Complex multi-turn dialogues may require retrieval augmentation and session memory.
|
| 102 |
+
|
| 103 |
+
## Roadmap
|
| 104 |
+
|
| 105 |
+
- Multi-lingual fine-tuning and domain adapters
|
| 106 |
+
- Retrieval-augmented generation for product catalogs and FAQs
|
| 107 |
+
- Advanced QA scoring and compliance templates
|
| 108 |
+
|
| 109 |
+
## License
|
| 110 |
+
|
| 111 |
+
Apache 2.0. You retain rights to generated content, subject to compliance and responsible-use guidelines.
|
| 112 |
+
|
| 113 |
+
## Acknowledgements
|
| 114 |
+
|
| 115 |
+
Built with Hugging Face Transformers and community datasets. Inspired by best practices in intent detection, sentiment modeling, and sales conversation design.
|
selling_assistant.png
ADDED
|
Git LFS Details
|
workflow.png
ADDED
|
Git LFS Details
|