Docsity

How to train LLMS Models, Assignments of Artificial Intelligence

Toggle sidebar
bg1
CONTRIBUTOR TRAINING BRIEF
Creating Olympus Challenges
How to design, build, and validate coding challenges that push state-of-the-
art AI models to their limits โ€” from picking the repository to shipping an
approved submission.
Keep this brief open while you build your first submissions. Expect to come back to it several times before your first one
or two approvals โ€” that's normal, and it's the fastest path to a clean approval record.
C O N T E N T S
1. What Quest Olympus Is
2. Anatomy of a Submission
3. Step 1 โ€” Pick a Repository
4. Step 2 โ€” Write the Problem Description
5. Step 3 โ€” Write the Tests
6. Step 4 โ€” Write the Solution
7. Step 5 โ€” Write the Dockerfile
8. Submitting & Self-Review
9. Local Review Workflow
10. Check Budget & Submission Criteria
11. Worked Example โ€” Approved Submission
12. Field Tips & Final Checklist
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download How to train LLMS Models and more Assignments Artificial Intelligence in PDF only on Docsity!

C O N T R I B U T O R T R A I N I N G B R I E F

Creating Olympus Challenges

How to design, build, and validate coding challenges that push state-of-the-

art AI models to their limits โ€” from picking the repository to shipping an

approved submission.

Keep this brief open while you build your first submissions. Expect to come back to it several times before your first one

or two approvals โ€” that's normal, and it's the fastest path to a clean approval record.

C O N T E N T S

  1. What Quest Olympus Is
  2. Anatomy of a Submission
  3. Step 1 โ€” Pick a Repository
  4. Step 2 โ€” Write the Problem Description
  5. Step 3 โ€” Write the Tests
  6. Step 4 โ€” Write the Solution
    1. Step 5 โ€” Write the Dockerfile
    2. Submitting & Self-Review
    3. Local Review Workflow
  7. Check Budget & Submission Criteria
  8. Worked Example โ€” Approved Submission
  9. Field Tips & Final Checklist

What Quest Olympus Is

Olympus submissions are, in essence, you creating a task similar to a GitHub issue โ€” writing its tests,

and the solution that will pass all of those new tests.

The agent being evaluated receives only two things: the repository at a pinned commit, and your problem

description. Your tests stay hidden. The agent must produce a solution good enough to pass tests it has

never seen โ€” which means the quality of your task rests entirely on how well the description, the tests, and

the solution line up.

S E T Y O U R D I F F I C U LT Y B A R H I G H

Submissions have to be genuinely challenging to state-of-the-art models. If you think you know what "challenging" means, you'll probably need to bump it up a notch โ€” you'll be surprised at what current models can already solve.

Step 1 โ€” Pick a Repository

Find a strong GitHub repository that meets the requirements below. This is the foundation โ€” everything

downstream assumes a serious, active project.

Requirements

Public GitHub repository

At least 1 commit in the last 12 months 500+ stars

Production-level codebase Language: TypeScript, JavaScript, Python, Go, Rust, C++, or Java Permissive open-source license (from the platform's allowed list)

Optional: a GitHub issue URL that describes the problem

Take care

R1 Don't use inactive or abandoned repositories.

R2 No existing PR solves it โ€” open, merged, or closed.^ A closed or unmerged PR that already implements your idea still rules it out; not landing doesn't make it fresh. This is the #1 rejection reason.

R3 The maintainers haven't declined it.^ Check the issues and GitHub Discussions, not just PRs โ€” that's where design rulings tend to live. A declined feature counts as misalignment with the repo.

R4 Don't invent nonsensical features^ that don't fit the project's philosophy. Read the README and get a feel for the context before you commit to an idea.

Step 2 โ€” Write the Problem Description

The problem description is the task itself โ€” the only text the agent gets alongside the repo. It must

satisfy all seven of these properties.

P1 Aligned^ โ€” fits the repo's philosophy.

P2 Fresh^ โ€” not already fixed in an open or merged PR. (Yes, this duplicates R2. It is that important.)

P3 Self-contained^ โ€” solvable from the repo and description alone.

P4 Clear and unambiguous^ โ€” describes what to build or fix; leaves no points for guessing.

P5 Verifiable^ โ€” success is objectively testable.

P6 Not prescriptive^ โ€” doesn't leak the solution. The point is to challenge the agents.

P7 Not a duplicate^ โ€” a similarity check runs against existing submissions. Don't treat it as a gate; open the results, read the close matches, and confirm you're not rebuilding a problem that already exists. Rewording the same task or reshaping the same behavior doesn't make it new.

How it should read

Write it the way a maintainer writes an issue โ€” natural prose, full sentences. Open with the ask itself (โ€œAdd

X to Yโ€, โ€œFix Z when โ€ฆโ€) and let the first line stand on its own without the title. Skip the motivation and the

โ€œwhat the repo currently lacksโ€ preamble.

Keep it out of spec-sheet territory โ€” no bulleted requirement lists, no headings, no code snippets doing the

describing. Don't spell out what a developer working in the repo would find on their own: internal class

names, helpers, field names, the file layout. Describe the behavior, not the implementation.

U S E Y O U R J U D G M E N T

If a detail is genuinely part of the contract and the task can't be pinned down without it, state it. A task nobody can implement is worse than one that names a field.

vitest run tests/ --reporter=junit --outputFile="$OUTPUT_PATH"

J E S T โ€” J E S T- J U N I T I S P R E - I N S TA L L E D I N T H E B A S E I M A G E

JEST_JUNIT_OUTPUT_DIR="$(dirname "$OUTPUT_PATH")" JEST_JUNIT_OUTPUT_NAME="$(basename "$OUTPUT_PATH")" npx jest tests/ --reporters=jest-junit

G O T E S T โ€” G O - J U N I T- R E P O R T I S P R E - I N S TA L L E D I N T H E B A S E I M A G E

go test -v -count=1 ./pkg/... -timeout 10m 2>&1 | go-junit-report -set-exit-code > "$OUTPUT_PATH"

The -v flag is required โ€” go-junit-report parses verbose output.

M O C H A โ€” M O C H A - J U N I T- R E P O R T E R I S P R E - I N S TA L L E D I N T H E B A S E I M A G E

mocha tests/ --timeout 10000 --reporter mocha-junit-reporter --reporter-options mochaFile="$OUTPUT_PATH"

D E N O โ€” B U I LT- I N

deno test tests/ --junit-path="$OUTPUT_PATH"

Generating the test patch

Make your test changes, then generate the patch:

git diff > test.patch

Verify the patch applies cleanly:

git stash git apply test.patch git stash pop

C O M M O N M I S TA K E โ€” L E A K I N G T H E Q U E S T

Treat these files like a real PR. No directories or files named โ€œchallengeโ€, โ€œquestโ€, or โ€œolympusโ€; no test.sh comments referencing the challenge; no platform names anywhere in the patches. If it wouldn't show up in a normal PR to the repo, it shouldn't be here.

Step 4 โ€” Write the Solution

This is the golden solution โ€” the proof that your task is solvable and that the tests can be passed.

S1 Meets all the requirements.^ If it's missing a requirement and still manages to pass your tests, you're in a bad position โ€” it means your tests are too weak.

S2 No regressions; follow existing code patterns.^ Don't break existing working code by mistake โ€” the repo's existing tests still run.

S3 No irrelevant changes.^ If something is unrelated to your task, keep it as it is.

S4 No AI slop.^ No weird comments, unexplained defensive code, or coding patterns foreign to the repo.

Submitting & Self-Review

What goes where

FIELD WHAT YOU SUBMIT

Problem description Plain text.

Test patch A unified git diff containing your test.sh plus the new tests.

Solution patch A unified git diff with your reference implementation.

Dockerfile Pasted in directly.

Solvability

At least one agent must solve your challenge before you can submit. If no agent ever passes, your tests are

probably too strict, your description is missing something, or the task is unfair โ€” iterate before you submit.

Illegitimate failures will be caught during review and sent back for revision.

Be your own reviewer first

Before you submit, go through your agent runs the way a reviewer will โ€” see how the agents actually

behaved against your task. The runs won't catch everything, but the issues they do surface are cheap to fix

now and save the back-and-forth with reviewers.

Are the failures fair? An agent should fail because the task is genuinely hard โ€” not because a sentence

was ambiguous, a requirement was hidden, or a test asked for something the description never stated. If the

runs show agents tripping on something you didn't intend, fix it now; after submission it comes back as a

revision.

Are you still clearing the size bar? If agents are solving the task in noticeably fewer lines than your

solution, your real count is probably lower than it looks. Only effective solution lines count โ€” the ones that

implement the task. Comments, blank lines, generated files, and test code don't count, so don't let them talk

you into thinking you're over the bar.

Local Review Workflow

Before you click Submit and use your check-run allowance, do exactly what the reviewers do โ€” locally.

1 Clone the repo and check out the exact commit.

2 Apply^ test.patch^.

3 Build the Docker image.

4 Run the container with^ --network^ none^.

5 Run^ ./test.sh^ base^ (must pass) and^ ./test.sh^ new^ (must fail).

6 Apply^ solution.patch^.

7 Rebuild and rerun both modes โ€” both must pass.

8 Confirm no existing PR already solves the issue. (Third time. Still important.)

9 Confirm your submission passes every point listed in this brief.

V E R I F Y I T A P P L I E S C L E A N LY

git checkout git apply test.patch ./test.sh --output_path /tmp/base.xml base # should pass ./test.sh --output_path /tmp/new.xml new # should fail

Worked Example โ€” Approved Submission

APPROVED

Go ยท frostdb โ€” holistic aggregations

A recently approved Olympus submission, as the reviewer saw it.

Description (excerpt)

frostdb answers grouped aggregation queries by splitting a table into independent partitions, aggregating

each partition on its own, and then combining those partial results into one row per group. The aggregations

below must return the same answer no matter how the rows of a group are spread across partitions or how

many partitions there are.

Add support for distinct aggregations. count(distinct x) counts how many different non-null values a

group holds, sum(distinct x) adds each different value once, and avg(distinct x) averages the

different values. A value that appears in several rows, or in several partitions, counts only once. โ€ฆ Today a

distinct qualifier is ignored, so these behave like their plain counterparts, which is wrong whenever a value

repeats.

Every one of these aggregations ignores null inputs. When a group has no contributing values the distinct

count is zero and the other aggregations are null. All of them are reached through ordinary grouped SQL

queries and must coexist with the existing aggregations, which keep working unchanged.

(The full description covered four more aggregation families: variance/stddev, median, geometric/harmonic

mean, and group_concat.)

Notice how it reads: natural maintainer prose, opens with the ask, defines the observable contract (distinct

semantics, null handling, cross-partition consistency) without naming a single internal class, helper, or file.

Repo + commit

Repo https://github.com/polarsignals/frostdb

Commit 9e5cfe0171adff531d30a9df3e111686996f4a9f

Dockerfile

FROM public.ecr.aws/d3j8x8q7/olympus-base-go:latest

WORKDIR /app COPY..

RUN go mod download

RUN GOBIN=/usr/local/bin go install github.com/jstemmer/go-junit-report/[email protected].

ENV GOFLAGS="-mod=readonly" ENV CGO_ENABLED=

RUN go build ./...

CMD ["/bin/bash"]

The test.sh (key ideas)

The full script supports --output_path and both modes. What makes it a good example:

It pins GOMAXPROCS=4 so multi-partition query behavior is deterministic regardless of the host's CPU count (requirement T2 in practice). base runs the real packages in the change's blast radius โ€” ./query/ , ./query/expr/... , ./query/logicalplan/... , ./sqlparse/... and more โ€” a genuine regression check, not a smoke test.

Two existing tests are excluded, each with a documented, legitimate reason: one deliberately allocates more memory than the container has; the other is a flaky statistical test. The rest of that package still runs, selected by name.

new runs the added tests via a name filter, and results pipe through go-junit-report to JUnit XML. No fail-fast: it accumulates status across runs and reports every result.

T H E H E A R T O F T H E S C R I P T

Field Tips & Final Checklist

Four habits that save round-trips

1 Plan the submission before you start writing patches.^ Make sure the idea is solid โ€” genuinely challenging with a realistic shot at clearing the submission criteria. The bar moves quickly, and the time to discover your task is too easy is before you've written 600 lines of solution.

2 Be smart about your check-run allowance.^ Running a full batch of agent runs the moment you finish writing is a fast way to drain it for nothing. Start with a smaller batch to get a read โ€” 100% pass means the task is too easy; 0% on a vague point or an unfair test is something to catch before committing to a full run.

3 Read the check and agent-run outputs.^ Understanding why something passed or failed is half the work. A 0% pass rate isn't always a bad task โ€” sometimes it's one ambiguous sentence or one unfair test, and the agent logs are the fastest way to spot it.

4 Expect to iterate.^ Almost nobody nails it on the first try, and that's the system working. Every loop you close yourself is one less revision cycle with reviewers.

Pre-submit checklist

Repo is public, active, 500+ stars, allowed language, permissive license

No PR โ€” open, merged, or closed โ€” already solves the task; maintainers haven't declined it

Description reads like a maintainer's issue: prose, behavior-focused, non-prescriptive, self-contained

Similarity-check results reviewed; task isn't a reworded duplicate

Tests 100% fail at base commit, 100% pass with solution; deterministic; offline; no over-pinned output

test.sh base mode runs real regression tests; no fail-fast flags; JUnit XML written

No "challenge" / "quest" / "olympus" naming or platform references anywhere in the patches

Solution follows repo patterns, no regressions, no unrelated changes, no AI slop

Dockerfile: correct base image, WORKDIR /app , deps installed at build, no tests in build, CMD ["/bin/bash"] , builds without patches

Full local dry-run completed: base passes โ†’ new fails โ†’ apply solution โ†’ both pass, all under --

network none

Agent runs reviewed: failures are fair, and the effective solution size still clears the bar

Keep this brief handy for your first few submissions. Read the check outputs, close your own loops, and the approvals follow.