---
title: "How Shopify turns open models into task experts (2026) - Shopify"
description: "Shopify’s Sidekick AI commerce assistant uses a frontier model for merchant interaction and hands off specialized tasks to post-trained open models. For the GraphQL subagent, they post-trained NVIDIA Nemotron 3.5 Lightning, which scored higher than the frontier model on their judge, responded 7x faster, and cost 90% less to serve. The Model Optimization Flywheel defines quality with an LLM judge tuned via GEPA and ACE optimizers, improves the frontier agent through an autoresearch loop, selects an open model like Nemotron, and optimizes inference using NVIDIA AIPerf and TensorRT-LLM. Self-healing turns failed production conversations into training examples; over 86 nightly runs it repaired 69% of failures, and human annotators correct the rest. After six flywheel loops and 61,000 healed examples, the post-trained model’s judge score rose from 37.7 to 74.5, surpassing the frontier model’s 73, while serving cost dropped 90% and median response time fell from 6.50s to 0.87s."
---

# How Shopify turns open models into task experts (2026) - Shopify

[Shopify](https://yomu.fyi/company/shopify) · Andrew McNamara · Oct 21, 2026

**Type:** Explainer

## Summary

Shopify’s Sidekick AI commerce assistant uses a frontier model for merchant interaction and hands off specialized tasks to post-trained open models. For the GraphQL subagent, they post-trained NVIDIA Nemotron 3.5 Lightning, which scored higher than the frontier model on their judge, responded 7x faster, and cost 90% less to serve. The Model Optimization Flywheel defines quality with an LLM judge tuned via GEPA and ACE optimizers, improves the frontier agent through an autoresearch loop, selects an open model like Nemotron, and optimizes inference using NVIDIA AIPerf and TensorRT-LLM. Self-healing turns failed production conversations into training examples; over 86 nightly runs it repaired 69% of failures, and human annotators correct the rest. After six flywheel loops and 61,000 healed examples, the post-trained model’s judge score rose from 37.7 to 74.5, surpassing the frontier model’s 73, while serving cost dropped 90% and median response time fell from 6.50s to 0.87s.

## Context

Shopify’s Sidekick AI assistant uses a frontier model for merchant interaction and delegates specialized tasks to subagents. To reduce cost and latency, they post-train open models like NVIDIA Nemotron 3.5 Lightning for specific tasks such as GraphQL query generation. They developed a Model Optimization Flywheel that iteratively improves these task experts using production data, self-healing, and NVIDIA hardware.

## Approach / What changed

The Model Optimization Flywheel consists of six steps: 1) Define quality with an LLM judge tuned via GEPA and ACE optimizers. 2) Improve the frontier agent through an autoresearch loop that proposes small changes. 3) Choose an open model by testing in the real subagent. 4) Optimize inference using NVIDIA AIPerf and TensorRT-LLM. 5) Turn failures into training data via self-healing, where a frontier critic writes hints and a simulated merchant reruns requests. 6) Post-train on Blackwell using NVIDIA Megatron Bridge. The loop repeats with each new batch of production data.

## Takeaways

- Post-training NVIDIA Nemotron 3.5 Lightning for the GraphQL subagent improved its judge score from 37.7 to 74.5 over six flywheel loops, surpassing the frontier model’s score of 73.
- Self-healing repaired 69% of failed production conversations over 86 nightly runs, turning them into training examples without human intervention.
- Self-hosting post-trained models on Shopify’s own GPUs reduces serving cost by 90-98% compared to frontier model API pricing, and Blackwell GPUs accelerate training 1.86x over H200.

## FAQ

### How does Shopify ensure the quality of post-trained models?

They define a scoring rubric with an LLM judge tuned via GEPA and ACE optimizers to agree with human labels. The judge scores every agent change and training run, ensuring quality.

### What is the self-healing process for failed conversations?

A frontier model critic writes a hint, and a simulated merchant reruns the request. If the judge passes the rerun, the conversation is anonymized and added to the training set. If not, the critic tries up to three times.

### How much faster and cheaper is the post-trained GraphQL model?

The post-trained Nemotron model responds in 0.87 seconds median vs 6.50 seconds for the frontier model, and costs about 90% less to serve.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [Blackwell](https://yomu.fyi/topic/blackwell), [Fine-Tuning](https://yomu.fyi/topic/fine-tuning), [LLMs](https://yomu.fyi/topic/llm), [NVIDIA](https://yomu.fyi/topic/nvidia)

- Source: [Shopify](https://shopify.engineering/open-model-task-experts)
- Source URL: https://shopify.engineering/open-model-task-experts
- Ingested by Yomu: 2026-10-23T06:00:16.667Z

[Read original post](https://shopify.engineering/open-model-task-experts)
