Skip to content

Academy RealClassEval produces trash code with local models — quality baseline needed #369

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#369",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Problem

RealClassEval benchmark showed 53.1% Pass@1 with DeepSeek-Chat (cloud). Local models (compacted 14B, SmolLM2-135M) produce trash code that fails basic compilation. The Academy training loop trains on this garbage, making the adapter WORSE.

The Vicious Cycle

  1. Local model generates bad code for RealClassEval challenge
  2. Code fails pytest (expected)
  3. Academy records this as training data
  4. LoRA adapter trains on failed attempts
  5. Adapter makes the model WORSE at coding
  6. Next Academy session generates even worse code

What Needs to Happen

1. Quality Gate Before Training

  • Only successful code (pytest pass) should become training data
  • Failed attempts should be discarded OR used as negative examples
  • The captureTraining flag needs a quality threshold

2. Baseline Measurement

  • Run RealClassEval with each available model (local and cloud)
  • Establish Pass@1 baseline per model
  • This tells us which models are even viable for code training

3. Cloud-Assisted Training Data

  • Use cloud models (Claude, DeepSeek) to GENERATE training data
  • Train local model adapters on cloud-generated correct code
  • Local model becomes a student of cloud teacher
  • This is already the Academy architecture — teacher generates, student learns

4. Graduated Difficulty

  • Don't start with RealClassEval (hard)
  • Start with trivial tasks: "write a function that adds two numbers"
  • Graduate to harder tasks as adapter improves
  • Curriculum design is the teacher sentinel's job

The Real Fix

Local models are SMALL. They can't do complex coding out of the box. But they CAN learn specific patterns through LoRA training. The trick is:

  1. Generate high-quality training data via cloud models
  2. Train local adapter on verified-correct code
  3. Validate with phenotype testing (real pytest)
  4. Only graduate difficulty when Pass@1 exceeds threshold

Related

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Merged into #377 (full academy session e2e). Quality baseline measurement is part of proving the full training loop works.

  2. joelteply commented on Mar 26, 2026

    @joelteply
    ContributorAuthor

    Reopening — merged into #377 but the core problem (local models produce trash code) is not solved by proving the pipeline works with cloud models. The fix is compacted + fine-tuned local models, not API keys. This issue lives until a local model passes coding challenges.

  3. added
    airc-queue
    on May 14, 2026
  4. github-actions commented on Sep 8, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  5. github-actions commented on Oct 8, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions