---
title: "Palette: teaching a small model to build decks in your design language"
description: "Palette fine-tunes a 20B open-weight model with a single LoRA adapter to generate slide decks in a specific design language (IBM Design Language), splitting the work into a designer role that writes a structured JSON brief and a coder role that writes per-slide pptxgenjs code in parallel (about 6–7× faster)."
url: "https://swe.quest/articles/palette-teaching-a-small-model-to-build-decks-in-your-design-language-51907d490a9378a1"
canonical: "https://huggingface.co/blog/ibm-research/palette-deck-building"
source: "Hugging Face"
published: "2026-11-03"
difficulty: "medium"
kind: "Research"
reading_minutes: 9
tags: ["model-training","llms","evals"]
---

# Palette: teaching a small model to build decks in your design language

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-11-03, 9 min read, Research. Original: [https://huggingface.co/blog/ibm-research/palette-deck-building](https://huggingface.co/blog/ibm-research/palette-deck-building)

## Summary

Palette fine-tunes a 20B open-weight model with a single LoRA adapter to generate slide decks in a specific design language (IBM Design Language), splitting the work into a designer role that writes a structured JSON brief and a coder role that writes per-slide pptxgenjs code in parallel (about 6–7× faster). Training data is ~1000 synthetic decks (~10,000 slides) from a large open teacher, with counterfactual reasoning traces and render-check-repair loops. Reference decks fixed hallucination where prompt rules did not, and designer examples had to be oversampled 5×. A geometry-checking harness keeps editor-model rewrites only when they measurably improve a slide, adding 3.5 points on PresentBench, where Palette ranks first on Economics and Education and second overall (59.7 vs NotebookLM's 60.8).

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- LoRA
- synthetic data generation

## Keywords

Palette, LoRA, PresentBench, pptxgenjs, IBM Design Language, GRPO, NotebookLM

## Related posts

- [Training a coding model to paint watercolours with TRL and OpenEnv](https://swe.quest/articles/training-a-coding-model-to-paint-watercolours-with-trl-and-openenv-0c7283feb6a9fe31.md): Hugging Face · 2026-09-03 · Hard · 22 min read · Model training, LLMs, Evaluation, Computer vision
  An open reproduction of Surya Narreddi's watercolour-painting language model trains Qwen3.5-35B-A3B with GRPO in TRL to write p5.brush JavaScript, using an OpenEnv environment that renders sketches in headless Chromium.
- [Promptim: an experimental library for prompt optimization](https://swe.quest/articles/promptim-an-experimental-library-for-prompt-optimization-2ac32ec5daa6c443.md): LangChain · 2026-11-09 · Easy · 4 min read · LLMs, Evaluation, Developer tools, Open source
  Promptim is an open-source, experimental library that automates prompt engineering: given an initial prompt, a LangSmith dataset and custom evaluators, it runs an optimization loop where a metaprompt proposes edits based on scored train-set results, and keeps a new prompt only if it improves dev-split metrics, repeated N times.
- [How We Built Our Design Agent](https://swe.quest/articles/how-we-built-our-design-agent-5b29ee59fcf5b432.md): LangChain · 2026-10-29 · Medium · 21 min read · AI agents, LLMs, Video & media
  Content Studio, LangChain's Slack-based design agent, produces on-brand videos, graphics, slide decks and UI recreations entirely as code, running on Managed Deep Agents with a per-thread LangSmith Sandbox.
- [Code Llama: Llama 2 learns to code](https://swe.quest/articles/code-llama-llama-2-learns-to-code-bbc6e9367fb26138.md): Hugging Face · 2023-08-25 · Medium · 12 min read · LLMs, AI for coding, Inference & serving, Python, Evaluation
  Code Llama is a family of 7B, 13B and 34B Llama 2 derivatives trained on 500B tokens of code.
- [Designing synthetic datasets for the real world: Mechanism design and reasoning from first principles](https://swe.quest/articles/designing-synthetic-datasets-for-the-real-world-mechanism-design-and-reasoning-5c22424857d40e45.md): Google Research · 2026-04-16 · Hard · 7 min read · Model training, LLMs, Evaluation
  Simula treats synthetic data generation as dataset-level mechanism design.

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)
