MarketLens β€” AI Product Intelligence

Fine-tuned from meta-llama/Meta-Llama-3.1-8B-Instruct using QLoRA for two e-commerce tasks:

  1. Product Analysis β€” WINNER / LOSER / RISKY verdicts with red flags, market truth, and investment recommendation
  2. Ad Copy Generation β€” hooks, headlines, primary text, and CTA for Meta Ads, TikTok, Google

Training

  • Base model: meta-llama/Meta-Llama-3.1-8B-Instruct
  • Method: QLoRA (4-bit NF4, LoRA rank 16, alpha 32)
  • Dataset: 150,000 examples (75K product analysis + 75K marketing copy)
  • Source: McAuley-Lab/Amazon-Reviews-2023 β€” 25 categories, 135,235 real products with reviews

What each training example contains

PRODUCT: [real product title]
CATEGORY: [category]
PRICE: [price]
AVERAGE RATING: [X/5] (N reviews)
DESCRIPTION: [real product description]
FEATURES: [real product features]
CUSTOMER REVIEWS:
[β˜…β˜†β˜†β˜†β˜†] [real review text]
[β˜…β˜…β˜…β˜…β˜…] [real review text]
β†’ VERDICT: WINNER/LOSER/RISKY + full analysis

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
import torch

BASE_MODEL = "meta-llama/Meta-Llama-3.1-8B-Instruct"
LORA_MODEL = "PanosAnag/llama-3.1-ecommerce-analyzer"

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.float16,
)

tokenizer = AutoTokenizer.from_pretrained(LORA_MODEL)
model = AutoModelForCausalLM.from_pretrained(BASE_MODEL, quantization_config=bnb_config, device_map="auto")
model = PeftModel.from_pretrained(model, LORA_MODEL)
model.eval()

GitHub

https://github.com/PanagiotisAnag/llama-3.1-ecommerce-analyzer

Framework Versions

  • PEFT 0.19.1
  • TRL 0.24.0
  • Transformers 5.5.0
  • PyTorch 2.6.0+cu124
Downloads last month
49
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for PanosAnag/llama-3.1-ecommerce-analyzer

Adapter
(2296)
this model