Technology Overview

The AI technology stack for commerce — foundational models, agentic AI, LLMs, privacy & security, investment costs, and what comes next — based on Book Part 5 of the AI Best Practices for Commerce reference.

Section 3 of 838% complete

Comparing Public LLMs

Which model, for which task, at what cost

Meta: Open Weights and Community Power

Meta’s Llama models represented a fundamentally different approach: open-weights models that retailers could run on their own infrastructure, modify freely, and customize without limitations.

The Llama 3 series, released in April 2024 in 8B and 70B parameter versions, delivered performance approaching Claude 3 Sonnet. For high-volume, well-defined tasks, the economics were compelling as self-hosting eliminated per-inference API costs. Retailers processing tens of millions of product descriptions monthly could compute costs in the thousands of dollars versus hundreds of thousands for equivalent API calls.

Llama 3.1, released in July 2024, added a 405B parameter model and 128K context windows, closing capability gaps with proprietary models. The real power lay in fine-tuning for specialized tasks. Generic LLMs understood general retail concepts, but fine-tuned Llama models could master domain-specific knowledge, understanding the difference between agricultural and gardening terminology, knowing seasonal buying patterns for specialty products, and recommending items for specific contexts that general-purpose models missed.

Community ecosystem meant solutions emerged rapidly. When retailers needed sentiment analysis optimized for product reviews or models understanding furniture dimensions and spatial relationships, the Hugging Face community often had already created fine-tuned variants. Online communities like r/LocalLLaMA became resources for retail technical teams sharing prompting strategies and model configurations.

Data privacy took on new meaning with Llama. For retailers processing competitively sensitive data such as pricing strategies, vendor negotiations, or proprietary customer insights, running models on-premise eliminated risks of data exposure through API calls. This mattered especially in B2B commerce, where relationship details and pricing terms were confidential.

Llama 3.2, released in September 2024, added vision capabilities with 11B and 90B vision models. Meta also released 1B and 3B models optimized for edge and mobile devices, enabling on-device inference without internet connectivity. Booz Allen Hamilton demonstrated this by deploying Llama 3.2 aboard the International Space Station, showing how the models could operate in disconnected, constrained environments.

Training costs were substantial. Meta trained Llama 3.1 405B on more than 16,000 NVIDIA H100 GPUs. At $25,000-$40,000 per chip, this represented up to $640 million in hardware investment alone, though these costs were borne by Meta, not by retailers deploying the resulting models.

The tradeoffs were real. Self-hosting required infrastructure expertise, GPU clusters, model serving infrastructure, and monitoring systems. Smaller retailers without technical teams found this impractical. Model updates meant redeploying infrastructure rather than transparently benefiting from provider improvements. And while Llama 3.1 405B approached GPT-4 capability, it didn’t match the reasoning depth of o1 or the long context of Claude.

But for retailers with technical capability and high-volume needs, Llama opened possibilities that API-based models couldn’t match: true customization, unlimited fine-tuning experimentation, and economics that made previously infeasible applications viable.

🌐
Source: AI Best Practices for Commerce, Section 5.3
Share

Last updated: March 12, 2026