instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
PretendoNetwork__nex-go__70
PretendoNetwork/nex-go
70
defect
ad488be8386659ac5aae0cadfab2eef758c7f918
0621d95232560875fec53378f81ec8bf6d8993ac
Fix bugs from recent performance enhancements
<!-- * Before making a pull request, ensure the changes are for an approved issue. * If your changes are not for an approved issue, your pull request can and will be rejected. * * CHECK https://github.com/PretendoNetwork/REPO_NAME/issues?q=is%3Aopen+is%3Aissue+label%3Aapproved * FOR APPROVED ISSUES! --> ##...
diff --git a/kerberos.go b/kerberos.go index 7bc65a0a..1afeb308 100644 --- a/kerberos.go +++ b/kerberos.go @@ -191,13 +191,16 @@ func NewKerberosTicketInternalData(server *PRUDPServer) *KerberosTicketInternalD // DeriveKerberosKey derives a users kerberos encryption key based on their PID and password func DeriveKe...
1
1
0
[{"id": "G0", "claim": "Use the idiomatic `for i := 1; i < iterationCount; i++` form instead of declaring `i` outside the loop, casting `iterationCount` to `int`, which is safe because `pid%1024` keeps it within `int` range.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
PrimeIntellect-ai__prime__180
PrimeIntellect-ai/prime
180
defect
2bbcdb8bca0a1f6c8d4b6a4e11e3270773fab954
82df1371b14c7f404a8cf888acbf0c078d5aaa3d
Fix: Sandbox Command Execution Timeout Issue
# Fix: Sandbox Command Execution Timeout Issue ## Problem The `execute_command` method was timing out prematurely when executing long-running commands. The server-side timeout was set to 90 seconds regardless of the client-specified timeout parameter, causing commands that needed more time to fail. The timeout was ...
diff --git a/packages/prime-sandboxes/src/prime_sandboxes/sandbox.py b/packages/prime-sandboxes/src/prime_sandboxes/sandbox.py index a5613122a..c60a83c33 100644 --- a/packages/prime-sandboxes/src/prime_sandboxes/sandbox.py +++ b/packages/prime-sandboxes/src/prime_sandboxes/sandbox.py @@ -148,7 +148,8 @@ class SandboxCl...
2
2
2
[{"id": "G0", "claim": "If sandbox_client.create() fails, the finally block reads sandbox.id on an undefined variable, raising a NameError that masks the original exception and prevents cleanup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
PrimeIntellect-ai__prime__187
PrimeIntellect-ai/prime
187
defect
d25b29caac4c73edde4da8fceb83fe6be045070c
a6d4e8d1d8c9ff52d19d5ef95ddbc3715733bf54
add sandbox tests
<!-- CURSOR_SUMMARY --> > [!NOTE] > Adds extensive sandbox CRUD/exec/file integration tests and runs them in parallel via pytest-xdist and CI updates. > > - **Tests (`packages/prime-sandboxes/tests/`)**: > - Add integration tests for sandbox lifecycle, listing/filtering, bulk delete, logs, readiness, and end-to-end ...
diff --git a/packages/prime-sandboxes/tests/test_command_execution.py b/packages/prime-sandboxes/tests/test_command_execution.py new file mode 100644 index 000000000..80feeb555 --- /dev/null +++ b/packages/prime-sandboxes/tests/test_command_execution.py @@ -0,0 +1,304 @@ +"""Tests for advanced sandbox command execution...
2
2
2
[{"id": "G0", "claim": "test_upload_large_file creates its temporary file without a text mode, so writing the string large_content raises a TypeError at runtime; add mode=\"w\" to the NamedTemporaryFile call or encode the string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
PrimeIntellect-ai__prime__221
PrimeIntellect-ai/prime
221
defect
8f5869249949ed22d0beb69d4e06babd5730f87b
7db774fc36258213c80f45516a3c848a95cb8f4b
Imp: Rename prime mcp package for pypi compatibility
<!-- CURSOR_SUMMARY --> > [!NOTE] > Renames the package to prime-mcp-server and updates the release workflow, docs, build script, and lockfile to use the new name, paths, and tag prefix. > > - **CI/Release**: > - Rename workflow to `Release prime-mcp-server`; trigger paths switched to `packages/prime-mcp-server/**`....
diff --git a/packages/prime-mcp/README.md b/packages/prime-mcp-server/README.md similarity index 95% rename from packages/prime-mcp/README.md rename to packages/prime-mcp-server/README.md index 055a10ba8..8ec8ee750 100644 --- a/packages/prime-mcp/README.md +++ b/packages/prime-mcp-server/README.md @@ -16,12 +16,12 @@ M...
1
1
1
[{"id": "G0", "claim": "The cleanup command in build_for_pypi.sh still references src/prime_mcp.egg-info/, so after the rename to prime-mcp-server it will not remove the new prime_mcp_server.egg-info directory and may leave stale metadata that could cause build issues.", "category": "correctness", "verdict": "supported...
null
PrimeIntellect-ai__prime__258
PrimeIntellect-ai/prime
258
defect
b0fb50090a618e940cf403634f70f568567cd8a1
b2a143a4a8e1c26db3f8d96b201ea4f1affde7d1
prime tunnel
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Introduces new network-facing functionality that downloads and executes an external binary and starts subprocesses, which increases operational and security risk despite being mostly additive and isolated. > > **Overview** > Adds a new `prime-tunnel` package that c...
diff --git a/packages/prime-tunnel/LICENSE b/packages/prime-tunnel/LICENSE new file mode 100644 index 000000000..44a4d7b13 --- /dev/null +++ b/packages/prime-tunnel/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Prime Intellect + +Permission is hereby granted, free of charge, to any person obtaining a copy...
30
24
14
[{"id": "G0", "claim": "The top-level `import fcntl` breaks the package on Windows with an ImportError, contradicting the declared OS-independent support.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The frpc config parses the port out of server_a...
null
PrimeIntellect-ai__prime__375
PrimeIntellect-ai/prime
375
defect
1e624edaac1aa141b7fbcf1c3874246e1d8633aa
19742806a937b9522a92e29f63d056300d36f195
Fix: Fix set team id for patch and delete
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Low risk: small, additive changes to CLI request parameterization; main risk is altered scoping if `teamId`/`team_id` is set incorrectly, affecting which resources are listed or mutated. > > **Overview** > Fixes missing team scoping in CLI/API calls by **propagating t...
diff --git a/packages/prime-evals/src/prime_evals/evals.py b/packages/prime-evals/src/prime_evals/evals.py index 9b29c9f84..1151d2986 100644 --- a/packages/prime-evals/src/prime_evals/evals.py +++ b/packages/prime-evals/src/prime_evals/evals.py @@ -317,6 +317,7 @@ def list_evaluations( self, env_name:...
1
1
1
[{"id": "G0", "claim": "Adding `team_id` before `skip` and `limit` in both `EvalsClient.list_evaluations` and `AsyncEvalsClient.list_evaluations` silently remaps existing positional calls, so the new parameter should be appended at the end or made keyword-only.", "category": "correctness", "verdict": "supported", "prio...
null
PrimeIntellect-ai__prime__387
PrimeIntellect-ai/prime
387
defect
2cfaec42fc72e304a5965a6c3f83900eea5fb783
c2ea816b03cd661d78d499a9c11aac9d915029f6
expand variables in secrets .env
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Scoped to CLI-side `.env` parsing; behavior changes are covered by new tests and primarily affect how secrets files are interpreted. > > **Overview** > Adds `${VAR}` expansion support when parsing `.env` secret files so users can reference locally-set environment vari...
diff --git a/packages/prime/src/prime_cli/commands/rl.py b/packages/prime/src/prime_cli/commands/rl.py index faa6abf62..c7760187d 100644 --- a/packages/prime/src/prime_cli/commands/rl.py +++ b/packages/prime/src/prime_cli/commands/rl.py @@ -411,9 +411,7 @@ def _remove_deprecated_config_keys(data: Dict[str, Any]) -> Non...
2
2
2
[{"id": "G0", "claim": "parse_env_file expands ${VAR} in the value before validating the key, so a line with an invalid key that references an unset variable raises EnvParseError and aborts the whole .env parse instead of being skipped with a warning.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
PrimeIntellect-ai__prime__396
PrimeIntellect-ai/prime
396
defect
627a069f49387266b0e175aa561771908b98441a
ca3f06a40a3f2dc74083faedbd072bbf12df0243
ENG-3016 Multi-ssh deployments
- Add Team API support - Add support for multi-ssh deployments for teams - Add interactive team selection for config <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes affect pod creation payloads and team lookup logic, which could impact how resources are shared or which team is used if misconfigure...
diff --git a/packages/prime/src/prime_cli/commands/config.py b/packages/prime/src/prime_cli/commands/config.py index f1c6e32de..7f6f6e5fd 100644 --- a/packages/prime/src/prime_cli/commands/config.py +++ b/packages/prime/src/prime_cli/commands/config.py @@ -101,6 +101,10 @@ def _env_set(*names: str) -> bool: ss...
4
3
3
[{"id": "G0", "claim": "The new share_resources_with_team getter returns bool(self.config.get(...)), which treats any non-empty string (including \"false\") as True, so if an existing or externally written config stores \"true\"/\"false\" as strings, config.share_resources_with_team can flip on unexpectedly and auto-sh...
null
PrimeIntellect-ai__prime__420
PrimeIntellect-ai/prime
420
defect
2ca87862c0d229bc8813f35e7a8f3f484ca19fb1
e6ca3fcd0ac998f47282111371eb739322884bd5
Fix eval billing check.
Closes ENG-3100 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes request/exception handling and adds a new preflight network call that can stop eval runs early on mis-detected billing/402 responses or transient API failures. > > **Overview** > `InferenceClient` now normalizes HTTP error messages and...
diff --git a/packages/prime/src/prime_cli/api/inference.py b/packages/prime/src/prime_cli/api/inference.py index a3a52a708..2f73b24d3 100644 --- a/packages/prime/src/prime_cli/api/inference.py +++ b/packages/prime/src/prime_cli/api/inference.py @@ -12,6 +12,31 @@ class InferenceAPIError(Exception): pass +class...
3
1
1
[{"id": "G0", "claim": "The billing preflight always builds InferenceClient() from local config, but run_eval_passthrough can run with a different key via --api-key-var/-k, so billing may be checked against Config.api_key instead of the key that will actually be used for eval traffic and a user can be blocked with a fa...
null
PrimeIntellect-ai__prime__422
PrimeIntellect-ai/prime
422
defect
7211850db4b8031eb92eba12f5389e08e465720f
3ab8c3d032df21ecfe85fb39600c241ef71999d3
Feature: Add team switch command.
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Changes how team context is selected and persisted, which can affect which account/team subsequent resource operations run against; new tests reduce regression risk but mis-switching could impact user workflows. > > **Overview** > Adds a new `prime switch` CLI comm...
diff --git a/README.md b/README.md index 5d9fef393..1bfa37fc3 100644 --- a/README.md +++ b/README.md @@ -189,8 +189,10 @@ prime eval samples <eval-id> # List teams prime teams list -# Set team context -prime config set-team-id +# Switch context +prime switch +prime switch personal +prime switch <team-slug> ``` ...
2
2
2
[{"id": "G0", "claim": "switch() should handle the `personal` target before creating APIClient() and calling fetch_teams, so that `prime switch personal` works offline or without PRIME_API_KEY since it only changes local config.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
PrimeIntellect-ai__prime__425
PrimeIntellect-ai/prime
425
defect
7211850db4b8031eb92eba12f5389e08e465720f
48ba4840cc2289bb9f674e97ecbd8a3b277319dd
Feature: Hosted evals support
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Introduces new CLI flows that create/cancel hosted evaluations and poll/stream logs via new API endpoints, which could impact UX and error handling if API responses/statuses differ from expectations. > > **Overview** > Adds **hosted evaluation support** to `prime e...
diff --git a/packages/prime/src/prime_cli/commands/evals.py b/packages/prime/src/prime_cli/commands/evals.py index 850d01162..77be1a470 100644 --- a/packages/prime/src/prime_cli/commands/evals.py +++ b/packages/prime/src/prime_cli/commands/evals.py @@ -1,8 +1,9 @@ import json import re +import time from functools im...
5
4
2
[{"id": "G0", "claim": "The `has_logs_statuses` classmethod on `EvalStatus` is dead code that is defined but never called and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `Console` import and `console = Console()` instan...
null
PrimeIntellect-ai__prime__427
PrimeIntellect-ai/prime
427
defect
7211850db4b8031eb92eba12f5389e08e465720f
a852a4f4860f6da2c67fd703e5cdb8f60894e727
Feature: Add public flag for eval pushes
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Changes the evaluation creation flow to optionally publish results, which can affect data visibility if misused. Includes a guard to prevent applying visibility changes when updating an existing evaluation. > > **Overview** > `prime eval push` now supports a `--pub...
diff --git a/README.md b/README.md index 5d9fef393..da28ac5de 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,9 @@ prime eval push # Push specific eval directory (verifiers format) prime eval push outputs/evals/gsm8k--gpt-4/abc123 +# Push a public evaluation (default is private) +prime eval push --public + #...
1
1
1
[{"id": "G0", "claim": "When `prime eval push` is run with `--eval-id` together with `--public`, the `--public` flag is silently ignored because the update path (`update_evaluation`) does not accept or forward `is_public`, with no warning or error, so users may believe they made their evaluation public when they did no...
null
PrimeIntellect-ai__prime__490
PrimeIntellect-ai/prime
490
defect
65463bc3030e16dcfe79f2725c393c79e123d8a6
2fb981e5e444f9c082a7d87e24b5f1902605c3f0
feat: add `prime rl configs` command
Did not use prime-rl type descriptions because would lead to missing descriptions for hosted configs that are not options in prime-rl. Should either have a server endpoint that returns all the expected types or rewrite all descriptions here. Not great that there is no single source of truth. But not priority for thi...
diff --git a/packages/prime/src/prime_cli/commands/rl.py b/packages/prime/src/prime_cli/commands/rl.py index 2e14796ad..196e406fd 100644 --- a/packages/prime/src/prime_cli/commands/rl.py +++ b/packages/prime/src/prime_cli/commands/rl.py @@ -488,6 +488,8 @@ class RLConfig(BaseModel): max_async_level: int | None = N...
3
3
1
[{"id": "G0", "claim": "_flatten_config_schema only recurses into direct {\"type\": \"object\"} properties, so optional nested models that Pydantic emits as anyOf-wrapped $refs (and allOf-wrapped refs) are treated as leaves and their child keys (e.g. sampling.temp_scheduler.type, start_temperature, end_temperature) are...
null
PrimeIntellect-ai__prime__500
PrimeIntellect-ai/prime
500
defect
d892ed86ca39f381f0028915f33cb783362d365f
40cf7acf037a70616f178d385ec141cd5bd8b1c8
ENG-3260: Add `prime env inspect`
## Summary - add `prime env inspect owner/name [path]` for browsing Hub environment source without pulling locally - support directory listings, file inspection, `--output json`, and `--max-bytes` - preserve literal content rendering in normal and `--plain` modes, and surface inspect examples in `prime env info` ## Va...
diff --git a/README.md b/README.md index be7e06fb1..f089bd06c 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,9 @@ prime env list # View environment details prime env info <environment-name> +# Inspect environment source without downloading the archive +prime env inspect <environment-name> + # Install an env...
2
2
2
[{"id": "G0", "claim": "The broad `except Exception` blocks in `env.py` also catch `typer.Exit` (Click `Exit` is an `Exception`), so validation failures like `prime env inspect invalid-id` are reported as `Unexpected error: 1` instead of the intended user-facing error; an explicit `except typer.Exit: raise` should be a...
null
PrimeIntellect-ai__prime__526
PrimeIntellect-ai/prime
526
defect
6ace39ac3fbadcadf581d599e9534db0e3a2885b
43cbb1a8dc42de51a419156f312abcaeaebabf73
Add top-level enable_thinking and reasoning_effort to RL config
Adds the two hosted RL reasoning controls added to the backend in platform#1390 as top-level fields on `RLConfig`, so users don't have to guess the nested `sampling.extra_body.chat_template_kwargs` path. - `enable_thinking: bool` — Qwen3.5 / Nemotron - `reasoning_effort: "low" | "medium" | "high"` — GPT-OSS - Mutual e...
diff --git a/packages/prime/src/prime_cli/api/rl.py b/packages/prime/src/prime_cli/api/rl.py index 960a7a4df..d703d156e 100644 --- a/packages/prime/src/prime_cli/api/rl.py +++ b/packages/prime/src/prime_cli/api/rl.py @@ -1,7 +1,7 @@ """Hosted RL (Reinforcement Learning) API client.""" from datetime import datetime ...
1
1
0
[{"id": "G0", "claim": "The run config summary displayed before run creation should also show the new enable_thinking and reasoning_effort fields, which it currently omits while displaying every other optional field.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PrimeIntellect-ai__prime__563
PrimeIntellect-ai/prime
563
defect
75f8e606ed8600237f37cecccdb45a11464bea36
38db9baa6e1eddcbc2f218aaf57ec015fff2b475
Read env-server logs via `prime rl logs -c env-server`
Adds `--component`/`-c` to `prime rl logs` plus a new `prime rl components` listing. - `prime rl logs <id>` — orchestrator (unchanged) - `prime rl logs <id> -c env-server --env <name>` — env-server pod - `prime rl logs <id> -c env-server --env <name>/<index>` — disambiguate dupes - `prime rl components <id>` — list po...
diff --git a/packages/prime/src/prime_cli/api/rl.py b/packages/prime/src/prime_cli/api/rl.py index 5a18ef4b3..96175d1f9 100644 --- a/packages/prime/src/prime_cli/api/rl.py +++ b/packages/prime/src/prime_cli/api/rl.py @@ -82,6 +82,17 @@ class RLCheckpoint(BaseModel): model_config = ConfigDict(populate_by_name=True)...
2
1
1
[{"id": "G0", "claim": "EnvServerInfo defines env_name, env_index and pod_name without aliases, so if /rft/runs/{id}/env-servers returns camelCase field names (envName/envIndex/podName) like the rest of this API, EnvServerInfo.model_validate() in list_env_servers() will fail and `prime rl components` will always error;...
null
PrimeIntellect-ai__prime__582
PrimeIntellect-ai/prime
582
defect
83390ddfdebdf4b48cf35d62e1520fd0547d9547
ffe867d035ebdcaa47427a71d07e5f90dddbb4f5
[codex] Update hosted training CLI to train
## Summary - Add `prime train` as the first-class Hosted Training CLI command while keeping `prime rl` as a hidden supported alias. - Promote direct config execution (`prime train rl.toml`) in help output while keeping `run` available as a hidden compatibility command. - Update Hosted Training copy, table titles, init...
diff --git a/packages/prime/src/prime_cli/commands/rl.py b/packages/prime/src/prime_cli/commands/rl.py index f0dec47c1..88e9daad8 100644 --- a/packages/prime/src/prime_cli/commands/rl.py +++ b/packages/prime/src/prime_cli/commands/rl.py @@ -1,4 +1,4 @@ -"""RL (Reinforcement Learning) training commands.""" +"""Hosted Tr...
4
3
2
[{"id": "G0", "claim": "The rl deprecation warning is printed with typer.echo(...) to stdout, which corrupts machine-readable JSON output for deprecated-alias commands such as `prime rl list -o json`, so the warning should be routed to stderr instead.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
PrimeIntellect-ai__prime__606
PrimeIntellect-ai/prime
606
defect
0cc075e78f1d79edae49cad5431008fd65a0670e
16527e6be925aa0256a2a0fc7a69d367fd0af2a6
Fix Lab Setup agent picker and button layout
## Summary - Replace the busted Setup screen agent toggle with a real `Select` control using plain agent names. - Remove the `prime-rl` option from the Setup UI. - Move `Run setup` into a left-aligned row beneath the agent picker. - Fix the screen-local running state so setup actions are no longer blocked by Textual in...
diff --git a/packages/prime/src/prime_lab_app/setup_screens.py b/packages/prime/src/prime_lab_app/setup_screens.py index 42bbfb444..f9383f410 100644 --- a/packages/prime/src/prime_lab_app/setup_screens.py +++ b/packages/prime/src/prime_lab_app/setup_screens.py @@ -24,9 +24,9 @@ from textual.binding import Binding fro...
1
1
1
[{"id": "G0", "claim": "After the PR removed the Enter keybinding for action_run_setup, the setup body still displays the note \"Press Enter to run setup in this workspace.\", which actively misleads users since Enter now interacts with the Select dropdown instead of triggering setup; the note text needs to reflect the...
null
PrimeIntellect-ai__prime__622
PrimeIntellect-ai/prime
622
defect
2e7ccf3c7ba13f7314b6b3d11a69f6c390351d6f
0c6028a82d9b9df1182f02f8bc421d3480e97680
feat: Enhance idempotency handling for POST requests
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Changes retry semantics for POST requests and introduces a new idempotent-POST code path; misclassification or missing idempotency keys could cause unexpected retries or error handling differences on write operations. > > **Overview** > **Adds an explicit idempoten...
diff --git a/packages/prime-sandboxes/src/prime_sandboxes/core/client.py b/packages/prime-sandboxes/src/prime_sandboxes/core/client.py index f17df8337..45b13da25 100644 --- a/packages/prime-sandboxes/src/prime_sandboxes/core/client.py +++ b/packages/prime-sandboxes/src/prime_sandboxes/core/client.py @@ -6,6 +6,7 @@ im...
1
1
1
[{"id": "G0", "claim": "Setting `idempotent_post=True` on a non-POST request disables `response.raise_for_status()` so HTTP 4xx/5xx responses no longer raise `APIError` and can be treated as successful JSON payloads, and the bypass should be limited to the dedicated idempotent-POST retry path (mirrored in `AsyncAPIClie...
null
PrimeIntellect-ai__prime__625
PrimeIntellect-ai/prime
625
defect
2e7ccf3c7ba13f7314b6b3d11a69f6c390351d6f
4f0759bd9475d71d1a5584c02c12a3d460c75e8c
Skip CLAUDE.md setup unless Claude is selected
## Summary - Make `prime lab setup` and `prime lab sync` download `CLAUDE.md` only when `claude` is among the selected agents. - Keep existing non-Claude `CLAUDE.md` files untouched during setup/sync. - Update the generated Lab docs index so it only lists `CLAUDE.md` for Claude workspaces. ## Testing - Not run (not re...
diff --git a/packages/prime/src/prime_cli/lab_setup.py b/packages/prime/src/prime_cli/lab_setup.py index d084ef523..08be3fcdc 100644 --- a/packages/prime/src/prime_cli/lab_setup.py +++ b/packages/prime/src/prime_cli/lab_setup.py @@ -377,7 +377,7 @@ def _run_lab_setup_steps( _sync_lab_metadata(workspace, options.ag...
1
1
1
[{"id": "G0", "claim": "When `prime lab sync --no-agent` runs on a workspace already configured for Claude, `agents` is empty at the docs step, so the docs index drops `CLAUDE.md` and the guidance refresh skips `CLAUDE.md`, leaving Claude workspaces with stale or inconsistent local guidance; the sync should use the wor...
null
PrimeIntellect-ai__verifiers__1015
PrimeIntellect-ai/verifiers
1,015
defect
05a311444b698f3abdda0838bbeea5ce8dd05f94
ce3efb6c57678741d16f12530be489c95959f324
Preserve multimodal media in saved eval results
## Summary - preserve multimodal images and audio in saved eval results instead of collapsing them to placeholders - normalize image data URLs into base64-backed input_image records and preserve structured input_audio payloads when valid - add regression coverage for data URL parsing, audio alias handling, typed mes...
diff --git a/tests/test_message_utils_audio.py b/tests/test_message_utils_audio.py deleted file mode 100644 index 546711bda5..0000000000 --- a/tests/test_message_utils_audio.py +++ /dev/null @@ -1,118 +0,0 @@ -# tests/test_message_utils_audio.py -from verifiers.utils.message_utils import ( - message_to_printable, - ...
5
3
1
[{"id": "G0", "claim": "_parse_data_url validates the original data with _BASE64_DATA_RE.fullmatch(data) instead of validating the compact_data it computes and returns, so whitespace that \\s+ strips but the regex does not accept causes false rejections.", "category": "correctness", "verdict": "supported", "priority": ...
null
PrimeIntellect-ai__verifiers__1023
PrimeIntellect-ai/verifiers
1,023
defect
44371825efc1f5cd201efbc85b48e05c9a334946
4772473395873ecc3c519fd6e6f64aeb2c72debd
opencode_rlm_env
## Description opencode_rlm_env ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as...
diff --git a/environments/opencode_rlm_test/opencode_rlm_test.py b/environments/opencode_rlm_test/opencode_rlm_test.py new file mode 100644 index 0000000000..f6c2fe66ef --- /dev/null +++ b/environments/opencode_rlm_test/opencode_rlm_test.py @@ -0,0 +1,69 @@ +""" +Smoke-test environment for OpenCodeRLMEnv. + +Uses a tin...
11
11
6
[{"id": "G0", "claim": "The asyncio.create_task result for sub-LLM requests is discarded without saving a reference, so the event loop may garbage-collect the task mid-execution and silently drop the sub-LLM request.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
PrimeIntellect-ai__verifiers__1026
PrimeIntellect-ai/verifiers
1,026
defect
3b4d411350847de00a04fb7b5d96465b42bdd4c1
bb8850308e65b3819622f71d3ffe41eb72755db8
Add cleanup and teardown lifecycle hooks to Rubric
Independent rubric cleanup and teardown handlers, following the same pattern as for envs. Concretely enables extending the sandbox lifecycle from rollout to scoring by "transferring" a sandbox from the environment to the rubric for scoring (see #999). Apart from cleaner abstractions this will also enable independently ...
diff --git a/verifiers/decorators.py b/verifiers/decorators.py index df706e2d11..e8050d3680 100644 --- a/verifiers/decorators.py +++ b/verifiers/decorators.py @@ -1,4 +1,21 @@ -from typing import Awaitable, Callable +import inspect +from typing import Any, Awaitable, Callable + + +def discover_decorated(obj: Any, attr:...
2
1
1
[{"id": "G0", "claim": "RubricGroup.cleanup() and RubricGroup.teardown() never call the super() implementations, so @vf.cleanup/@vf.teardown decorated methods defined on a RubricGroup subclass are discovered but silently never invoked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
PrimeIntellect-ai__verifiers__1035
PrimeIntellect-ai/verifiers
1,035
defect
12a1a916b3be69387b31327c05579df0239a83e1
0ee0546368497e2f6f34c8b9ef7b38ce1a92abeb
fix: task cancelation race + RLM sandbox workers
## Description ...
diff --git a/tests/test_env_server.py b/tests/test_env_server.py index c38da47fd5..c53e286df9 100644 --- a/tests/test_env_server.py +++ b/tests/test_env_server.py @@ -331,6 +331,56 @@ class TestTaskCancellation: wire format, and the server cancels the corresponding asyncio task. """ + @pytest.mark.asynci...
3
3
1
[{"id": "G0", "claim": "Merge the two task-tracking dicts (request_tasks and pending_tasks) into one to avoid future races between them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the sandbox upload/download retry helpers into the sandbox mixin ...
null
PrimeIntellect-ai__verifiers__1036
PrimeIntellect-ai/verifiers
1,036
defect
de2ed50f015ed1af0990b218de1df0853d9b3973
91b120466ab1e758d52523e3ae23553271c3e389
perf: incremental metrics
## Description <!-- Provide a brief description of the changes in this PR --> Replace O(n²) metric recomputation in GenerateOutputsBuilder with incremental update/compute pattern. Introduces a Metric protocol and concrete classes (RewardMetric, ErrorRateMetric, InputTokensMetric, OutputTokensMetric, EnvMetrics, Pas...
diff --git a/tests/test_save_utils.py b/tests/test_save_utils.py index cca200f0b2..69ece728bd 100644 --- a/tests/test_save_utils.py +++ b/tests/test_save_utils.py @@ -16,7 +16,15 @@ from pydantic import BaseModel from verifiers.types import ClientConfig -from verifiers.utils.metric_utils import compute_pass_at_k +f...
1
1
0
[{"id": "G0", "claim": "self.tools_list is initialized and populated in add_outputs but is never read anywhere after this refactor, because the old build_metadata code that iterated over tools_list to compute unique tools was replaced by unique_tools_keys and first_tools, making tools_list dead code that silently accum...
null
PrimeIntellect-ai__verifiers__1046
PrimeIntellect-ai/verifiers
1,046
defect
628d1fd8c7c5b6669c4ba2459ce588d8384d3b50
9aeb520156afa8a328ae23565a15025a06d8c933
perf: math rubric skip overlong answers
## Description <!-- Provide a brief description of the changes in this PR --> Two fixes to improve the performance of the math rubric at high concurrency: - Defaults to `extract_boxed_answer` in strict mode to avoid symbolic parsing of the full model response (and also false positives, as mentioned in #1028) - Ex...
diff --git a/verifiers/__init__.py b/verifiers/__init__.py index 4ded59bfc7..c140eabb55 100644 --- a/verifiers/__init__.py +++ b/verifiers/__init__.py @@ -25,6 +25,7 @@ from .utils.data_utils import ( extract_boxed_answer, extract_hash_answer, + strict_extract_boxed_answer, load_example_dataset, ) ...
2
2
2
[{"id": "G0", "claim": "The default parser still uses extract_boxed_answer, so the strict_extract_boxed_answer variant is defined and exported but never used in MathRubric, and the PR's stated performance goal of avoiding symbolic parsing of full responses without \\boxed{} is not applied.", "category": "performance", ...
null
PrimeIntellect-ai__verifiers__1048
PrimeIntellect-ai/verifiers
1,048
defect
b1fd0b8243dc2e0ad54ef6230e62159a8a3ab1ab
0379daac3e3b3e0036c5ba30afe627203c4be249
feat: add extra_headers_from_state to ClientConfig
## Summary - Adds `extra_headers_from_state` field to `ClientConfig` that maps HTTP header names to state field names - For each inference request, headers are dynamically built from the rollout state dict - Enables sticky routing (e.g. `X-Session-ID` from `example_id`) without monkey-patching client classes ## Usage ...
diff --git a/verifiers/clients/client.py b/verifiers/clients/client.py index 6bf7d7e439..7991670e87 100644 --- a/verifiers/clients/client.py +++ b/verifiers/clients/client.py @@ -40,8 +40,10 @@ class Client(ABC, Generic[ClientT, MessagesT, ResponseT, ToolT]): def __init__(self, client_or_config: ClientT | ClientCo...
3
2
1
[{"id": "G0", "claim": "The `options` dict passed to `self.client.post()` uses the key `extra_headers` where the OpenAI SDK's `RequestOptions` expects `headers`, so the sticky-routing headers are silently ignored on the primary token-stitching code path.", "category": "correctness", "verdict": "supported", "priority": ...
null
PrimeIntellect-ai__verifiers__1051
PrimeIntellect-ai/verifiers
1,051
defect
44371825efc1f5cd201efbc85b48e05c9a334946
991e36235376555dda2dc4df678580cbed3ced67
support headers/extra_headers in endpoints.toml
## Description <!-- Provide a brief description of the changes in this PR --> ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would...
diff --git a/docs/evaluation.md b/docs/evaluation.md index 58914d2e2c..13a74ec61a 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -96,6 +96,19 @@ api_client_type = "anthropic_messages" Each endpoint entry supports an optional `api_client_type` field to select the client implementation (defaults to `"open...
3
3
1
[{"id": "G0", "claim": "Raising TypeError when extra_headers is not a dict means load_endpoints' (ImportError, AttributeError, ValueError) handler misses it, so malformed headers like headers = \"invalid\" crash the program instead of falling back to an empty registry.", "category": "correctness", "verdict": "supported...
null
PrimeIntellect-ai__verifiers__1060
PrimeIntellect-ai/verifiers
1,060
defect
5cb6fad1b87f933a056869064d22e6da1db8518e
fd078d06cfccb9a3b35a007a135a3c8dc764bee3
vf-tui: show rollouts and unique prompts, better dynamic width
## Description The columns in the main table of the comparison view of vf-tui were changed: - Removed `ids`; this is not an actionable column, is not human readable, and wastes space - Added `rollouts`; while the number of runs was already shown, the number of rollouts is more important - Added `unique prompts`...
diff --git a/tests/test_tui_info_formatting.py b/tests/test_tui_info_formatting.py index 6045bcadf2..91d8348e41 100644 --- a/tests/test_tui_info_formatting.py +++ b/tests/test_tui_info_formatting.py @@ -450,11 +450,9 @@ def test_compare_runs_screen_renders_settings_and_reward_buckets(tmp_path) -> No # Simulate _fi...
3
2
1
[{"id": "G0", "claim": "The axes table aliases long setting values as v1, v2, etc., but the legend_rows that previously explained those aliases were removed, so when setting values exceed 20 characters the axes table header shows unexplained aliases with no way for the user to know what they represent.", "category": "c...
null
PrimeIntellect-ai__verifiers__1061
PrimeIntellect-ai/verifiers
1,061
defect
fe1f17a2108002baa1383f70ba1452d7fb6e702e
4b6b05315b6de482f4cbf25d3300e5fcdec950d4
fix: env tests
## Description Fixes `vf-eval` hanging on exit for envs that use `MathRubric` which has `ProcesPoolExecutor` since #1034 only when the env server is enabled and for Python <3.13. ### Root cause On Python <3.13, `ProcessPoolExecutor` workers forked from a multi-threaded process (asyncio + ZMQ threads) can deadl...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11a63135e1..aea6bec5fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,6 +46,7 @@ jobs: test-envs: name: Environments runs-on: ubuntu-latest + timeout-minutes: 60 env: PRIME_API_KEY: ${...
2
2
2
[{"id": "G0", "claim": "The newly added unconditional os._exit(0) at the end of eval.py main() will terminate the whole pytest process when test_eval_cli.py calls vf_eval.main() in-process on Python <3.13, silently skipping subsequent tests and falsely reporting CI success.", "category": "correctness", "verdict": "supp...
null
PrimeIntellect-ai__verifiers__1072
PrimeIntellect-ai/verifiers
1,072
defect
14c36b890efe2a7f47c0fdabbd549dd8ddf1268b
62f9a8e87e5bf127d357235ce3d420a863f900d8
RLM: context dropping & summarization
## Description - Add `remove_conversation_turns(n_turns, summary)` root tool for context window management - Model can drop old turns from context while retaining access via `.messages` and `.summaries` files - New params: `allow_context_dropping` (default False), `min_turns_in_context` (default 3) - Default `ex...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index 1aebc5e536..4c9be5930a 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -28,6 +28,7 @@ RLMWorkerRecoveryError, SubLLMEmptyModelResponseError, ) +from verifiers.types import UserMessage # =====================================...
5
2
2
[{"id": "G0", "claim": "Context dropping is double-applied: the dropped messages returned by get_prompt_messages are stored in the trajectory, so on the next turn the already-shortened prompt is shortened again with the same cumulative _dropped_turns_count, compounding the context loss every turn.", "category": "correc...
null
PrimeIntellect-ai__verifiers__1089
PrimeIntellect-ai/verifiers
1,089
defect
45b01209167f912d6c2e36cc0a674d9de8bdb77c
01a0c7da431aff3d51486f32abd56014400711d8
remove RLM branding from model-visible prompts and messages
## Description Rename model-facing references so the scaffolding is generic: - <RLM_SCAFFOLDING> → <SCAFFOLDING> - RLM_READY → ANSWER_READY, RLM_CONTENT → ANSWER_CONTENT, RLM_PWD → REPL_PWD - "sub-LLM" → "sub-model" / "llm_batch" in prompt text and budget messages - "Sub-LLM Tools" → "Sub-Model Tools" Interna...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index 64ad739202..3c3864ba0f 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -445,8 +445,8 @@ async def test_bash_prompt_mentions_env_vars(self, rlm_env_bash): result = await env.setup_state(state) try: prompt = ...
1
1
1
[{"id": "G0", "claim": "The commit renames only some model-facing strings from \"sub-LLM\" to \"llm_batch\" while leaving others unchanged (SUB_LLM_ROOT_INSTRUCTION_STORE still says \"sub-LLMs\", build_sub_tools_documentation still says \"## Sub-LLM Tools\"), so the system prompt mixes contradictory terminology contrar...
null
PrimeIntellect-ai__verifiers__1098
PrimeIntellect-ai/verifiers
1,098
defect
9390139d6fcce43e460aedaea5ca432c28b319b8
b8ef6a480297e42abefd90bec2c4ff53a4759d61
RLM: Remove token/timing info from llm_batch output and add max_turns metric
## Description - Remove all print_lines from llm_batch (summary_lines, per-sub-llm metadata, budget lines). _root_llm_batch now returns list[str] directly. - Remove root completion token budget line from REPL output. - Bash helper outputs llm_batch results as JSON instead of formatted headers. Remove dead _split_b...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index c03532fb0f..a21f06e8ab 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -811,29 +811,21 @@ def test_tool_json_invalid_error(self): assert "Invalid JSON payload" in stderr assert captured is None - def test_llm_batch...
1
1
1
[{"id": "G0", "claim": "The new sub_llm_max_turns_reached_frac metric divides _sub_llm_max_turns_reached_count (incremented per _run_sub_llm_request invocation, including empty-turns timeout requests) by sub_llm_call_count (only incremented per processed trajectory turn in update_rlm_metrics_from_step), so on a first-a...
null
PrimeIntellect-ai__verifiers__1104
PrimeIntellect-ai/verifiers
1,104
defect
e621ba1507c93283229ed2d66bf3e3d96f3db341
34af6c44f195b2f1d01055a1cc03aaabfef0c304
Harden RLM root-tool transport to remove unsafe pickle deserialization
### Motivation - Sandbox mode exposes the root-tool endpoint via a tunnel and the handler previously accepted base64-encoded `pickle` blobs and called `pickle.loads` on them, enabling sandbox-to-host RCE; this change removes that attack surface. ### Description - Replace pickle/base64 transport in worker helpers with ...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index adb2868e7c..3f23ac84b2 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -1,12 +1,10 @@ """Tests for the RLMEnv class (filesystem-based, local-only).""" import ast -import base64 import contextlib import io import json import os -i...
3
3
2
[{"id": "G0", "claim": "In _handle_root_tool_request the newly added code references print_lines, which is never defined in that server-side handler, so every successful root-tool invocation raises a NameError at `if print_lines:`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introdu...
null
PrimeIntellect-ai__verifiers__1135
PrimeIntellect-ai/verifiers
1,135
defect
5f72e9f30859ebd113e646a4e15cba2979762bf9
781aae034e6cf89df2e3b2428cb419632411c24c
Export eval parser for prime CLI reuse
## Summary - export the eval parser and parse helper from the CLI entrypoint - let the TOML config loader accept extra valid fields for downstream CLIs - preserve per-eval model vs endpoint override behavior inside the shared TOML loader ## Testing - uv run ruff format - uv run ruff check --fix - uv run python3 -c 'fr...
diff --git a/verifiers/cli/commands/eval.py b/verifiers/cli/commands/eval.py index 75499c3c61..7645398fe0 100644 --- a/verifiers/cli/commands/eval.py +++ b/verifiers/cli/commands/eval.py @@ -1,6 +1,8 @@ """Evaluation command module for external hosts.""" -from verifiers.scripts.eval import main +from verifiers.scrip...
2
2
2
[{"id": "G0", "claim": "parse_args() always calls build_parser().parse_args(argv), so main() passes an explicit positional argument even when argv is None, breaking call sites that monkeypatch parse_args with a zero-arg callable; call parse_args() with no argument when argv is None.", "category": "correctness", "verdic...
null
PrimeIntellect-ai__verifiers__548
PrimeIntellect-ai/verifiers
548
defect
ba0f2baceea3398205924bd8a1f24d201c7ca2c6
32446eeff478627d0f6ead127cbd20ba61f8e02f
add GymEnv
## Description Adds `GymEnv`, an optional `MultiTurnEnv` subclass that runs classic `reset`/`step` simulator loops. This allows `gymnasium`-compatible environments to be plugged directly into `verifiers` for RL training or evaluation. Also adds a "hello world" by wrapping GEM's wordle implementation and turning it ...
diff --git a/environments/gem_wordle/README.md b/environments/gem_wordle/README.md new file mode 100644 index 0000000000..a7b37869c0 --- /dev/null +++ b/environments/gem_wordle/README.md @@ -0,0 +1,22 @@ +# gem_wordle + +### Overview +- **Environment ID**: `gem_wordle` +- **Short description**: Multi-turn Wordle game e...
4
4
4
[{"id": "G0", "claim": "The PR should be rebased on top of the trajectories branch (#549) and should keep a notion of a dataset, ideally generated at init from a given number of hidden-state samples, as trainers expect to work with datasets.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in...
null
PrimeIntellect-ai__verifiers__635
PrimeIntellect-ai/verifiers
635
defect
ac2b2e95e7668f184e497524e546900fffca6bae
d26ecfa6fe8d087f85f4426da406d1fb5de56fb3
Misc fixes for (Stateful)ToolEnv + SandboxEnv + PythonEnv
## Description <!-- Provide a brief description of the changes in this PR --> Fixes the following things in the above mentioned envs: - `ToolEnv`/ `StatefulToolEnv`: The `stop_errors` was previously checked against the exception wrapped in `ToolError` which means one can only catch parents of this class (e.g. `vf....
diff --git a/environments/math_python/math_python.py b/environments/math_python/math_python.py index 04e76b6ca9..24559e3c48 100644 --- a/environments/math_python/math_python.py +++ b/environments/math_python/math_python.py @@ -7,14 +7,14 @@ def load_environment( dataset_split: str = "train", num_train_example...
1
1
1
[{"id": "G0", "claim": "The `stop_errors` parameter of SandboxEnv uses a mutable list `[vf.SandboxError]` as its default value, so mutations made via one instance's `stop_errors` would affect all instances created with the default; use `None` as the default and build the list inside the function.", "category": "correct...
null
PrimeIntellect-ai__verifiers__637
PrimeIntellect-ai/verifiers
637
defect
ba0f2baceea3398205924bd8a1f24d201c7ca2c6
0149248d126d8e8fb2061dae318f139dbd7e3c4d
Handle all truncation cases
## Description <!-- Provide a brief description of the changes in this PR --> Currently, we only populate the `is_truncated` field only when processing tokens by checking whether the prompt and completions tokens at the current turn exceed the environment's `max_seq_len`. This only catches 1 out of 4 truncation cas...
diff --git a/tests/test_eval_utils.py b/tests/test_eval_utils.py index 247fee4774..55ee69637e 100644 --- a/tests/test_eval_utils.py +++ b/tests/test_eval_utils.py @@ -64,6 +64,8 @@ def test_print_results_rollout_indexing(capsys): example_id=example_ids, reward=rewards, metrics={"test_metric":...
1
1
1
[{"id": "G0", "claim": "Counter(errors) on a list of Error exception objects counts each unique instance separately instead of aggregating by error type, so the printed errors line shows every individual error with proportion 1/len(errors) rather than a distribution like \"ModelError: 0.5, ToolError: 0.3\"; the fix is ...
null
PrimeIntellect-ai__verifiers__653
PrimeIntellect-ai/verifiers
653
defect
de5cae2380e76327532c341380ce16e3bc756600
1d3443863f88e18ae93933a95fd46879006f7b40
Implement monitor rubrics
## Description <!-- Provide a brief description of the changes in this PR --> This PR implements the idea of `MonitorRubric`, a simple extensions of `Rubric` which only allows to register metrics, ie. reward functions with weight `0.0`, with simple helpers to build up metric logging across environment hierarchies. ...
diff --git a/environments/math_python/math_python.py b/environments/math_python/math_python.py index 24559e3c48..0a05c1fbfc 100644 --- a/environments/math_python/math_python.py +++ b/environments/math_python/math_python.py @@ -24,7 +24,7 @@ def load_environment( parser = vf.Parser(extract_fn=extract_boxed_answer...
8
6
5
[{"id": "G0", "claim": "A distinct MultiTurnMonitorRubric class may be unnecessary since all env classes already extend MultiTurnEnv, and it risks other extensions such as SandboxMonitorRubric not being multi-turn compatible by default.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introdu...
null
PrimeIntellect-ai__verifiers__657
PrimeIntellect-ai/verifiers
657
defect
839c234ca5c7f8ed0ea3ab4b87d6f2767960c5de
f4705b02979ad3183bb083e3d14abb859fbc7321
Improvements to math rubric
## Description <!-- Provide a brief description of the changes in this PR --> Fixes to `MathRubric`: - Run in thread pool with configurable number of workers for higher performance - Warning logs on exceptions and timeouts - Re-raise `CancelledError` so that timeouts don't show print warnings twice - Suppress w...
diff --git a/environments/gsm8k/gsm8k.py b/environments/gsm8k/gsm8k.py index dd8ac79e05..a23721fcf0 100644 --- a/environments/gsm8k/gsm8k.py +++ b/environments/gsm8k/gsm8k.py @@ -1,7 +1,6 @@ import verifiers as vf from verifiers.utils.data_utils import ( BOXED_SYSTEM_PROMPT, - extract_boxed_answer, load_...
1
1
1
[{"id": "G0", "claim": "The ThreadPoolExecutor created in __init__ is never shut down, so each MathRubric instance leaks up to max_workers (default 10) threads that persist until program exit, accumulating across instances in tests and when rubrics are recreated in production.", "category": "correctness", "verdict": "s...
null
PrimeIntellect-ai__verifiers__706
PrimeIntellect-ai/verifiers
706
defect
15f68ca35ef2653bb184693ec905ee20ab651971
3cc4943db2b85b1ac74d2bce57607a725de325ba
docs, tool fixes, setup command, release notes
## Description Prep for v0.1.9 release, including: - doc updates, readme overhaul - version bump - fix for adding + removing tools - allowing system_prompt field to be used with datasets with a 'prompt' column ## Type of Change <!-- Mark the relevant option with an "x" --> - [X] Bug fix (non-breaking change...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40c3aa10b8..426d2fad08 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,12 @@ repos: args: [--config=pyproject.toml] - repo: local hooks: + - id: sync-agents-md + name: Sync AGENTS.md from do...
1
1
1
[{"id": "G0", "claim": "When ToolEnv is initialized with a non-empty tools list, ToolEnv.tools and ToolMonitorRubric.tools share the same list reference, so calling add_tool appends the tool to that list twice (once in add_tool, once in add_tool_metric), making each added tool appear twice; add_tool_metric should not m...
null
PrimeIntellect-ai__verifiers__735
PrimeIntellect-ai/verifiers
735
defect
780bb21dc2f34fdf9182d22af360c3e903a8dd6b
b3e73643d010438bbb0da697eb401c3b4107db38
eval tui
## Description <!-- Provide a brief description of the changes in this PR --> This PR implements a live-updating TUI for multi-env logs (#734) using a opt-in `--tui` flag. This will be especially useful for large prod-scale evals with many envs. It is designed such that the default `vf-eval` is affected as little a...
diff --git a/configs/eval/debug.toml b/configs/eval/debug.toml index c954967463..71189d0e60 100644 --- a/configs/eval/debug.toml +++ b/configs/eval/debug.toml @@ -1,8 +1,16 @@ -model = "openai/gpt-5-mini" +model = "openai/gpt-4.1-mini" +save_results = true +save_every = 10 [[eval]] env_id = "primeintellect/wiki-sea...
12
8
5
[{"id": "G0", "claim": "configs/evals/debug.toml uses [[env]] sections but load_toml_config expects [[eval]], so running `prime eval run configs/evals/debug.toml` fails with \"Config file must contain at least one [[eval]] section\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
PrimeIntellect-ai__verifiers__750
PrimeIntellect-ai/verifiers
750
defect
ea7eaa80281d5ac0f6b2e2268aae8f59e76093fa
7dca89efee70e9d57ac010b4a638217840c4945f
Add retry support for infrastructure errors in vf-eval
## Description Adds --max-retries CLI flag to retry rollouts when vf.InfraError occurs. I've opted to only retry on `vf.InfraError` right now, as we don't assure yet that any `vf.Error` is retry-able. ...
diff --git a/docs/evaluation.md b/docs/evaluation.md index a1ae458842..5af955158a 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -117,9 +117,12 @@ Multiple rollouts per example enable metrics like pass@k and help measure varian | `--max-concurrent-generation` | — | same as `-c` | Concurrent generation req...
4
3
1
[{"id": "G0", "claim": "The tc.AsyncRetrying configuration lacks a retry parameter, so tenacity retries on all exceptions (ModelError, ToolError, OverlongPromptError) instead of only vf.InfraError as the PR description states; add retry=tc.retry_if_exception_type(vf.InfraError).", "category": "correctness", "verdict": ...
null
PrimeIntellect-ai__verifiers__816
PrimeIntellect-ai/verifiers
816
defect
dfc473ceea9cd062414ec706cda281bd04dda4d8
0b374d01d2904433d52488377d8ce0d2889bcb14
track token usage in eval
## Description <img width="808" height="330" alt="image" src="https://github.com/user-attachments/assets/fecc54c6-f125-4dc6-a887-03632f13fa05" /> ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which a...
diff --git a/tests/conftest.py b/tests/conftest.py index c08869546f..16533e0d44 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -529,6 +529,7 @@ def _make_metadata( time_ms: float = 0.0, avg_reward: float = 0.0, avg_metrics: dict[str, float] = {}, + usage: dict[str, float] | ...
4
4
2
[{"id": "G0", "claim": "usage_seen is set to True even when outputs lack token_usage data (o.get(\"token_usage\", {}) yields {} and isinstance({}, dict) is always True), so the display and metadata misleadingly show {\"input_tokens\": 0, \"output_tokens\": 0} when the API provides no usage; the check should verify the ...
null
PrimeIntellect-ai__verifiers__842
PrimeIntellect-ai/verifiers
842
defect
05089df31396815f552f74f21976d1906eb7b13c
dd40b2320183262f087229ec15d63622005b5fde
Make eval `--resume` optional and auto-detect latest incomplete run
### Motivation - Allow resuming evaluations without always supplying an explicit results path by making `--resume` accept an optional path and auto-detect the most recent incomplete matching run. - Keep existing explicit-path behavior and preserve TOML backward compatibility for `resume_path`. ### Description - Repla...
diff --git a/docs/evaluation.md b/docs/evaluation.md index 5694fd5c12..cf3b4f0f7c 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -139,7 +139,7 @@ The `--max-retries` flag enables automatic retry with exponential backoff when r | `--tui` | `-u` | false | Use alternate screen mode (TUI) for display | | `--...
4
2
1
[{"id": "G0", "claim": "When a TOML config sets resume = false to override a global resume = true for a specific eval, build_eval_config raises a ValueError instead of treating it as no resume, making it impossible to disable auto-resume on a per-eval basis.", "category": "correctness", "verdict": "supported", "priorit...
null
PrimeIntellect-ai__verifiers__858
PrimeIntellect-ai/verifiers
858
defect
d82efa5e2f57934b45c08ded48339f756e929110
6a378ae1021489f5deea5f6d1fcd5a9e6de69984
Add robust token usage tracking
## Description <!-- Provide a brief description of the changes in this PR --> ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would...
diff --git a/tests/test_environment_extra.py b/tests/test_environment_extra.py index b3042ff474..9aef4a21d7 100644 --- a/tests/test_environment_extra.py +++ b/tests/test_environment_extra.py @@ -14,6 +14,7 @@ import asyncio import json from typing import Callable +from unittest.mock import AsyncMock, MagicMock im...
3
2
2
[{"id": "G0", "claim": "When a StateUsageTracker exists but snapshot() returns None, _extract_state_token_usage falls through to state[\"usage\"] (the tracker's zeroed live view) and returns zeros instead of None, incorrectly implying usage was tracked when it wasn't.", "category": "correctness", "verdict": "supported"...
null
PrimeIntellect-ai__verifiers__864
PrimeIntellect-ai/verifiers
864
defect
4d72312dd2ed8fea1e1e20e708d2ade216ee757f
a1ef6b7a4c59fdbb12c69c821b53ee440bf3f88c
Add EndpointClientConfig and forbid recursive endpoint_configs
### Motivation - Prevent recursive `ClientConfig.endpoint_configs` structures so endpoint lists are single-level and easier to resolve at runtime. - Make the intent explicit by separating a leaf endpoint entry type from the full `ClientConfig` to avoid accidental recursion and cycles. ### Description - Introduced a ne...
diff --git a/tests/test_client_config.py b/tests/test_client_config.py new file mode 100644 index 0000000000..e918edb021 --- /dev/null +++ b/tests/test_client_config.py @@ -0,0 +1,50 @@ +import pytest +from pydantic import ValidationError + +from verifiers.types import ClientConfig, EndpointClientConfig + + +def test_c...
2
2
1
[{"id": "G0", "claim": "docs/reference.md still shows the old endpoint_configs type and does not document EndpointClientConfig, so documentation was not updated for the user-facing type change.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The co...
null
PrimeIntellect-ai__verifiers__873
PrimeIntellect-ai/verifiers
873
defect
b8b502c532941f199d9387facedcbe0dc7319d20
73fcba79d0af72e075a26015d8c5d63107948f2f
skills setup
## Description <!-- Provide a brief description of the changes in this PR --> ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would...
diff --git a/.cursor/BUGBOT.md b/.cursor/BUGBOT.md index 0b53be6d6d..80121e2acf 100644 --- a/.cursor/BUGBOT.md +++ b/.cursor/BUGBOT.md @@ -24,3 +24,30 @@ Any PR that adds or removes an environment from the `environments/` folder must - Update the "What to look at for each pattern" section if applicable If an enviro...
1
1
0
[{"id": "G0", "claim": "The pull request changes what `prime lab setup` produces but does not update the `docs/overview.md` workspace tree (lines 32-42) to include the new `.prime/skills/` directory, which the BUGBOT documentation rules explicitly enumerate for update.", "category": "documentation", "verdict": "support...
null
PrimeIntellect-ai__verifiers__879
PrimeIntellect-ai/verifiers
879
defect
56676d642fb275bdc1bd61921df5519a6b70def3
e8da0a88678ddc8b98f9382e9dbd4383dc002a27
Fix for dir resolutions
## Description <!-- Provide a brief description of the changes in this PR --> ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would...
diff --git a/tests/test_prime_plugin.py b/tests/test_prime_plugin.py new file mode 100644 index 0000000000..3a9280c2b6 --- /dev/null +++ b/tests/test_prime_plugin.py @@ -0,0 +1,87 @@ +from pathlib import Path + +import verifiers.cli.plugins.prime as prime_plugin + + +def _make_workspace(tmp_path: Path) -> tuple[Path, P...
2
2
1
[{"id": "G0", "claim": "_find_workspace_root hardcodes positional access into the WORKSPACE_ROOT_MARKERS tuple (marker_paths[0]/[1]/[2] with is_file/is_dir checks), so reordering or modifying the tuple would silently break the type checks; each marker should be checked directly by name instead.", "category": "maintaina...
null
PrimeIntellect-ai__verifiers__889
PrimeIntellect-ai/verifiers
889
defect
f93c431ee5329cae4c916153680e6add7a18317a
f9aa5a0b9415fdcaaee258c2c4203896dd13f46c
Codex-generated pull request
Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_698ae3d4e65483269f55dd0fa7247901) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Behavioral changes to saved results format ...
diff --git a/configs/endpoints.py b/configs/endpoints.py index a966595f8a..fa81684f65 100644 --- a/configs/endpoints.py +++ b/configs/endpoints.py @@ -4,236 +4,236 @@ "model": "allenai/olmo-3-32b-think", "url": "https://api.pinference.ai/api/v1", "key": "PRIME_API_KEY", - "client_type"...
1
1
0
[{"id": "G0", "claim": "The `_flatten_messages_content` function is now dead code because this PR removed all its call sites in `state_to_output` but left the function definition behind with no remaining callers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PrimeIntellect-ai__verifiers__890
PrimeIntellect-ai/verifiers
890
defect
0df300be0321ae9efc04c323159fb69d687d3c5e
01c837ebb3243582843cb14d1ad649b9cf25d26e
Codex-generated pull request
Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_698b86f377048326afaa37a1483750b1) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes CLI argument semantics and filesyst...
diff --git a/docs/overview.md b/docs/overview.md index 3eced98176..1b013266e9 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -100,7 +100,7 @@ In the TUI, press `c` to open Copy Mode for prompt/completion text; highlight an To publish the environment to the [Environments Hub](https://app.primeintellect.ai/da...
1
1
0
[{"id": "G0", "claim": "The skill files (skills/create-environments/SKILL.md, skills/evaluate-environments/SKILL.md, skills/train-with-environments/SKILL.md) still reference the old `prime env push --path ./environments/my_env` syntax and were not updated to match the new positional `my-env` form introduced in docs/ove...
null
PrimeIntellect-ai__verifiers__904
PrimeIntellect-ai/verifiers
904
defect
00c07a88ef03d221a6b1d89c282f49a9eb76a4df
1bcc223e0b5a380643e3785899b0d22c29a62127
add heartbeat monitoring to vf-eval
## Description This PR adds heartbeat monitoring to vf-eval for long-running evals, where a user may want to be notified that the eval went down. ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which a...
diff --git a/verifiers/scripts/eval.py b/verifiers/scripts/eval.py index 3dce167c7e..92dbbf8062 100644 --- a/verifiers/scripts/eval.py +++ b/verifiers/scripts/eval.py @@ -278,6 +278,12 @@ def main(): default=0, help="Max retries for transient infrastructure errors (default: 0)", ) + parser.add...
5
3
2
[{"id": "G0", "claim": "In run_evaluations the heart.stop() call sits after asyncio.gather() without try/finally, so if an evaluation raises, the heartbeat task is never cancelled and keeps running until the event loop shuts down.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
PrimeIntellect-ai__verifiers__912
PrimeIntellect-ai/verifiers
912
defect
0f1e33456d31fd6838da1325e9ed8bcc344e29b3
44df26832caacacd5db2d3e39280e68cb85544ca
deprecate interleaved_rollouts
## Description <!-- Provide a brief description of the changes in this PR --> it has no effect anymore. to get tito use `client_type="openai_chat_completions_token"` @snimu im not sure why rlm was using this before? it should usually not be env builder's concern to set this ## Type of Change <!-- Mark the re...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index cb9d108ba4..4e538ca8cd 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -14,19 +14,19 @@ import pytest from datasets import Dataset + +import verifiers as vf from verifiers.envs.experimental import rlm_env as rlm_module from verifie...
1
1
1
[{"id": "G0", "claim": "Because this PR removes the interleaved_rollouts API from the core environment classes, docs/reference.md still documenting set_interleaved_rollouts leaves the public API docs stale and inconsistent with the code, so the docs should be updated.", "category": "documentation", "verdict": "supporte...
null
PrimeIntellect-ai__verifiers__939
PrimeIntellect-ai/verifiers
939
defect
013d4da8a906bef2e1cbb6b4bc4347214c1fd534
2ec43bea64f37dda97702ab53bb5e245c8bbf6f5
RLM: add shared interception pool for RLMEnv tunnel reuse
## Description When multiple RLMEnv instances use the same non-zero interception_port, they now share a single aiohttp server and prime tunnel via a module-level _InterceptionPool, instead of each creating their own. This reduces tunnel count from N-per-instance to 1 and avoids tunnel service overload. ## Type of...
diff --git a/docs/environments.md b/docs/environments.md index d6f749a0fe..b043ae2cc8 100644 --- a/docs/environments.md +++ b/docs/environments.md @@ -797,4 +797,4 @@ Newer and more experimental environment classes include: - **`GymEnv`** — universal runner for Gym-compatible environments (OpenAI Gym / Gymnasium API) ...
4
2
2
[{"id": "G0", "claim": "The shared pool path in _teardown_tunnel checks and clears _has_pool_ref without holding _server_lock, so concurrent teardowns can both call release and double-decrement the pool refcount.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
PrimeIntellect-ai__verifiers__944
PrimeIntellect-ai/verifiers
944
defect
20858b1e11352029558ef100e1be6f61fe0dfcf5
ae3c07d8dd31e5a97853e397c39e0b10b43f1730
add pass@k and pass^k metrics with configurable threshold
## Description - Add **pass@k** metric (at least one correct in k samples) using the unbiased estimator: `1 - C(n-c, k) / C(n, k)` - Add **pass^k** metric (all k samples correct) using the unbiased estimator: `C(c, k) / C(n, k)` - Add `passed_threshold` as a first-class `Environment` property (default `1.0`) control...
diff --git a/assets/lab/environments/AGENTS.md b/assets/lab/environments/AGENTS.md index cc7f76d02d..d9b2933847 100644 --- a/assets/lab/environments/AGENTS.md +++ b/assets/lab/environments/AGENTS.md @@ -803,4 +803,4 @@ Newer and more experimental environment classes include: - **`GymEnv`** — universal runner for Gym-c...
5
4
2
[{"id": "G0", "claim": "The new `pass_at_k` and `pass_hat_k` parameters of the `_make_metadata` test helper default to mutable `{}`, which can leak state across tests if any test mutates the returned metadata dicts, causing order-dependent flaky test behavior.", "category": "testing", "verdict": "uncertain", "priority"...
null
PrimeIntellect-ai__verifiers__954
PrimeIntellect-ai/verifiers
954
defect
97e45f586d8310758d8e3b074debe782d2b932a4
5d8f422555eb1a86a71e19177c3bd5fe3873eb40
add `RolloutGatewayMixin` for server-side rollout execution
## Description Adds RolloutGatewayMixin, a new experimental environment that offloads agent execution to sandboxes that talk directly to the vLLM rollout gateway. The env handles sandbox lifecycle, rollout registration/unregistration, trajectory fetch, and reward — the sandboxed agent drives its own inference loo...
diff --git a/tests/test_rollout_gateway_env.py b/tests/test_rollout_gateway_env.py new file mode 100644 index 0000000000..60a7d72b73 --- /dev/null +++ b/tests/test_rollout_gateway_env.py @@ -0,0 +1,305 @@ +from __future__ import annotations + +import json +from types import SimpleNamespace +from unittest.mock import As...
3
2
0
[{"id": "G0", "claim": "Setting state[\"completion\"] = None for every environment in Environment.init_state() may break third-party/custom rollout code that assumes completion starts as an empty list.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim":...
null
PrimeIntellect-ai__verifiers__955
PrimeIntellect-ai/verifiers
955
defect
3f555af3674a22ffbfec0cafade25bec51bf517f
0ebf0908f6a378bfe250033a7f5b3137b3a785cc
best effort tito
## Description Best effort tito. instead of assuming extension and looking back at strictly last trajectory step, we walk backward until we find a MESSAGES level prefix hit tested on both wiki-search and eligottlieb/poker-multiagent, which was giving the loud failure previously with TITO as it does explicit rewriti...
diff --git a/tests/test_openai_chat_completions_token_client.py b/tests/test_openai_chat_completions_token_client.py new file mode 100644 index 0000000000..3a58de1b40 --- /dev/null +++ b/tests/test_openai_chat_completions_token_client.py @@ -0,0 +1,270 @@ +from typing import Any, cast + +import pytest + +from verifiers...
7
2
1
[{"id": "G0", "claim": "The new normalize_for_comparison helper should be extracted into a general message_util since it seems useful in other places, and a similar util may already exist in the codebase.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
PrimeIntellect-ai__verifiers__964
PrimeIntellect-ai/verifiers
964
defect
91a78638bf4500ac9ecc1ab13f3d0cf0d105836e
3eb0fc5add3204742dd565204d299be561f20d8e
restart dead tunnels
## Description monitors and restarts tunnels that have died in `CliAgentEnv` and `RolloutGatewayEnv` depends on https://github.com/PrimeIntellect-ai/prime/pull/403 ## Type of Change <!-- Mark the relevant option with an "x" --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-br...
diff --git a/tests/test_rollout_gateway_env.py b/tests/test_rollout_gateway_env.py index 87bfe7b073..97223b2b7e 100644 --- a/tests/test_rollout_gateway_env.py +++ b/tests/test_rollout_gateway_env.py @@ -1,5 +1,6 @@ from __future__ import annotations +import asyncio import json from types import SimpleNamespace fr...
3
1
0
[{"id": "G0", "claim": "The health-monitor loop only catches asyncio.CancelledError, so any other exception from tunnel.sync_stop() or new_tunnel.start() propagates out and silently kills the fire-and-forget monitor task until a later get_gateway_tunnel_url call restarts it.", "category": "correctness", "verdict": "unc...
null
PrimeIntellect-ai__verifiers__973
PrimeIntellect-ai/verifiers
973
defect
97d4666d46b159ac98c066aa5628c8a55c64e039
23d2d891b2889fa47ced87bd5817aabccfaf1383
RLM: root_max_completion_tokens
## Description - Add `root_max_completion_tokens` parameter to `RLMEnv` — a per-rollout completion-token budget for the root model, mirroring the existing `sub_max_completion_tokens` pattern - The root model is informed of its budget in the system prompt and sees running usage (`[used/budget root completion tokens ...
diff --git a/tests/test_rlm_env.py b/tests/test_rlm_env.py index 1e96b35f5c..58a0f9100e 100644 --- a/tests/test_rlm_env.py +++ b/tests/test_rlm_env.py @@ -2391,6 +2391,266 @@ async def test_budget_enforced_within_tool_loop(self, rlm_env_with_sub_tools): assert result["total_completion_tokens"] == 110 # 80 + 3...
2
1
1
[{"id": "G0", "claim": "The new user-facing root_llm_max_completion_tokens constructor parameter is documented only in the docstring and the required update to docs/environments.md (per the project rule for user-facing functionality) was not made.", "category": "documentation", "verdict": "uncertain", "priority": "P2",...
null
PrimeIntellect-ai__verifiers__987
PrimeIntellect-ai/verifiers
987
defect
1c5028e701bec4d7cc46218be7269ac5b5a78b1e
8e06e8b0ce9711bb60a7e0ee6a9fe4ceec84c857
vf-eval: Add settings panel in summary and --abbreviated-summary flag
## Description - New settings panel in final summary showing model, endpoint, examples/rollouts/concurrency, sampling args, and env args - --abbreviated-summary (-A) flag skips example prompts/completions in the summary, showing only settings and stats for quick ablation comparison Here is the summary of a singl...
diff --git a/docs/evaluation.md b/docs/evaluation.md index 80c680d518..014a9282df 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -158,6 +158,7 @@ When evaluating multiple environments, the display shows an overview panel at th | `--verbose` | `-v` | false | Enable debug logging | | `--tui` | `-u` | false...
2
1
1
[{"id": "G0", "claim": "The settings panel omits the sampling section when every sampling arg value is falsy, including the common intentional temperature=0, because the condition uses truthiness instead of checking for None.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
PrimeIntellect-ai__verifiers__993
PrimeIntellect-ai/verifiers
993
defect
49a231dcedfa2e3917bacd535828ee2f66957737
138cbdeae81de5e477949a3189c755785b823d17
Add [[ablation]] sweep syntax for eval TOML configs
Expand cartesian products of parameter values into eval configs automatically. Supports top-level sweep keys and env_args sweep keys, fixed env_args alongside swept ones (with overlap guard), multiple independent ablation blocks, and coexistence with [[eval]]. ## Description <!-- Provide a brief description of the ...
diff --git a/docs/evaluation.md b/docs/evaluation.md index 014a9282df..58914d2e2c 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -15,6 +15,7 @@ This section explains how to run evaluations with Verifiers environments. See [E - [Environment Defaults](#environment-defaults) - [Multi-Environment Evaluation]...
2
2
0
[{"id": "G0", "claim": "The PR documents the new [[ablation]] sweep feature in docs/evaluation.md but does not update skills/evaluate-environments/SKILL.md as project rules require.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _expand_ablatio...
null
Pringled__pyversity__30
Pringled/pyversity
30
defect
494857c91519cded8dcbad15d862529fb8c9e50d
e66e40f7950d1e9187bb4dbbe40cd0618519ebb2
Fixes in docs
- Fixes in docs. - Adding pytest-codeblock for testing documentation examples. - Adding a new conftest.py for testing documentation examples. - Replace irrelevant reference/dependency to pytest-coverage with a valid pytest-cov. - Add pytest-cov configuration. - Update makefile test command accordingly.
diff --git a/Makefile b/Makefile index dd19c34..2625839 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,10 @@ install: uv run pre-commit install install-no-pre-commit: - uv pip install ".[dev]" + uv pip install ".[dev,benchmarks]" fix: uv run pre-commit run --all-files test: - uv run pytest --cov=PACKAGE ...
3
3
2
[{"id": "G0", "claim": "Move the root conftest.py into a tests file (e.g. tests/docs_fixtures.py) and load it via pytest addopts so the top-level folder stays cleaner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The benchmark dependencies (e....
null
PriorLabs__TabPFN__141
PriorLabs/TabPFN
141
defect
a05404514dee58ce86ce01f9b0f315d32a59d8ff
9e0dc0595b4ac862ab3ca1088f5009053ad0e985
Improve dependencies versioning and ci
- Adds minimum (found on my mac M3 using py3.9 and py3.10, all <= 2022 expect torch which I didn't change) and maximum version to all the dependencies. This prevent failures when a dependency makes a breaking change - Add CI: dependabot to update the max dependency, and some actions to run the tests on the minimum and...
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..2a9953750 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + # Python dependencies + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + open-pul...
3
2
1
[{"id": "G0", "claim": "The CI should use uv (instead of pip-tools/pip) for all install-related tasks because it is much faster.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new dependency upper bounds are pinned to the current max versions ra...
null
PriorLabs__TabPFN__245
PriorLabs/TabPFN
245
defect
940a0a00796a7fd16e0968a99f7584cdde980844
0cda59a4313cdf3d69e3b627ce028501b4ad8ce9
Add warning for large datasets on CPU and reference to tabpfn-client API
This PR adresses issue #192 ## Changes - Added a check in the `fit` method to determine if the code is running on CPU and if the dataset size exceeds 1000 samples. - Displayed a warning message to inform users of potential performance issues and suggested using the tabpfn-client API or a GPU.
diff --git a/src/tabpfn/regressor.py b/src/tabpfn/regressor.py index ac5f1f216..c1ae9c39e 100644 --- a/src/tabpfn/regressor.py +++ b/src/tabpfn/regressor.py @@ -413,6 +413,12 @@ def fit(self, X: XType, y: YType) -> Self: """ static_seed, rng = infer_random_state(self.random_state) + if self.d...
3
3
2
[{"id": "G0", "claim": "Consider adding a stacklevel argument (e.g., stacklevel=2) to the warnings.warn call so the warning points at the caller's line, improving traceability for the user.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please a...
null
PriorLabs__TabPFN__335
PriorLabs/TabPFN
335
defect
b0565568f4e1eaa40dc170ccb8272d51da1a5721
35b1e3ee1b68c4808ee16fe137ad629d783c3a0b
Fix Inference Precision Bug
## Motivation and Context This pull request addresses a critical bug that caused crashes when using `TabPFNClassifier` or `TabPFNRegressor` with `inference_precision=torch.float16`. The issue manifested in two stages: 1. A `RuntimeError` due to a data type mismatch between the input tensor and the model's interna...
diff --git a/src/tabpfn/model/encoders.py b/src/tabpfn/model/encoders.py index 08bbb765f..e1799710f 100644 --- a/src/tabpfn/model/encoders.py +++ b/src/tabpfn/model/encoders.py @@ -45,15 +45,16 @@ def torch_nanstd(x: torch.Tensor, axis: int = 0): axis=axis, ) value = torch.where(torch.isnan(x), torch...
2
1
0
[{"id": "G0", "claim": "Use a masked_fill call (e.g. std.masked_fill(std == 0, 1)) instead of boolean indexing / torch.where to replace zero std values, for clarity and semantic clearness.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a com...
null
PriorLabs__TabPFN__369
PriorLabs/TabPFN
369
defect
dd58b98c34fe6445e87928996ffc88cc1fc4b80c
3815d49845c7269f3d5960b08366ddd26257264f
FT Model
## Motivation and Context This pull request introduces a new, fine-tuned model as the default for `TabPFNClassifier`. This updated model has been verified to produce better predictions, providing an improved out-of-the-box experience for users. We welcome any feedback on its performance. To support this change, w...
diff --git a/src/tabpfn/model/loading.py b/src/tabpfn/model/loading.py index 45a2d2d85..40c91a278 100644 --- a/src/tabpfn/model/loading.py +++ b/src/tabpfn/model/loading.py @@ -67,6 +67,7 @@ def get_classifier_v2(cls) -> ModelSource: "tabpfn-v2-classifier-od3j1g5m.ckpt", "tabpfn-v2-classifier-...
2
1
1
[{"id": "G0", "claim": "The added finetuned checkpoint filename uses the extension 'cpkt', a typo that should be '.ckpt' to match the other checkpoint files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The ALL_CAPS name USER_TABPFN_CACHE_DIR_LOCA...
null
PriorLabs__TabPFN__388
PriorLabs/TabPFN
388
defect
f9551381ea5fc530441e13805c40ccd946f89fa9
b20f2233b2f706ed1594a2960403944112458300
Fix: Ensure compatibility with np.random.Generator in AdaptiveQuantileTransformer
## Motivation and Context --- ## Public API Changes - [x] No Public API changes - [ ] Yes, Public API changes (Details below) --- ## How Has This Been Tested? **Description** This pull request addresses a ValueError that occurs when a numpy.random.Generator instance is passed as the random_state t...
diff --git a/src/tabpfn/model/preprocessing.py b/src/tabpfn/model/preprocessing.py index 3644d2bb3..6fef80399 100644 --- a/src/tabpfn/model/preprocessing.py +++ b/src/tabpfn/model/preprocessing.py @@ -117,6 +117,18 @@ def fit( # and self.n_quantiles will reflect the value used for the fit. self.n_quan...
3
2
0
[{"id": "G0", "claim": "The seed drawn from the Generator uses 2**31 as the exclusive upper bound, unnecessarily restricting the range of possible RandomState seeds; the reviewer suggests using 2**32 instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
PriorLabs__TabPFN__440
PriorLabs/TabPFN
440
defect
4e6290a4f03d7ab326a8c875307723cb9afa2672
5607a6017f4953533663c05da679206cc725c270
Adding GPU testing to our CI pipeline
### Motivation and Context To ensure `TabPFN` is robust, it's crucial to validate its performance on both CPU and GPU hardware. The previous CI setup only performed tests on CPUs. Overall test time has not increased while GPU tests are only run if CPU gating tests passed. Workflow file complexity has increased. ...
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 25ed89516..e156b8701 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,18 +8,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea7...
4
2
1
[{"id": "G0", "claim": "The semicolon separator in the ruff-action args field will not work as expected because the args parameter expects a single command, so the lint step should be split into two separate uses of ruff-action or use shell commands with run:.", "category": "correctness", "verdict": "supported", "prior...
null
PriorLabs__TabPFN__451
PriorLabs/TabPFN
451
defect
9fd272991005ad511b0777fd2e30aa2bed6704f8
6ade56c08e9f529b9e4720fd64d8fcfae0f55598
Enable type annotation rules in the Ruff linter.
Enable the ANN rules, but exclude some overly strict ones, in line with our other repositories. I added type annotations where they were missing. I also: - ignore ANN for src/tabpfn/architectures/base/preprocessing.py, due to a lot of errors - delete a class and a method that were not used in any PriorLabs reposit...
diff --git a/examples/finetune_classifier.py b/examples/finetune_classifier.py index 315c3cb21..c6c87453d 100644 --- a/examples/finetune_classifier.py +++ b/examples/finetune_classifier.py @@ -102,7 +102,7 @@ def evaluate_model( return roc_auc, log_loss_score -def main(): +def main() -> None: """Main func...
2
2
1
[{"id": "G0", "claim": "The `NoReturn` return annotation added to the base `use_torch_inference_mode` method is wrong, since concrete subclasses return `None`, so the base method should be annotated `-> None`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
PriorLabs__TabPFN__484
PriorLabs/TabPFN
484
defect
99c97040bdb9eecffa94202de07ff7b3ec137dc9
0a04c54596a465ede51671279d0682260f2ba0d2
Evaluate the estimators in parallel.
Only support parallel evaluation for the "low_memory" and "cache_preprocessing" fit modes for now. Use multithreading to evaluate the model in parallel for each estimator. I selected multithreading over multiprocessing because our benchmarking shows that for longer datasets we spend almost all our time in the flash ...
diff --git a/src/tabpfn/base.py b/src/tabpfn/base.py index 29867cf0c..7deb18251 100644 --- a/src/tabpfn/base.py +++ b/src/tabpfn/base.py @@ -5,6 +5,7 @@ from __future__ import annotations import warnings +from collections.abc import Sequence from pathlib import Path from typing import TYPE_CHECKING, Any, Callable...
18
9
2
[{"id": "G0", "claim": "The result of `self.model.type(self.force_inference_dtype)` is not assigned back to `self.model`, so the dtype change is not applied.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using `torch.cuda.stream` unconditionally will...
null
PriorLabs__TabPFN__486
PriorLabs/TabPFN
486
defect
1c2889522ee199461c4354e63126e4bc5d07d3f2
1c66d50584590dea918cee66de2df8969c75c677
Resolved issue saving & loading the predictor (Regressor/Classifier) model on different devices (cuda / cpu)
## Motivation and Context Issue [#416](https://github.com/PriorLabs/TabPFN/issues/416) reported a crash when a model saved on a CUDA device was later loaded on a CPU-only machine, due to tensors being serialized as CUDA tensors. This has been fixed by ensuring all tensor-like elements of the predictor are saved as CPU...
diff --git a/.gitignore b/.gitignore index 5c2d72e6b..3067b5063 100644 --- a/.gitignore +++ b/.gitignore @@ -163,4 +163,5 @@ cython_debug/ ./src/.DS_Store # Claude AI assistant -CLAUDE.md \ No newline at end of file +CLAUDE.md +uv.lock diff --git a/src/tabpfn/inference.py b/src/tabpfn/inference.py index 076316c00.....
4
4
2
[{"id": "G0", "claim": "The test monkeypatches torch.cuda.is_available directly without restoring its original value afterwards, which can pollute subsequent tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CPU-moving code only converts torch.n...
null
PriorLabs__TabPFN__496
PriorLabs/TabPFN
496
defect
99c97040bdb9eecffa94202de07ff7b3ec137dc9
eb1d626ca45b58d6c4f37197c755b811d2cc0711
Select multiple gpus for inference, if available. Don't use them yet.
If the specified device is "auto" and multiple cuda gpus are available, then select all the gpus. This PR doesn't actually implement multi-gpu inference. Instead, all the inference engines just use the first. Public API changes: - `TabPFNClassifier/Regressor.device_` has been renamed to `.devices_`, and is now a tu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4581b672f..9320892d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - @benraha Improved the inference speed on CPU significantly [#459](https://github.com/PriorLa...
3
2
1
[{"id": "G0", "claim": "The changelog entry added by this PR should have the '(TODO PR ID)' placeholder replaced with the actual PR reference and the typo 'Regression' corrected to 'Regressor' before merging.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
PriorLabs__TabPFN__517
PriorLabs/TabPFN
517
defect
542270b4075d230aedc5a19990d292357f8bf2db
46b613919fea62037a501b169ee58d4040077da8
If device="auto" and multiple GPUs are present, only select the first.
We're seeing prediction errors when multiple GPUs are used. Switch to only using multiple GPUs if explicitly enabled, while we debug. Tested manually on a machine with 2 GPUs and a dataset exhibiting the issue: - current main: inference does not work - this PR with device=auto: inference works - this PR with devi...
diff --git a/src/tabpfn/classifier.py b/src/tabpfn/classifier.py index 34adc8c0e..44fb36b7c 100644 --- a/src/tabpfn/classifier.py +++ b/src/tabpfn/classifier.py @@ -233,8 +233,8 @@ def __init__( # noqa: PLR0913 device: The device to use for inference with TabPFN. If set to "auto", the ...
1
1
1
[{"id": "G0", "claim": "The change to return only cuda:0 for device=\"auto\" breaks the existing unit test test__infer_devices__auto__multiple_cuda_gpus_available__selects_all in tests/test_utils.py, and the test must be updated (renamed and its assertion adjusted) so the test suite passes before the PR can be merged."...
null
PriorLabs__TabPFN__539
PriorLabs/TabPFN
539
defect
163e39599290b1c36f7a7907c4b98fbbadb35b0e
0b48f02caacbfcdcc7edfeec49dc4552419a9b61
Fix column reordering in process_text_na_dataframe with nan and missing values due to Columntransformer
## Motivation and Context - fixing bug mentioned in _https://github.com/PriorLabs/TabPFN/issues/530_ - columntransformer does not keep the feature order - therefore, this change computes a mapping from the new ordering (not what we keep) to the original column order - added tests to check different use-cases ...
diff --git a/src/tabpfn/utils.py b/src/tabpfn/utils.py index 21ab4c6e4..7487de697 100644 --- a/src/tabpfn/utils.py +++ b/src/tabpfn/utils.py @@ -627,11 +627,29 @@ def process_text_na_dataframe( else: X_encoded = X + if ord_encoder is not None: + # The ColumnTransformer will reorder the columns...
6
6
2
[{"id": "G0", "claim": "The misleading comment about iloc and string column names should be removed because X_encoded is a NumPy array and the indexing already uses integer positions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test shoul...
null
PriorLabs__TabPFN__555
PriorLabs/TabPFN
555
defect
b474f152269050e99664562e44795e12d7d30fb0
1d67c2cab37e0e8ba9481304b01fadda0e851a5d
Add an `n_preprocessing_jobs` option to the classifier and regressor.
And deprecate the disconnected `n_jobs` option. Set the default value to `1`. Previously this option was just ignored, and `1` used in all cases. However, we've found that using higher values can be useful in some cases. I add a new option rather than reconnecting the old option, because users might have set the...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a4fc2a8f9..207c8a173 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Deprecated the parameters `TabPFNRegressor(n_jobs=...)` and + `TabPFNRegressor(n_jobs=...
5
4
2
[{"id": "G0", "claim": "The deprecation warning added inside TabPFNClassifier refers to `TabPFNRegressor` and should be updated to refer to `TabPFNClassifier` to avoid confusion.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG entry men...
null
PriorLabs__TabPFN__584
PriorLabs/TabPFN
584
defect
b6f6fa971e139f675550a069324c5b53830050e4
3be0c71d971c206a757a95f28fbddb800c5c4ac0
Introduce option to calibrate temperature and tune decision thresholds
## Motivation and Context Add option to calibrate temperature and tune predictions to specified eval_metric. Introduces 2 new arguments to `TabPFNClassifier`: - `eval_metric`: The eval metric to use - `tuning_config`: configuration of how the validation data is computed for temperature calibration and threshold...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 746e51a5b..16bc544b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Introduced interface to use `TabPFNClassifier` and `TabPFNRegressor` with multiple models in an ensemble....
18
14
3
[{"id": "G0", "claim": "The copy.deepcopy() calls on X and y in _compute_holdout_validation_data are unnecessary because get_tuning_splits operates on indices without modifying the inputs, and removing them avoids a potentially expensive operation that hurts performance and memory on large datasets.", "category": "perf...
null
PriorLabs__TabPFN__585
PriorLabs/TabPFN
585
defect
b6f6fa971e139f675550a069324c5b53830050e4
c124388e6b01240ccc90be44b734c41a2670ace6
Parse model version from model_path
## Issue This ticket is more focused on the earlier private loading, but see https://linear.app/priorlabs/issue/ENG-102/install-private-tabpfn-model-implement-loading-from-protected ## Motivation and Context Allows selecting both v2 and v2.5 models via the model_path parameter. ## Public API Changes - [ ] ...
diff --git a/src/tabpfn/base.py b/src/tabpfn/base.py index 9f6572338..32c42e32c 100644 --- a/src/tabpfn/base.py +++ b/src/tabpfn/base.py @@ -28,7 +28,7 @@ InferenceEngineCachePreprocessing, InferenceEngineOnDemand, ) -from tabpfn.model_loading import load_model_criterion_config +from tabpfn.model_loading imp...
6
3
3
[{"id": "G0", "claim": "Detecting the model version by checking whether \"v2.5\" appears anywhere in str(model_path) is brittle because a directory in the path containing \"v2.5\" would make a v2 model be detected as v2.5, so the check should be scoped to the model's filename.", "category": "correctness", "verdict": "s...
null
PriorLabs__TabPFN__589
PriorLabs/TabPFN
589
defect
c2b1d23a1fd8ce8d545915844d597b7f3e0f9d59
ca372756a55d10ab7fbaa8cee35ab2220f36120a
Update 'balance probabilities test' and 'get_embeddings' test
## Issue This fixes 3 tests for upcoming V2.5: - The get_embeddings didn't consider thinking tokens. Change this so that "train_embeddings" only returns the embeddings for the data points - Balance probabilities test was flawed. We don't really expect the probabilities to be uniform for any model. This introduce...
diff --git a/src/tabpfn/architectures/base/transformer.py b/src/tabpfn/architectures/base/transformer.py index 034eac1e7..54e325530 100644 --- a/src/tabpfn/architectures/base/transformer.py +++ b/src/tabpfn/architectures/base/transformer.py @@ -601,7 +601,12 @@ def forward( # noqa: PLR0912, C901 ) ...
5
3
2
[{"id": "G0", "claim": "The weights=[0.7, 0.2] passed to sklearn's make_classification sum to 0.9 instead of 1, which will raise a ValueError and make the new test_balanced_probabilities test fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "bala...
null
PriorLabs__TabPFN__592
PriorLabs/TabPFN
592
defect
5fb12b944c315b1c8ab1583bd89c400ae176423d
37d7ae65ab191ae1ba1b42216d3deb91a7634fba
Fix seed for random embeddings on CPU & MPS
We need to fix the seed for CPU & MPS inference to one that works for datasets with a small number of features. This means we also had to update the consistency tests.
diff --git a/src/tabpfn/architectures/base/transformer.py b/src/tabpfn/architectures/base/transformer.py index 034eac1e7..81f35682a 100644 --- a/src/tabpfn/architectures/base/transformer.py +++ b/src/tabpfn/architectures/base/transformer.py @@ -635,8 +635,20 @@ def add_embeddings( # noqa: C901, PLR0912 ) ...
2
1
0
[{"id": "G0", "claim": "The device comparisons `x.device == torch.device(\"cpu\")` and `x.device == torch.device(\"mps\")` may not work reliably for all device types and should instead compare `x.device.type` to the string.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
PriorLabs__TabPFN__602
PriorLabs/TabPFN
602
defect
fe517112342f215bf5b779eead2ca603a209f39c
1aa5a135fe8ebc8664e1fbad9d36c2f89a13bf04
Add factory methods to create particular versions of the model.
We should use the consistency tests to check these work properly, but atm the consistency tests only support one model version. I created https://linear.app/priorlabs/issue/RES-841/consistency-tests-for-every-version-of-the-model
diff --git a/src/tabpfn/classifier.py b/src/tabpfn/classifier.py index 77f33fa7f..22b843bb0 100644 --- a/src/tabpfn/classifier.py +++ b/src/tabpfn/classifier.py @@ -45,6 +45,7 @@ from tabpfn.constants import ( PROBABILITY_EPSILON_ROUND_ZERO, SKLEARN_16_DECIMAL_PRECISION, + ModelVersion, XType, Y...
8
3
3
[{"id": "G0", "claim": "The if/elif block in TabPFNClassifier.create_default_for_version duplicates the options for V2 and V2_5 and could be refactored into a dictionary mapping model versions to their ModelSource getter functions.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "int...
null
PriorLabs__TabPFN__628
PriorLabs/TabPFN
628
defect
bfca425e12efbd51e85ab61993f710cd28213033
048e0082ef65bbab1238d26adb8e84e6764c67ea
Cache the models on each device between estimators.
Rather than copying the model at the start of each estimator. This does not yet keep the models on the device between inference calls (see https://github.com/PriorLabs/TabPFN/issues/523). Notes: - Remove sorting the estimators by model index, as now the models are kept on the device this is no longer required? I th...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f9618b37e..5f9c95366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Don't select MPS devices below PyTorch 2.5 and raise an error if selected, due to poor per...
7
3
0
[{"id": "G0", "claim": "There is a race condition in _PerDeviceModelCache.get because the model is moved with .to(device) outside the lock, so another thread could get a reference before the model is fully on the device; the .to(device) call should be performed within the lock.", "category": "correctness", "verdict": "...
null
PriorLabs__TabPFN__632
PriorLabs/TabPFN
632
defect
25afedcf35871cddbe7c4d2d7eab4008b8e123c3
188efe41ab7b80598631d07257247a19bb1702a0
Put model checkpoints in cache dir during tests.
At the moment these are put in the cwd, which is annoying when working on your local machine. Towards RES-878
diff --git a/src/tabpfn/classifier.py b/src/tabpfn/classifier.py index 363637bfb..7f3500d27 100644 --- a/src/tabpfn/classifier.py +++ b/src/tabpfn/classifier.py @@ -60,8 +60,8 @@ ) from tabpfn.model_loading import ( ModelSource, - get_cache_dir, load_fitted_tabpfn_model, + prepend_cache_path, sav...
1
1
1
[{"id": "G0", "claim": "Renaming the public get_cache_dir() to _get_cache_dir() without leaving a public alias breaks consumers such as scripts/download_all_models.py that still import get_cache_dir, causing an ImportError when they are executed; the reviewer asks to either keep exporting get_cache_dir or update the ca...
null
PriorLabs__TabPFN__634
PriorLabs/TabPFN
634
defect
1992222f5eba2ebc873abf165d6aa7b438f7253e
e1f51cc35d8279bf5d7f286d6b77d663562a930d
Don't run most of the MPS tests during PRs.
The MPS tests seem to be twice as slow as the CPU tests. Replace them with a simple smoke test, and run most of them only on merge to main. Add a "non_ci" marker to pytest, and mark the MPS tests with this. Update the CI workflow to apply "not non_ci" during PRs. Also, make sure tests that test on TABPFN_EXCLUD...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bfde382e..ffcf60a57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,10 @@ jobs: strategy: fail-fast: false matrix: + # ubuntu-latest 3.13 highest is not included here because it is execute...
1
1
0
[{"id": "G0", "claim": "The CI step names are confusing because \"all tests\" also runs on GitHub CI and the whole file is ci.yml, so the naming should contain the main vs. PR distinction (e.g. `non_pr_test` or something like that).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
PriorLabs__TabPFN__685
PriorLabs/TabPFN
685
defect
2194e715a273ca9d6fe5f0f476e1a22f14cb372c
65060484b9c968fdc1676c4e5635ce40f0715421
Add a .to() method to the classifier and regressor interfaces.
Apologies for the slightly large PR. - Update the inference engines to maintain the device state internally (rather than being passed during fit/predict), and to move the models around as needed. - Update `_PerDeviceModelCache` to move the models using `.to()`, rather than on-demand in `.get()`. This allows removin...
diff --git a/src/tabpfn/base.py b/src/tabpfn/base.py index 5dd232df5..0eecb55b7 100644 --- a/src/tabpfn/base.py +++ b/src/tabpfn/base.py @@ -38,6 +38,7 @@ ) from tabpfn.settings import settings from tabpfn.utils import ( + DevicesSpecification, infer_devices, infer_fp16_inference_mode, infer_random...
3
1
0
[{"id": "G0", "claim": "If a model has no parameters, `_get_current_device` will raise a StopIteration crash on `next(iter(model.parameters()))`; the reviewer asks to handle that case, for example by falling back to buffers and then defaulting to CPU.", "category": "correctness", "verdict": "uncertain", "priority": "P1...
null
PriorLabs__TabPFN__696
PriorLabs/TabPFN
696
defect
2cd2326038e789a26f7a07e70e1ea986ffd040c9
98efc2736a4515e68397e0475f53944622470f6f
Fix KDI transformer init signature for sklearn compatibility
## Summary - add explicit parameters to `KDITransformerWithNaN.__init__` to follow scikit-learn estimator requirements - route initialization parameters appropriately when falling back to `PowerTransformer` ## Testing - not run (not requested) ------ [Codex Task](https://chatgpt.com/codex/tasks/task_b_6952e22d70bc83...
diff --git a/src/tabpfn/preprocessors/kdi_transformer.py b/src/tabpfn/preprocessors/kdi_transformer.py index 779f551bd..d5ee416ee 100644 --- a/src/tabpfn/preprocessors/kdi_transformer.py +++ b/src/tabpfn/preprocessors/kdi_transformer.py @@ -45,8 +45,30 @@ class KDITransformerWithNaN(KDITransformer): mean values an...
6
4
3
[{"id": "G0", "claim": "Set alpha and output_distribution inside the PowerTransformer-fallback branch instead of assigning all four parameters unconditionally at the top of __init__, since the explicit assignments are redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
PriorLabs__TabPFN__713
PriorLabs/TabPFN
713
defect
8118b484260570147deb093c6214874a90553482
4195da900578fd86f8450a6416c0946a192d9221
[Prep-refactor-1] Move preprocessing logic into different files
This just separates preprocessing code into files, trying to decouple code. There is no functionality changed or added and no renaming done.
diff --git a/src/tabpfn/finetuning/data_util.py b/src/tabpfn/finetuning/data_util.py index ac0ce59a3..670272201 100644 --- a/src/tabpfn/finetuning/data_util.py +++ b/src/tabpfn/finetuning/data_util.py @@ -4,7 +4,7 @@ import warnings from collections.abc import Sequence -from dataclasses import dataclass +from datac...
3
2
0
[{"id": "G0", "claim": "Remove the obsolete `# TODO: Potentially move to finetuning/data_util.py` comments above `ClassifierDatasetConfig` and `RegressorDatasetConfig` in src/tabpfn/finetuning/data_util.py, since those classes have now been moved into this file.", "category": "maintainability", "verdict": "supported", ...
null
PriorLabs__TabPFN__740
PriorLabs/TabPFN
740
defect
914539526d4ac021d8f0f649576274fd9fd7b8a0
204563158d68e0e78ac5624c9db77c73a904e9dc
[Prep-refactor 5] Refactor SequentialEncoder
No functional changes are done in this PR. It refactors the `SequentialEncoder` for further changes. In particular: - Allows to decouple projections and preprocessing steps. - Makes preprocessing pipeline more explicit by parsing dict instead of tensors. More work is needed to disentangle the preprocessing "stat...
diff --git a/src/tabpfn/architectures/base/__init__.py b/src/tabpfn/architectures/base/__init__.py index d3b7e7bbb..4cab0cbbb 100644 --- a/src/tabpfn/architectures/base/__init__.py +++ b/src/tabpfn/architectures/base/__init__.py @@ -18,16 +18,16 @@ MLPInputEncoderStep, MulticlassClassificationTargetEncoderSte...
24
17
3
[{"id": "G0", "claim": "The refactored _transform of the feature-group normalize step regresses on zero-feature input: its padding logic yields zero padding so an empty tensor comes out instead of a correctly shaped one, and the empty-input check should be re-introduced.", "category": "correctness", "verdict": "support...
null
PriorLabs__TabPFN__756
PriorLabs/TabPFN
756
defect
93f8e22699019649a553875748357b29f0192270
8b3c47d829e18d564b0b947e7a2946ef0d139e0b
Refactor preprocessing tests
- No changes to tests are performed, this is a pure refactor - Rename of `processor_` to `ordinal_encoder_`
diff --git a/src/tabpfn/base.py b/src/tabpfn/base.py index 0f951e58a..784c1ff20 100644 --- a/src/tabpfn/base.py +++ b/src/tabpfn/base.py @@ -475,7 +475,7 @@ def get_embeddings( X = ensure_compatible_predict_input_sklearn(X, model) X = fix_dtypes(X, cat_indices=model.categorical_features_indices) - X = mo...
2
1
0
[{"id": "G0", "claim": "Renaming `preprocessor_` to `ordinal_encoder_` without a backwards-compatible alias or fallback breaks previously pickled models and external code that accesses `preprocessor_` (in `get_embeddings`, `TabPFNClassifier._raw_predict`, and the regressor).", "category": "correctness", "verdict": "opp...
null
PriorLabs__TabPFN__780
PriorLabs/TabPFN
780
defect
d2bc4889b4d0cc8c0397991ffce83a7d8db37b29
1d8cb136f721828910568cad9af2b0dd96daa060
Fix infinite loop in fingerprint hashing with inf/large floats
## Summary - **Root cause fix**: `_float_hash_arr` now appends the collision counter as separate bytes instead of adding it to float values. This prevents infinite loops when rows contain `inf` or very large floats (`>= ~1e16`) where `row + k == row` due to float64 precision limits. - **Safety net**: Added `_MAX_COLL...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa3c421ad..d35ea79d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fix infinite loop in fingerprint hashing when rows contain `inf` or very...
9
9
2
[{"id": "G0", "claim": "The fix is partial because the random salt is still added to float values, so for rows with inf or very large floats the salt can have no effect (e.g. 1e20 + salt == 1e20); the salting should be done without float arithmetic by removing salted_X, hashing the original X_det rows, and incorporatin...
null
PriorLabs__TabPFN__790
PriorLabs/TabPFN
790
defect
99c012b160e64b653d67601d867a5580f6953579
03447ed05f6a86fe4089d35f742f51b27ae34ef6
Only lock when actually downloading a model and per model_path
## Issue https://linear.app/priorlabs/issue/ENG-509/filenotfounderror-level-error-errno-2-no-such-file-or-directory-tabpfn ## Motivation and Context Previously we were applying a global lock on every load_model_criterion_config() call to prevent race conditions while downloading models. This call would not nec...
diff --git a/src/tabpfn/model_loading.py b/src/tabpfn/model_loading.py index 62e01da27..23fd1b5a6 100644 --- a/src/tabpfn/model_loading.py +++ b/src/tabpfn/model_loading.py @@ -307,70 +307,6 @@ def _try_direct_downloads( raise Exception("Direct download failed!") from last_error -def download_model( - to: P...
3
2
1
[{"id": "G0", "claim": "A crafted `to` path could place the download lock file at an arbitrary user-writable location via `to.name` (path traversal), enabling a Denial of Service; validate `to.name` before building the lock path.", "category": "security", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, ...
null
PriorLabs__TabPFN__802
PriorLabs/TabPFN
802
defect
56d35b48a975c0bf0a601dc602105920129b4d56
ca19e164b5482e7f0be3aecd41fcaaf01aac00e9
Re-enable tests that low_memory and fit_preprocessors are equal.
## Issue #631 fix for this issue I tried to fix the precision issue.First fix was come from #784 which doesn't add thinking tokens so that single eval pos stays zero and kv cache can be used during prediction. I casted all tensors for the given dtype so results became no_cache vs repeat: 0.0 no_cache vs fit_prepr...
diff --git a/src/tabpfn/architectures/base/transformer.py b/src/tabpfn/architectures/base/transformer.py index 632aba37a..bcfd24889 100644 --- a/src/tabpfn/architectures/base/transformer.py +++ b/src/tabpfn/architectures/base/transformer.py @@ -523,7 +523,10 @@ def forward( # noqa: PLR0912, C901 ) ...
8
5
2
[{"id": "G0", "claim": "The `inference_dtype` determination blocks added in src/tabpfn/inference.py can be made more concise by using the `or` operator (`force_inference_dtype or torch.float32`), matching what is done in `_prepare_model_inputs()`.", "category": "maintainability", "verdict": "supported", "priority": "P3...
null
PriorLabs__TabPFN__843
PriorLabs/TabPFN
843
defect
f22aaf77f22c4b9bdbdd6b48b1cc9e0128c615b3
8823e9d150e19edccf9168e27235bd108f772952
Fix differentiable input & update consistency tests for v2.6
Fixes #842
diff --git a/src/tabpfn/architectures/tabpfn_v2_5.py b/src/tabpfn/architectures/tabpfn_v2_5.py index 948926f08..3fc3cce25 100644 --- a/src/tabpfn/architectures/tabpfn_v2_5.py +++ b/src/tabpfn/architectures/tabpfn_v2_5.py @@ -617,6 +617,7 @@ def forward( categorical_inds: list[list[int]] | None = None, ...
4
1
1
[{"id": "G0", "claim": "In InferenceEngineOnDemand.iter_outputs, `del model_forward_kwargs` removes the `differentiable_input` parameter before it can be passed to the model's forward method in `_call_model`, so the new differentiable_input logic is not applied when using that engine.", "category": "correctness", "verd...
null
PriorLabs__TabPFN__886
PriorLabs/TabPFN
886
defect
eaefd29252a0897bd644c1840934b34ce08e194f
99f9e39017c2640f2e65264759b590e8772de4bb
Round-robin row subsampling
- Introduces round-robin row subsampling for equal row coverage across estimators. - moves state to `TabPFNEnsemblePreprocessor` instead of `EnsembleConfig` to harmonize with feature subsampling. - Will follow-up with PRs that move all state to the `TabPFNEnsemblePreprocessor` and `TabPFNEnsembleMember` dataclasses.
diff --git a/changelog/884.changed.md b/changelog/884.changed.md new file mode 100644 index 000000000..869932027 --- /dev/null +++ b/changelog/884.changed.md @@ -0,0 +1 @@ +Row subsampling across ensemble members now uses round-robin balanced sampling. This replaces the previous random sampling approach. diff --git a/s...
4
4
0
[{"id": "G0", "claim": "The return type hint `list[None] | list[np.ndarray]` of `_get_subsample_indices_for_estimators` should be the more idiomatic `list[np.ndarray | None]` for consistency with `_subsample_rows_balanced`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
PriorLabs__TabPFN__887
PriorLabs/TabPFN
887
defect
231de0cfde43dcf872cc6ff45aca94c5d9327fc5
9b4c827057ff93ce24615101a8f9c378d11860fa
Make GPU transforms more memory efficient
<img width="2240" height="1438" alt="image" src="https://github.com/user-attachments/assets/c02a59f6-228c-4ac4-b966-8af4fb16da29" />
diff --git a/src/tabpfn/preprocessing/torch/torch_quantile_transformer.py b/src/tabpfn/preprocessing/torch/torch_quantile_transformer.py index 29b9de67d..eb29caaf1 100644 --- a/src/tabpfn/preprocessing/torch/torch_quantile_transformer.py +++ b/src/tabpfn/preprocessing/torch/torch_quantile_transformer.py @@ -61,13 +61,6...
9
9
2
[{"id": "G0", "claim": "Creating a scalar NaN tensor inside the chunked processing loop is inefficient; torch.where should be given the Python scalar float(\"nan\") directly.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "torch.zeros_like(x_compute)...
null
PriorLabs__TabPFN__917
PriorLabs/TabPFN
917
defect
84bb559e004a4d3995a807b734ccabd19506bd0f
9555e2cb8c9e75e19129c5f9aae08c482ec5a0aa
Fix activation checkpointing being a no-op during v3 finetuning
## Motivation and Context Activation checkpointing was effectively a no-op during fine-tuning of v3 (and v2.5/v2.6), causing CUDA OOM on long-context training (e.g. 133k×600 multiclass on 4×A100). This PR wires `PerformanceOptions.force_recompute_layer` end-to-end from the fine-tuning trainer to the model so t...
diff --git a/src/tabpfn/classifier.py b/src/tabpfn/classifier.py index 8dafaecb1..3b32ad7e0 100644 --- a/src/tabpfn/classifier.py +++ b/src/tabpfn/classifier.py @@ -102,7 +102,11 @@ from torch.types import _dtype from tabpfn.architectures.base.memory import MemorySavingMode - from tabpfn.architectures.in...
6
3
0
[{"id": "G0", "claim": "performance_options are only passed to the executor when is_batched_for_grads is true, so they are ignored during standard inference even though they are exposed in the public forward signature; consider passing them during standard inference as well, which would require updating the other Infer...
null
PriorLabs__TabPFN__924
PriorLabs/TabPFN
924
defect
275e06a85e8e969d4626961aaf0d5a995dbc9109
fec82c0b6cab15fac233bab9552d89373aa2e927
Introduce embedding_dim API and rename ninp to emsize
## Summary - Renames `self.ninp` → `self.emsize` across all architecture classes (`PerFeatureTransformer`, `TabPFNV2p5`, `TabPFNV2p6`, `TabPFNV3`) for consistency with config field names - Adds `embedding_dim` property to the `Architecture` base interface, backed by `self.emsize` - `TabPFNV3` overrides `embedding_dim`...
diff --git a/src/tabpfn/architectures/base/config.py b/src/tabpfn/architectures/base/config.py index 3466dede1..4a4e3d253 100644 --- a/src/tabpfn/architectures/base/config.py +++ b/src/tabpfn/architectures/base/config.py @@ -53,7 +53,7 @@ class ModelConfig(ArchitectureConfig): nan_handling_enabled: Literal[True] =...
3
2
0
[{"id": "G0", "claim": "Make `embedding_dim` an abstract property on the `Architecture` interface instead of a concrete property that relies on every subclass implicitly defining `self.emsize`, so that all subclasses are forced to implement it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
PriorLabs__TabPFN__928
PriorLabs/TabPFN
928
defect
a30a563e4c5b31cbfaf9ca240e8f98ea344fb9f4
8b161dbc402e1f0152ea34debfa13fef00a8925c
Stratified row subsampling
When subsampling rows, use stratified subsampling for classification per default; use round-robin subsampling for regression.
diff --git a/src/tabpfn/classifier.py b/src/tabpfn/classifier.py index aad837662..19fea94d6 100644 --- a/src/tabpfn/classifier.py +++ b/src/tabpfn/classifier.py @@ -938,6 +938,7 @@ def fit_with_differentiable_input(self, X: torch.Tensor, y: torch.Tensor) -> Sel ), constant_feature_count=self.i...
2
2
2
[{"id": "G0", "claim": "The y passed to _subsample_rows_stratified may be a torch tensor (possibly on GPU/MPS when differentiable_input=True), which would fail in the numpy-based stratified sampling.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Wi...
null
PriorLabs__TabPFN__935
PriorLabs/TabPFN
935
defect
4b4bdaa954f2285421b198c5ed8631d7f766590b
6a9dbef8ba34ab88e37d916feafa8c085e8a5b96
Add FlashAttention-3 backend selector to v3
## Summary Adds an opt-in FlashAttention-3 attention path on v3, dispatched via a new `PerformanceOptions.attention_backend` field (`"auto"` | `"sdpa"` | `"fa3"`, default `"auto"`). The dispatcher routes to FA3 only when the call is eligible (Hopper sm90+, fp16/bf16, `head_dim ∈ {64, 96, 128, 192, 256}`, `flash_attn_i...
diff --git a/changelog/935.added.md b/changelog/935.added.md new file mode 100644 index 000000000..5d11d630c --- /dev/null +++ b/changelog/935.added.md @@ -0,0 +1 @@ +Add opt-in FlashAttention-3 backend selector for v3 (`PerformanceOptions.attention_backend`). On Hopper GPUs, "auto" routes to FA3 once the sequence leng...
2
2
0
[{"id": "G0", "claim": "The logic for ensuring tensor contiguity in `_fa3_attention` can be simplified by moving the `.contiguous()` call to the final `fa3_attn_func` invocation, removing the `else` block and the redundant `.contiguous()` call in the `if` block.", "category": "maintainability", "verdict": "supported", ...
null
PriorLabs__tabpfn-extensions__143
PriorLabs/tabpfn-extensions
143
defect
fc151811b7db00cb6f6afb0d70211edd525f8068
47f1f68335edefc8ca596ddcb1e394f5eb3052a4
Add TabEBM implementation for data augmentation using SGLD
This pull request introduces the new TabEBM extension to the project, which provides a high-performance method for tabular data augmentation using class-specific energy-based models. The README and project documentation are updated to include TabEBM, and a comprehensive new README for TabEBM is added, detailing its fea...
diff --git a/README.md b/README.md index 4db241ed..982ae4c6 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ pip install "tabpfn-extensions[all] @ git+https://github.com/PriorLabs/tabpfn-ex - **rf_pfn**: Combine TabPFN with decision trees and random forests - **unsupervised**: Data generation and outlier dete...
16
12
4
[{"id": "G0", "claim": "The ValueError message in to_numpy says X must be a np.ndarray or torch.Tensor, but the function also accepts pd.DataFrame (and None), so the message should list all accepted types.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
PriorLabs__tabpfn-extensions__159
PriorLabs/tabpfn-extensions
159
defect
4a8f7352bfae5be1c0229b64d6fa80da4ad56261
f0b988f453dd4a684e239ecda138f11f57b845b6
Fix ignore_pretraining_limits for AutoTabPFNRegressor
Fix #149 ## Summary - ensure AutoTabPFN ensemble passes `ag_args.ignore_constraints` to TabPFN models when `ignore_pretraining_limits` is set - add regression test confirming AutoTabPFNRegressor forwards the flag to AutoGluon and supports datasets beyond 10k rows ## Testing - `pre-commit run --files tests/test_...
diff --git a/src/tabpfn_extensions/post_hoc_ensembles/sklearn_interface.py b/src/tabpfn_extensions/post_hoc_ensembles/sklearn_interface.py index 1641d835..224f4b8a 100644 --- a/src/tabpfn_extensions/post_hoc_ensembles/sklearn_interface.py +++ b/src/tabpfn_extensions/post_hoc_ensembles/sklearn_interface.py @@ -156,7 +15...
4
2
0
[{"id": "G0", "claim": "The test's 10050-row dataset may unnecessarily slow down execution; use a smaller size (e.g. 10001 rows) while still validating the >10k limit bypass.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded 10000 row limit...
null