Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 9 min read Research mediumAdept

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

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).

Assumes: LLM fine-tuning basicsLoRAsynthetic data generation

Related posts

  • Training a coding model to paint watercolours with TRL and OpenEnv

    Hugging Face hardMaster

    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. Restricted to 10 of the library's 47 methods, the policy is scored on a gate, code length, a Qwen3-VL pairwise judge comparing against a hand-rated pool of 178 model-generated paintings, and the HPSv3 preference model. Three reward mixes all learned, with mean group reward rising by +0.13 to +0.27. Early flat runs were fixed by four trainer changes: learning rate 2e-5 to 5e-5, constant_with_warmup scheduling, scale_rewards=none, and all-linear LoRA targets so the MoE projections actually got adapters. The environment, pool, scripts and models are all published.

  • Promptim: an experimental library for prompt optimization

    LangChain easyNovice

    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. Optional human feedback via LangSmith annotation queues covers cases without good automated metrics. Unlike DSPy, which optimizes whole compound AI systems and includes fine-tuning and few-shot methods, Promptim focuses narrowly on rewriting a single prompt with a human kept in the loop.

  • How We Built Our Design Agent

    LangChain mediumAdept

    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. Quality came from encoding designers' principles, anti-slop guardrails and the reasoning behind feedback rather than from prebuilt components. A 115-component design system was largely discarded once a stronger model arrived, because rules that compensate for model weaknesses expire. Motion runs on HyperFrames (web-page video editing with GSAP) and a custom canvas engine with motion blur, both rendering deterministically by timestamp so frames can be inspected and rendered in parallel. Median request cost fell from about $8 to 50 cents, and the harness is open-sourced.

  • Code Llama: Llama 2 learns to code

    Hugging Face mediumAdept

    Code Llama is a family of 7B, 13B and 34B Llama 2 derivatives trained on 500B tokens of code. It comes in base, Python-specialized and instruction-tuned variants, has a 16k training context that extrapolates to 100k via RoPE frequency scaling, and supports fill-in-the-middle infilling in the 7B and 13B models. Hugging Face integration starts at transformers 4.33, with code for completion, infilling with the <FILL_ME> token, the Llama 2 chat prompt template, and 4-bit bitsandbytes loading. Recommended setup is float16 for inference and bfloat16 for fine-tuning, plus GPU sizing guidance for TGI/Inference Endpoints and HumanEval/MultiPL-E evaluation.

  • Designing synthetic datasets for the real world: Mechanism design and reasoning from first principles

    Google Research hardMaster

    Simula treats synthetic data generation as dataset-level mechanism design. It works without seed data and decomposes generation into separately controllable axes: reasoning-built hierarchical taxonomies for global coverage, 1-of-N meta-prompting for local diversity, a configurable complexification step for difficulty, and a dual-critic loop for label quality. With Gemini 2.5 Flash as teacher and Gemma-3 4B as student, on datasets of up to 512K points across five domains, the full system beat simpler baselines and reached higher accuracy with fewer samples. The best settings were domain-specific: high complexity gave a 10% gain on GSM8k but hurt on LEXam, where the teacher was weaker. The work also proposes reasoning-based evaluation metrics, Taxonomic Coverage and Elo-style Calibrated Complexity Scoring.

The quest for software engineering knowledge.

Look:
Layout: