π qa-retailpro: Instruction-tuned LLM for E-commerce Customer Support
qa-retailpro
is a domain-adapted instruction-tuned language model designed for retail and e-commerce customer service scenarios.
Based on the powerful Qwen2.5-7B backbone, this model is optimized to handle natural conversations involving product queries, logistics, refunds, order tracking, returns, and general shopping support.
π‘ Key Features
- Retail-tuned Instruction Model: Trained on common e-commerce Q&A tasks.
- Context-aware & Conversational: Understands multi-turn shopping dialogues.
- Multilingual Ready: Supports over 29 languages including English, Chinese, French, Spanish, etc.
- Structured Output Capable: Great at generating FAQ entries, JSON, and table-friendly responses.
- Long-Context Support: Up to 128K tokens (with YaRN extension).
- Built on:
Qwen2.5-7B
by MIAOAI.
π Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "MIAOAI/qa-retailpro"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "What is your return policy for electronics?"
messages = [
{"role": "system", "content": "You are a helpful retail assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
output = model.generate(**model_inputs, max_new_tokens=512)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)
ποΈ Example Use Cases
- π€ E-commerce chatbot agents
- π¦ Order/return tracking Q&A
- β FAQ auto-generation
- π Product detail and review summarization
- π Cross-border retail customer service
π§° Long Context Configuration
To handle long inputs (over 32K tokens), modify your config.json
:
"rope_scaling": {
"factor": 4.0,
"original_max_position_embeddings": 32768,
"type": "yarn"
}
For more info, see YaRN paper.
π Citation
@misc{qa-retailpro,
title = {QA-RetailPro: Instruction-tuned Qwen2.5 model for E-commerce Assistants},
author = {MIAOAI Team},
year = {2025},
url = {https://huggingface.co/MIAOAI/qa-retailpro}
}
π License
Apache 2.0 License. See LICENSE for full terms.
π€ Contact
For business inquiries or collaborations, please reach out via Hugging Face Discussions.
- Downloads last month
- 22
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support