# A catalogue of green AI design patterns

> Eighteen named design patterns that cut the tokens, calls and energy of AI features, each with trade-offs, how to measure it and a code sketch.

Source: https://greenai.guide/engineering/design-patterns/  
Updated: 2026-11-26

## In short

Most of the energy an AI feature uses is fixed by its design: whether a model runs at all, which model runs, how much it reads and writes, and how often the work is repeated. This catalogue names eighteen patterns that reduce that work, from deterministic-first and model cascades to caches, bounded agent loops and carbon-aware scheduling. Each one comes with its trade-offs and the number to measure, because a pattern saves energy only if it saves it per successful task.

## Key points

- The cheapest model call is the one you never make: put deterministic code, lookups and caches in front of every model.
- Routers and cascades send easy requests to small models; FrugalGPT reported matching GPT-4's performance with up to 98% lower cost.
- Energy rises with tokens: Epoch AI estimates a typical ChatGPT query at about 0.3 Wh and about 2.5 Wh with a 10,000-token input.
- Agents and reasoning modes multiply work; bound them with goals, step limits and budgets, and switch reasoning on per request.
- Measure every pattern per successful task, including retries, escalations and cache mistakes, and watch for rebound in total use.

A design pattern is a named, reusable answer to a problem that keeps coming up. Software engineering has hundreds;
this catalogue collects the ones that matter most for the energy of AI features. None of them is exotic. Most are
caching, batching, validation and bounded loops, applied to the one operation that dominates the bill: running a
model.

The patterns are grouped by the question they answer. The code sketches are illustrations to adapt, not tested
library code or benchmarked products.

<!-- figure: a map of the eighteen patterns arranged as a funnel from "avoid the call" at the top through "make the call smaller" and "make the call cheaper" to "run it at a better time or place" at the bottom -->

## Why think in patterns?

**Because the energy of an AI feature is mostly set by a few design choices, and patterns make those choices
explicit, reviewable and reusable.** Once a team can say "this needs a cascade with a schema gate", it can also say
how to test it and what to measure.

Three facts drive the whole catalogue:

- **Energy rises with tokens.** Epoch AI estimates a typical ChatGPT query at about 0.3 Wh, rising to about 2.5 Wh
  with a 10,000-token input and almost 40 Wh with a 100,000-token input.
- **Model choice spans orders of magnitude.** Luccioni, Jernite and Strubell found multi-purpose generative models
  to be orders of magnitude more expensive to run than task-specific systems, even when controlling for model size.
- **Small changes add up.** UNESCO reports, from its work with University College London, that small task-specific
  models can cut energy use by up to 90%, shorter prompts and responses by over 50%, and model compression by up to
  44%.

### How to read each pattern

Each entry gives the **problem**, the **solution**, **when to use** it, the **trade-offs** (quality, latency and
[rebound](/glossary/#rebound-effect)), **how to measure** the saving and, where useful, a sketch. The measure is
always per successful task: a pattern that saves tokens on the first call but causes a retry, an escalation or a
wrong answer has not saved anything. See [how to track AI energy per task](/how-do-i/track-ai-energy-per-task/) and
[how to set a baseline](/how-do-i/set-a-baseline-for-ai-energy-savings/).

## Can we avoid the model call altogether?

**Often, yes, and avoided calls are the largest and safest saving.** A 2026 UK green AI sandpit of mathematicians,
computer scientists and industry summed this up as "the cheapest token is the one you never generate".

### 1. Deterministic first

- **Problem:** a model is used for work that plain code, a lookup, a regular expression or a classical algorithm
  does reliably.
- **Solution:** put deterministic handlers in front of the model. Call the model only when they decline.
- **Use when:** inputs are structured or repetitive (dates, IDs, units, known questions, validation).
- **Trade-offs:** handlers need maintenance and cover only what you anticipated. Deterministic answers are easier to
  test and audit, which is a gain, not a cost.
- **Measure:** the share of requests answered without a model call, and the error rate of those answers.

```python
def answer(request: str) -> str:
    for handler in (parse_tracking_number, lookup_faq, convert_units):
        result = handler(request)      # each returns None if it doesn't apply
        if result is not None:
            return result
    return call_model(request)
```

See [how to decide if a task needs AI](/how-do-i/decide-if-i-need-ai-for-a-task/) and
[when to choose classical ML instead of an LLM](/how-do-i/choose-classical-ml-instead-of-an-llm/).

### 2. Run on intent, not on event

- **Problem:** features call a model on every page load, keystroke or incoming message, and most results are never
  read.
- **Solution:** trigger generation when a user asks, debounce interactive triggers, and generate shared content once
  rather than per viewer.
- **Use when:** results are optional, shared or often ignored.
- **Trade-offs:** a short wait for results that used to be precomputed.
- **Measure:** calls per active user and the share of generated results that are opened or used.

See [how to design AI features that don't run needlessly](/how-do-i/design-ai-features-that-dont-run-needlessly/).

### 3. Exact response cache

- **Problem:** the same request is answered again and again.
- **Solution:** store answers keyed by a hash of the normalised request plus everything that changes the answer
  (model, prompt version, retrieved document versions), with an expiry that matches how fast the answer goes stale.
- **Use when:** traffic repeats: help desks, product questions, shared summaries.
- **Trade-offs:** stale answers if the key or expiry is wrong; personal data in the cache needs the same protection
  as the source.
- **Measure:** hit rate, and stale-answer complaints or corrections.

```python
key = sha256(f"{model}|{prompt_version}|{doc_versions}|{normalise(request)}".encode()).hexdigest()
if (hit := cache.get(key)) is not None:
    return hit
answer = call_model(request)
cache.set(key, answer, ttl=timedelta(hours=6))
```

See [how to cache LLM calls](/how-do-i/cache-llm-calls/) and
[how to stop regenerating AI answers](/how-do-i/stop-regenerating-ai-answers/).

### 4. Semantic cache

- **Problem:** requests repeat in meaning but not in wording.
- **Solution:** embed each request, look for a stored request above a similarity threshold, and return its answer.
- **Use when:** questions cluster (customer support, documentation) and a slightly generic answer is acceptable.
- **Trade-offs:** a false hit returns the right answer to the wrong question. The embedding and vector search cost
  energy too, though far less than generation. Regmi and Pun reported that their semantic cache cut API calls by up
  to 68.8% across query categories, with positive hit rates above 97%; your traffic will differ.
- **Measure:** hit rate and false-hit rate on a labelled sample, tuned by adjusting the threshold.

## Which model should do the work?

**The smallest one that passes your quality bar for that request.** Routing and cascades make that decision per
request instead of once for the whole feature.

### 5. Router

- **Problem:** one large model handles every request, including easy ones.
- **Solution:** a rule set or small classifier predicts difficulty and sends each request to a model tier.
- **Use when:** traffic mixes easy and hard requests and you can label some of each.
- **Trade-offs:** a mis-routed hard request gets a poor answer; the router itself must be cheap. RouteLLM reported
  cost reductions of over 2 times in certain cases without compromising response quality, and Hybrid LLM up to 40%
  fewer calls to the large model with no drop in response quality. Both measure cost, not energy.
- **Measure:** quality per tier on your evaluation set, routing accuracy, and energy per successful task.

### 6. Model cascade

- **Problem:** you cannot predict difficulty in advance.
- **Solution:** try the small model first, check the answer with a cheap gate (schema, tests, a confidence score),
  and escalate only on failure.
- **Use when:** failures are detectable cheaply.
- **Trade-offs:** escalated requests pay twice and take longer. A 2026 UK green AI sandpit warned that a model that is
  too small can fail and force a rerun on the big one, so a cascade can cost more than going straight to the large
  model. FrugalGPT, a cascade, reported matching GPT-4's performance with up to 98% lower cost.
- **Measure:** escalation rate, and total tokens per successful task across all attempts.

<!-- figure: a cascade with three model tiers, each followed by a quality gate; passing answers exit to the user, failing ones drop to the next tier, and a budget check sits before every call -->

```python
for tier in tiers:                     # ordered small to large
    if budget.exhausted():
        return Failure("budget")
    draft = tier.complete(request, max_output_tokens=tier.cap)
    budget.charge(draft)
    if all(gate(draft) for gate in gates):
        return draft
return Failure("no tier passed")
```

The [orchestration engine guide](/engineering/orchestration-engine/) builds this into a full reference sketch. See
also [how to set up model routing](/how-do-i/set-up-model-routing/) and
[choose the right model](/practice/choose-the-right-model/).

### 7. Reasoning on demand

- **Problem:** "thinking" modes are left on for every request.
- **Solution:** make reasoning a per-request choice, switched on by the router or by a failed first attempt.
- **Use when:** only some requests need multi-step reasoning.
- **Trade-offs:** some hard requests get a weaker first answer. Hugging Face's AI Energy Score team found that
  reasoning models used, on average, 30 times more energy than models without reasoning, and that the same model used
  between 150 and 700 times more with reasoning enabled.
- **Measure:** the share of requests with reasoning on, and quality with and without it.

See [how to use reasoning modes only when needed](/how-do-i/use-reasoning-modes-only-when-needed/).

### 8. Right-size and quantise

- **Problem:** the model you serve is larger or more precise than the task needs.
- **Solution:** pick the smallest model that passes, then test a quantised version of it. Dettmers and colleagues'
  LLM.int8() cut the memory needed for inference by half without performance degradation, for models up to 175B
  parameters.
- **Use when:** you self-host, or a provider offers smaller variants.
- **Trade-offs:** quality loss on some tasks; a smaller or lower-precision model is not always faster or leaner
  on every workload, so test rather than assume.
- **Measure:** evaluation score and measured energy per request, same hardware and load, before and after.

See [how to choose a smaller model](/how-do-i/choose-a-smaller-ai-model/),
[how to quantise a model](/how-do-i/quantise-a-model/) and
[how to distil a large model into a small one](/how-do-i/distil-a-large-model-into-a-small-one/).

## How do we make each call smaller?

**Send fewer input tokens, ask for fewer output tokens, and reuse the processing you have already paid for.**

### 9. Prompt (prefix) cache

- **Problem:** every call resends the same long system prompt, tool definitions or documents.
- **Solution:** put stable content first and the changing part last, so the provider can reuse the processed prefix.
  Anthropic prices cache reads at 0.1 times the base input price (less for some models), with a default lifetime of
  five minutes; OpenAI enables caching by default for supported models and discounts reused tokens by up to 95%.
- **Use when:** prompts share a long, stable prefix.
- **Trade-offs:** a timestamp or user name near the top breaks every hit; caching works only on an identical prefix.
- **Measure:** cached input tokens as a share of all input tokens, from the provider's usage fields.

### 10. Retrieval before generation

- **Problem:** whole documents, codebases or conversation histories go into every call.
- **Solution:** retrieve a few short, relevant passages; summarise or drop old turns.
- **Use when:** the model needs facts from a large corpus or a long history.
- **Trade-offs:** poor retrieval gives confident wrong answers; the index needs keeping up to date.
- **Measure:** input tokens per call, retrieval recall on a labelled set, and answer quality.

See [how to make vector search and RAG more efficient](/how-do-i/make-vector-search-and-rag-more-efficient/),
[how to stop resending the whole conversation](/how-do-i/stop-resending-the-whole-conversation/) and
[RAG or fine-tuning?](/how-do-i/choose-between-rag-and-fine-tuning/)

### 11. Structured, bounded output

- **Problem:** models write long prose that code then has to parse.
- **Solution:** ask for JSON against a schema, set a maximum output length, and validate the result in code.
- **Use when:** the output feeds another program.
- **Trade-offs:** a cap that is too tight truncates answers and forces retries; schemas need versioning.
- **Measure:** output tokens per call, schema-failure rate and truncation rate.

```python
reply = model.complete(prompt, max_output_tokens=300, response_format=INVOICE_SCHEMA)
invoice = Invoice.model_validate_json(reply.text)   # fail fast, don't re-ask in prose
```

See [how to limit how much an LLM writes](/how-do-i/limit-how-much-an-llm-writes/) and
[how to write prompts that use less energy](/how-do-i/write-prompts-that-use-less-energy/).

## How do we keep agents and multi-step work in check?

**Give every multi-step process a goal that ends it, hard limits, and reusable steps.** Anthropic reported that its
agents typically used about four times the tokens of chat interactions, and multi-agent systems about fifteen times.

### 12. Bounded agent loop

- **Problem:** agents loop, over-check and retry without making progress. Cemri and colleagues analysed more than
  1,600 annotated traces from seven multi-agent frameworks and found 14 distinct failure modes in three categories.
- **Solution:** a testable stop condition, limits on steps, tokens, time and spend, loop detection on repeated
  actions, and a clean stop that reports what was done. The Green Software Foundation's agent orchestration pattern
  advises halting loops when goals are achieved rather than running fixed iterations.
- **Use when:** always, for any agent in production.
- **Trade-offs:** a limit set too low stops useful runs; tune it on real traces.
- **Measure:** steps and tokens per completed task, and the share of runs ended by a limit.

```python
seen = set()
for step in range(MAX_STEPS):
    action = agent.next_action(state)
    if action.is_done or goal_met(state):
        return state.result
    fingerprint = (action.tool, action.args_hash)
    if fingerprint in seen:
        return stop(state, reason="repeated action")
    seen.add(fingerprint)
    state = execute(action, state, budget)   # raises BudgetExceeded, never retries silently
return stop(state, reason="step limit")
```

See [how to stop AI agents wasting tokens](/how-do-i/stop-ai-agents-wasting-tokens/) and
[agentic AI and token waste](/articles/agentic-ai-and-token-waste/).

### 13. Plan, then execute with reusable functions

- **Problem:** an agent interleaves thinking and tool calls, resending the growing history at every step.
- **Solution:** a model writes a plan once, as calls to named, tested functions; plain code runs the plan; the model
  is called again only to fill gaps or write the final answer. ReWOO, which separates planning from observations,
  reported 5 times token efficiency and a 4% accuracy improvement on the HotpotQA multi-step reasoning benchmark.
- **Use when:** tasks decompose into known steps.
- **Trade-offs:** plans can be wrong and need validating before they run; the function library needs owners and
  tests.
- **Measure:** model calls and tokens per task, and plan-validation failures.

<!-- figure: a planner model produces a short plan of function calls, a deterministic executor runs them against a library of tested functions, and a small model writes the final answer from the results -->

### 14. Generate once, reuse many

- **Problem:** the same component, template or answer is generated afresh for each user, each time slightly
  different and each needing checking.
- **Solution:** keep a library of vetted outputs with tests and an owner; search it before generating; add new,
  tested outputs to it.
- **Use when:** outputs repeat across users or projects: code components, standard clauses, descriptions.
- **Trade-offs:** stale or flawed components spread; the library needs maintenance.
- **Measure:** the share of requests served from the library, and defects traced to reused components.

See [orchestration over generation](/articles/orchestration-over-generation/).

## How do we make the computation itself cheaper?

**Keep accelerators busy with useful work and skip computation that does not change the answer.** These patterns
apply mainly when you serve models yourself.

### 15. Batch window

- **Problem:** work that could wait is sent one request at a time.
- **Solution:** queue deferrable requests and send them in batches. OpenAI's Batch API gives a 50% cost discount
  with a 24-hour completion window; Anthropic's Message Batches API cuts costs by 50%, with most batches finishing in
  less than an hour. Self-hosted, continuous batching matters too: vLLM improved throughput 2 to 4 times at the same
  latency compared with earlier serving systems.
- **Use when:** tagging archives, nightly summaries, evaluations, embeddings.
- **Trade-offs:** latency; failures surface later.
- **Measure:** requests per GPU-hour, or energy per item, before and after.

See [how to batch AI requests](/how-do-i/batch-ai-requests/) and
[how to stop GPUs sitting idle](/how-do-i/stop-gpus-sitting-idle/).

### 16. Early exit and speculative decoding

- **Problem:** every token gets the full depth of the full model, even easy ones.
- **Solution:** adaptive computation. Confident Adaptive Language Modeling (CALM) exits early on tokens the model is
  confident about, with a potential speed-up of up to 3 times; speculative decoding lets a small draft model propose
  tokens the large model checks, and Leviathan and colleagues reported 2 to 3 times faster decoding on T5-XXL with
  identical outputs.
- **Use when:** you control the serving stack and latency or throughput matters.
- **Trade-offs:** more moving parts; speed-ups are not the same as energy savings, so measure energy directly.
- **Measure:** energy per request and quality, on your hardware and traffic.

See [how to use speculative decoding](/how-do-i/use-speculative-decoding/) and
[how to cut the energy of serving a model](/how-do-i/cut-the-energy-of-serving-a-model/).

## When and where should the work run?

**Run deferrable work when and where electricity is cleaner, and run small models close to the user when that
avoids data-centre work.** These patterns change emissions more than energy, so add them on top of the others.

### 17. Carbon-aware scheduling

- **Problem:** flexible jobs run whenever they are submitted, regardless of grid carbon intensity.
- **Solution:** schedule deferrable work against a carbon-intensity forecast, and choose low-carbon regions where
  latency and data rules allow. The Green Software Foundation's pattern recommends shifting deferrable workloads to
  low-carbon time windows and pausing long training jobs at carbon thresholds where feasible; CATS, an open-source
  scheduler, does this for cluster jobs.
- **Use when:** training, fine-tuning, evaluation and batch inference.
- **Trade-offs:** it lowers carbon intensity, not energy; data transfer, data residency and checkpoint overhead.
- **Measure:** energy and estimated emissions per job, using the grid intensity at the time it ran.

```python
window = min(forecast(region, hours=24), key=lambda slot: slot.g_co2_per_kwh)
if window.start - now() <= job.max_delay:
    queue.submit(job, not_before=window.start)
else:
    queue.submit(job)                      # the deadline wins over the forecast
```

See [how to schedule training when the grid is greener](/how-do-i/schedule-training-when-the-grid-is-greener/),
[how to find grid carbon intensity data](/how-do-i/find-grid-carbon-intensity-data/) and
[how to pick a low-carbon cloud region](/how-do-i/pick-a-low-carbon-cloud-region/).

### 18. Edge offload

- **Problem:** small, frequent tasks (classification, transcription, autocomplete) make round trips to a large
  hosted model.
- **Solution:** run a small or quantised model on the device or a nearby server, and send only hard cases to the
  cloud.
- **Use when:** the task fits a small model and users already have capable hardware.
- **Trade-offs:** battery and heat on the device; updating models across a fleet; and buying new devices for AI can
  outweigh the saving through their [embodied carbon](/glossary/#embodied-carbon).
- **Measure:** cloud calls avoided, device energy per task, and quality on device versus cloud.

See [edge or cloud?](/practice/edge-or-cloud/), [AI at the edge](/articles/ai-at-the-edge/),
[how to choose between device and cloud AI](/how-do-i/choose-between-device-and-cloud-ai/) and
[how to make a model small enough for an edge device](/how-do-i/make-a-model-small-enough-for-an-edge-device/).

## How do the patterns combine?

**In layers, cheapest checks first.** A typical request passes through deterministic handlers, then caches, then a
router or cascade with gates, with every model call shaped by retrieval, prompt caching and output limits, and
every multi-step process bounded by a budget.

| Layer | Patterns | Main number to watch |
|---|---|---|
| Avoid the call | 1, 2, 3, 4, 14 | Share of tasks with no model call |
| Pick the model | 5, 6, 7, 8 | Escalation rate; quality per tier |
| Shrink the call | 9, 10, 11 | Input and output tokens per call |
| Bound the process | 12, 13 | Calls and tokens per completed task |
| Cheaper compute | 15, 16 | Energy per request on your hardware |
| Better time and place | 17, 18 | Emissions per task |

The order matters. A cache in front of a router saves the router's cost too; a budget around a cascade stops a
retry storm. The [orchestration engine guide](/engineering/orchestration-engine/) shows one way to wire these
layers together.

## What can go wrong?

**Patterns fail in three ways: they lower quality, they move cost somewhere you are not measuring, or they make AI
so cheap that people use far more of it.**

- **Quality debt.** A gate that is too lenient lets a small model's poor answer through. Keep an evaluation set and
  re-run it whenever a model, prompt or threshold changes.
- **Hidden costs.** Classifiers, embeddings, indexes and validators all use energy. They are usually far cheaper
  than generation, but measure them.
- **Rebound.** Cheaper features invite heavier use. Report total energy alongside energy per task; see
  [how to stop efficiency gains being cancelled out](/how-do-i/stop-efficiency-gains-being-cancelled-out/) and
  [efficiency is not sufficiency](/articles/efficiency-is-not-sufficiency/).
- **Proxy drift.** Cost and speed are not energy. Several results above are cost reductions; convert them to energy
  claims only with a stated method. See [how to make honest claims about green AI](/how-do-i/make-honest-claims-about-green-ai/).

## What to do next

1. Log tokens, calls, model and outcome for every AI request, tagged by feature.
2. Pick your highest-volume feature and add patterns 1 and 3 (deterministic first, exact cache) in front of it.
3. Build an evaluation set and test whether a cascade (pattern 6) with a schema gate passes it with a smaller first
   tier.
4. Restructure prompts for prefix caching (pattern 9) and cap output length (pattern 11).
5. Put a stop condition, step limit and token budget on every agent (pattern 12).
6. Add a token-budget test to CI for representative tasks; see [testing AI energy in CI](/engineering/ci-energy-testing/).
7. Move deferrable jobs to a batch window and a carbon-aware schedule (patterns 15 and 17).
8. Report energy per successful task and total energy, with the method, every quarter.

## Frequently asked questions

### What is a green AI design pattern?

A reusable way of structuring an AI feature so that it does the same job with fewer model calls, fewer tokens or smaller models. Most are ordinary engineering patterns, such as caching and batching, applied to model inference.

### Which green AI pattern saves the most energy?

Usually the ones that avoid inference altogether: deterministic code, caching and not running features nobody asked for. After that, sending requests to the smallest model that passes your quality bar is typically the biggest lever.

### Do these patterns reduce quality?

They can. A cascade or semantic cache that accepts a poor answer saves energy but fails the user, so every pattern needs a quality gate and an evaluation set, and the saving should be counted only on tasks that succeed.

### How do I know whether a pattern is working?

Log tokens, calls, model and outcome for every request, then compare tokens and estimated energy per successful task before and after the change, on the same evaluation set or traffic.

### Is carbon-aware scheduling the same as saving energy?

No. Moving work to a cleaner hour or region cuts emissions but not the energy used. Treat it as a bonus on top of patterns that reduce the work itself.

## Sources

- [How much energy does ChatGPT use?](https://epoch.ai/gradient-updates/how-much-energy-does-chatgpt-use), Epoch AI (2025)
- [Power Hungry Processing: Watts Driving the Cost of AI Deployment?](https://arxiv.org/abs/2311.16863), Luccioni, Jernite and Strubell, ACM FAccT (arXiv 2311.16863) (2024)
- [AI large language models: new report shows small changes can reduce energy use by 90%](https://www.unesco.org/en/articles/ai-large-language-models-new-report-shows-small-changes-can-reduce-energy-use-90), UNESCO (2025)
- [FrugalGPT: how to use large language models while reducing cost and improving performance](https://arxiv.org/abs/2305.05176), Chen, Zaharia and Zou (arXiv 2305.05176) (2023)
- [RouteLLM: learning to route LLMs with preference data](https://arxiv.org/abs/2406.18665), Ong et al. (arXiv 2406.18665) (2024)
- [Hybrid LLM: cost-efficient and quality-aware query routing](https://arxiv.org/abs/2404.14618), Ding et al. (arXiv 2404.14618) (2024)
- [GPT Semantic Cache: reducing LLM costs and latency via semantic embedding caching](https://arxiv.org/abs/2411.05276), Regmi and Pun (arXiv 2411.05276) (2024)
- [Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching), Anthropic, Claude platform documentation (2026)
- [Prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching), OpenAI API documentation (2026)
- [Batch API](https://developers.openai.com/api/docs/guides/batch), OpenAI API documentation (2026)
- [Batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing), Anthropic, Claude platform documentation (2026)
- [AI Energy Score v2: refreshed leaderboard, now with reasoning](https://huggingface.co/blog/sasha/ai-energy-score-v2), Luccioni and Gamazaychikov, Hugging Face (2025)
- [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system), Anthropic (2025)
- [Why do multi-agent LLM systems fail?](https://arxiv.org/abs/2503.13657), Cemri et al. (arXiv 2503.13657) (2025)
- [Optimize agent orchestration to reduce unnecessary model calls](https://github.com/Green-Software-Foundation/patterns/blob/main/docs/development/optimize-agent-orchestration-reduce-model-calls.md), Green Software Foundation, Green Software Patterns (2025)
- [ReWOO: decoupling reasoning from observations for efficient augmented language models](https://arxiv.org/abs/2305.18323), Xu et al. (arXiv 2305.18323) (2023)
- [LLM.int8(): 8-bit matrix multiplication for transformers at scale](https://arxiv.org/abs/2208.07339), Dettmers et al. (arXiv 2208.07339) (2022)
- [Efficient memory management for large language model serving with PagedAttention](https://arxiv.org/abs/2309.06180), Kwon et al. (arXiv 2309.06180) (2023)
- [Confident adaptive language modeling](https://arxiv.org/abs/2207.07061), Schuster et al. (arXiv 2207.07061) (2022)
- [Fast inference from transformers via speculative decoding](https://arxiv.org/abs/2211.17192), Leviathan, Kalman and Matias (arXiv 2211.17192) (2022)
- [Use carbon-aware scheduling and region selection for AI workloads](https://github.com/Green-Software-Foundation/patterns/blob/main/docs/operations/carbon-aware-ai-scheduling.md), Green Software Foundation, Green Software Patterns (2025)
- [CATS: Climate-Aware Task Scheduler](https://github.com/GreenScheduler/cats), GreenScheduler (2025)
