Views
No views yet
| Category | Score |
|---|---|
| Query Understanding | 98.4 |
| Product Recommendation | 95.2 |
| Product Comparison | 93.1 |
| Review Synthesis | 91.0 |
| Price Analysis | 89.7 |
| Purchase Decision | 88.4 |
| Attribute Extraction | 85.3 |
| Personalization | 77.6 |
| Overall | 90.55 |
1from mlx_lm import load, generate
2
3model, tokenizer = load(
4 "Qwen/Qwen2.5-7B-Instruct",
5 adapter_path="snapcart-ai/sam-1-base-lora"
6)
7
8prompt = "Compare these two laptops and recommend which one to buy..."
9response = generate(model, tokenizer, prompt=prompt, max_tokens=512)
10print(response)