---
title: "Cost optimization (hard)"
description: "Reducing infrastructure or cloud spend"
url: "https://swe.quest/tags/cost-optimization?difficulty=hard&per=12"
---

# Cost optimization (hard)

Topic in Reliability & operations: Reducing infrastructure or cloud spend

By difficulty: [Easy](https://swe.quest/tags/cost-optimization.md?difficulty=easy) · [Medium](https://swe.quest/tags/cost-optimization.md?difficulty=medium) · [Hard](https://swe.quest/tags/cost-optimization.md?difficulty=hard)

Posts 1–12 of 15, page 1 of 2, newest first.

## 2026-11-30

- [Training and Serving Multimodal LLMs in Production](https://swe.quest/articles/training-and-serving-multimodal-llms-in-production-25a82cfa670b2153.md): Canva Engineering · 2026-11-30 · Hard · 21 min read · Inference & serving, Model training, LLMs, Computer vision, Cost optimization
  Canva fine-tuned a 4B Qwen3.5 vision-language model to run 30+ content and quality checks on over 100k images a day, cutting LLM costs by about 85% and halving the false negative rate without raising false positives.

## 2026-10-22

- [Introducing our Training API](https://swe.quest/articles/introducing-our-training-api-a5babdede3e3cd17.md): Modal · 2026-10-22 · Hard · 7 min read · Model training, ML platforms, Multi-tenancy, Cost optimization, Open source
  Spindle is an open-source, Tinker-compatible post-training server that runs in a user's Modal workspace and bills for GPU time instead of tokens, so teams can customize models and features.

## 2026-10-21

- [How Specializing the Vocabulary of SLMs Can Cut Inference Cost by 77% in Real Applications](https://swe.quest/articles/how-specializing-the-vocabulary-of-slms-can-cut-inference-cost-by-77-in-real-c0f4e920b37cfe6d.md): Hugging Face · 2026-10-21 · Hard · 11 min read · Inference & serving, LLMs, Cost optimization, Model training
  VocabX rebuilds a fine-tuned small model's tokenizer by choosing tokens for the cost they save rather than how often they appear.
- [How Shopify turns open models into task experts](https://swe.quest/articles/how-shopify-turns-open-models-into-task-experts-a2ba67e222beb92b.md): Shopify Engineering · 2026-10-21 · Hard · 5 min read · Model training, Inference & serving, Evaluation, AI agents, Cost optimization
  Shopify's Sidekick keeps a frontier model for merchant conversation and planning but offloads token-heavy subagent work, such as GraphQL query generation, to open models it post-trains and self-hosts.

## 2026-10-16

- [Advancing Generative Recommendation Inference: our collaboration with NVIDIA on TensorRT LLM](https://swe.quest/articles/advancing-generative-recommendation-inference-our-collaboration-with-nvidia-on-edd2a66abab4a278.md): Spotify Engineering · 2026-10-16 · Hard · 7 min read · Inference & serving, Recommendations & ranking, LLMs, Cost optimization
  Spotify consolidated its LLM-based generative recommendation inference onto TensorRT LLM, working with NVIDIA to add the features it had been splitting across engines. vLLM handled beam search for semantic-ID candidate generation, but its beam search runs outside the core GPU engine and recomputes partially filled KV blocks.

## 2026-10-14

- [Why Redshift Serverless can’t match ClickHouse Cloud for real-time analytics](https://swe.quest/articles/why-redshift-serverless-can-t-match-clickhouse-cloud-for-real-time-analytics-8ba7c0518a8afd27.md): ClickHouse · 2026-10-14 · Hard · 20 min read · Analytics & OLAP, Stream processing, Cost optimization, Performance engineering, Cloud platforms
  In a CostBench continuous-ingestion test streaming 113.2 billion stock quotes at a target of 1M rows/s, ClickHouse Cloud scored 1,996× better end-to-end performance per dollar than Redshift Serverless.

## 2026-10-13

- [Toward RL on mixed-precision, mixed-accelerator samplers](https://swe.quest/articles/toward-rl-on-mixed-precision-mixed-accelerator-samplers-1c0dc5519077aec1.md): Modal · 2026-10-13 · Hard · 17 min read · Model training, Inference & serving, LLMs, Hardware, Cost optimization
  RL training of Qwen3.6-35B-A3B on agentic coding stays stable when samplers run on six accelerator types (A100 through B300, RTX PRO 6000) in NVFP4, FP8 and BF16 with their own kernels, feeding a BF16 trainer on B200.

## 2026-09-11

- [Evolving Pinterest’s Embedding Retrieval Platform](https://swe.quest/articles/evolving-pinterest-s-embedding-retrieval-platform-c93c0b5fa7cc0d54.md): Pinterest Engineering · 2026-09-11 · Hard · 7 min read · Vector search, Search, Cost optimization, Recommendations & ranking, Performance engineering
  Pinterest is evolving Manas, its in-house distributed search platform serving billions of embeddings across 80+ clusters, along three fronts: quantization, SSD-based ANN serving, and multi-embedding retrieval.

## 2026-08-19

- [Gisting: Compressing LLM Agent context to ↑ throughput and ↓ cost](https://swe.quest/articles/gisting-compressing-llm-agent-context-to-throughput-and-cost-77b1a192c9e3be28.md): Shopify Engineering · 2026-08-19 · Hard · 5 min read · Inference & serving, LLMs, Model training, Cost optimization, Performance engineering
  Shopify compressed the ~6,000-token system prompt of its Sidekick GraphQL agent into ~1,500 learned gist tokens (4:1) without losing prediction quality.

## 2026-08-11

- [Thinking of ACE? We Can Do It with Fewer Tokens](https://swe.quest/articles/thinking-of-ace-we-can-do-it-with-fewer-tokens-2dc38e3991553657.md): Hugging Face · 2026-08-11 · Hard · 8 min read · AI agents, LLMs, Evaluation, Cost optimization
  ALTK-Evolve and ACE both turn an LLM agent's past trajectories into reusable lessons without weight updates.

## 2026-08-05

- [Sidekick's continual learning loop](https://swe.quest/articles/sidekick-s-continual-learning-loop-f72e46000910fa09.md): Shopify Engineering · 2026-08-05 · Hard · 9 min read · Model training, Evaluation, Inference & serving, LLMs, Cost optimization
  Shopify's Sidekick GraphQL agent improves daily through a continual learning loop that turns production failures into model weight updates, beating frontier-model quality while cutting estimated serving costs from about $27M to $1M per year (96%).

## 2026-03-03

- [Why We Ditched Flink Table API Joins: Cutting State by 75% with DataStream Unions](https://swe.quest/articles/why-we-ditched-flink-table-api-joins-cutting-state-by-75-with-datastream-unions-939c1fa5429761f5.md): Zalando Engineering · 2026-03-03 · Hard · 9 min read · Stream processing, Performance engineering, Cost optimization, Cloud platforms
  Chained Flink 1.20 Table API/SQL joins amplified state because each join operator keeps its own copy of upstream records in RocksDB, pushing Zalando's Product Offer Enrichment jobs to about 240GB of state.

[Next page](https://swe.quest/tags/cost-optimization.md?difficulty=hard&per=12&page=2)

Same list as RSS: [https://swe.quest/feed.xml?difficulty=hard&tag=cost-optimization](https://swe.quest/feed.xml?difficulty=hard&tag=cost-optimization). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
