Guide

๐Ÿ’ฌ The Gemma 4 Playbook

2000 output tokens per reply. Unlimited new chats. Here's how that becomes a superpower.

The two constraints, decoded

  • 2000 output tokens โ‰ˆ ~120 lines of code or ~1200 words. Long answers get cut off mid-line. So never ask for "the whole solution" โ€” ask for pieces.
  • Unlimited new chats = unlimited retries with a clean slate. Fresh chats are free. Use them aggressively; never argue with a confused model in a long thread.

Core rules

  1. Chunk everything. Ask for ONLY the Dataset class โ†’ ONLY the model โ†’ ONLY the training loop โ†’ ONLY the submission writer. Magic phrases: "Code only, no explanation." ยท "Max 30 lines." ยท "Continue exactly from this line: โ€ฆ" (when cut off).
  2. One chat = one job. Explainer chat, bug-fixer chat, strategy chat, API-lookup chat. Contexts stay clean, answers stay sharp.
  3. Paste context, always. Gemma can't see your screen. Every prompt: the task in 1โ€“2 sentences, the smallest relevant code, exact error/traceback, tensor shapes, one specific question.
  4. Verify everything. Read the code before running (does it use variables that exist?) โ†’ run on a tiny slice โ†’ print(x.shape) liberally โ†’ if a fix fails twice, fresh chat with the new traceback.
  5. You are the manager. You choose the plan (the 8-step flow); Gemma writes boilerplate, fixes bugs, explains baselines, and recalls API signatures.

Contest-day prompt bank

โ€œSummarize this task statement in 5 bullets: input, output, metric, submission format: <paste>โ€
โ€œBaseline does X and scores Y. List 5 improvements ordered by (impact รท time) for a 6-hour contest.โ€
โ€œExplain what this code does, line by line, for a beginner: <paste baseline chunk>โ€
โ€œThis code raises this error. Code + full traceback below. Give the minimal fix only.โ€
โ€œRewrite this training loop to add early stopping on validation loss. Change nothing else.โ€
โ€œMy model overfits (train 0.99 / val 0.70). The 3 fastest fixes for a CNN in torch?โ€
โ€œWrite code to save predictions as CSV, one 0/1 per line, no header, from tensor preds.โ€
โ€œHow do I load a pre-cached Hugging Face model from a local path, no internet?โ€

Time economics (6 hours, 3 tasks)

  • First 5 min: read all 3 statements; rank by expected points-per-hour.
  • First 30 min per task: baseline running and submitted.
  • While models train: a Gemma chat plans the next improvement in parallel.
  • Last 45 min: freeze experiments; verify formats; confirm your best submissions are the selected ones.
Practice this NOW
During the 30-day prep, study with any free chatbot but impose contest rules on yourself: pretend replies are capped, ask in chunks, fresh chat per topic, verify by running. By August, driving an LLM under constraints is muscle memory. Every task page's ๐Ÿ’ฌ section on this site is a rehearsal script.