Skip to content

[epic] Typed verifiers: standalone primitives outside the resources server #1482

Open

Description

@sephmard

Use cases, pain points, and background

Verifier logic in Gym today is coupled to the resources server. Scoring functions live inside a FastAPI server subclass — they cannot be used, tested, or composed without standing up a server. Every environment re-implements scoring from scratch, and adding a verifier requires navigating global dependency constraints rather than making a local change.

What is needed is a verifier as a first-class, typed primitive: a standalone callable that takes a response and metadata, returns a structured score, and can be used inside or outside a resources server, in tests, offline re-scoring pipelines, or external tooling — without requiring a running server.

NeMo Evaluator has equivalent scoring infrastructure (metrics, scorers, benchmark schemas) and Gym needs parity with that catalog, but the primary deliverable is the framework itself. The migration is a consequence of building the right foundation.

Related: #1499 (iterative verifier design), #1583 (BYOB)

Description

Define and ship a typed verifier primitive in NeMo Gym: a common interface, input and result types, a registry, and dependency isolation. Then populate the catalog with verifiers that reach parity with NeMo Evaluator's scoring infrastructure.

Documentation
Contributor docs covering the interface, how to add a verifier, the isolation model, and the catalog.

Out of scope

  • Net-new metrics or scorers beyond Evaluator parity — track separately
  • Schema redesigns — preserve existing schemas
  • Performance optimization beyond parity requirements

Acceptance criteria

  • Typed verifier interface defined and merged — input types, output types, registry
  • Verifiers usable outside the resources server without a running server
  • Verifier components importable externally without pulling in unrelated dependencies
  • RFC approved covering the interface and dependency-isolation strategy
  • Catalog inventory published: each NeMo Evaluator metric/scorer mapped to a Gym verifier or explicit deferral
  • Every in-scope scorer has a parity-passing verifier in Gym with automated CI test
  • Contributor documentation published covering the interface, isolation model, and catalog

Activity

  1. added theissue type on Jun 1, 2026
  2. changed the title [-][epic] Metrics parity: NeMo Gym verifiers with feature parity to NeMo Evaluator scorers[/-] [+][epic] Typed verifiers: NeMo Gym verifiers with feature parity to NeMo Evaluator scorers[/+] on Jun 2, 2026
  3. changed the title [-][epic] Typed verifiers: NeMo Gym verifiers with feature parity to NeMo Evaluator scorers[/-] [+][epic] Typed verifiers: primitive building blocks for verifiers for Gym[/+] on Jul 21, 2026
  4. ritaneves commented on Jul 28, 2026

    @ritaneves
    Contributor

    I do not fully understand this. Do we want to decouple verifiers from resources server, @sephmard ?

  5. changed the title [-][epic] Typed verifiers: primitive building blocks for verifiers for Gym[/-] [+][epic] Typed verifiers: standalone primitives outside the resources server[/+] on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions