verifiers 0.3.2.dev185__py3-none-any.whl → 0.3.2.dev188__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,7 +118,8 @@ class MCPConnection:
118
118
  caller = asyncio.current_task()
119
119
  assert caller is not None
120
120
  # Stack cleanup can follow cancellation while awaiting a model or local tool.
121
- if abort or caller.cancelling():
121
+ # Task.cancelling() is 3.11+; harness programs may run on 3.10.
122
+ if abort or getattr(caller, "cancelling", lambda: 0)():
122
123
  cancel_scope.cancel()
123
124
  else:
124
125
  task.cancel()
@@ -94,7 +94,10 @@ class PrimeConfig(NetworkPolicyConfig):
94
94
  gpu: str | None = None
95
95
  """GPU spec, e.g. "A100" or "A100:2" (a bare count = provider-chosen type)."""
96
96
  disk: float = 5.0
97
- """Disk in GB."""
97
+ """Disk in GB. Unused with ``checkpoint``: a sandbox keeps its checkpoint's disk."""
98
+ checkpoint: str | None = None
99
+ """A DURABLE filesystem checkpoint to start from instead of ``image`` (see the SDK's
100
+ ``checkpoint`` and ``wait_for_checkpoint``)."""
98
101
  idle_timeout: float | None = 3600
99
102
  """Seconds of inactivity before the sandbox self-deletes (None disables)."""
100
103
  creates_per_min: int | None = None
@@ -182,13 +185,19 @@ class PrimeRuntime(Runtime):
182
185
  options = {
183
186
  "cpu_cores": self.config.cpu,
184
187
  "memory_gb": self.config.memory,
185
- "disk_size_gb": self.config.disk,
186
188
  "gpu_count": gpu_count,
187
189
  "timeout_minutes": -1,
188
190
  "idle_timeout_minutes": idle_minutes,
189
191
  "gpu_type": gpu_type,
190
192
  "region": self.config.region,
191
193
  }
194
+ if self.config.checkpoint:
195
+ source = {"checkpoint_id": self.config.checkpoint}
196
+ else:
197
+ source = {
198
+ "docker_image": self.config.image,
199
+ "disk_size_gb": self.config.disk,
200
+ }
192
201
  scope = run_scope()
193
202
  labels = [*BASE_LABELS, *self.config.labels, scope]
194
203
  try:
@@ -208,7 +217,7 @@ class PrimeRuntime(Runtime):
208
217
  CreateSandboxRequest(
209
218
  name=self.name,
210
219
  labels=list(dict.fromkeys(labels)),
211
- docker_image=self.config.image,
220
+ **source,
212
221
  environment_vars=self.env,
213
222
  **{k: v for k, v in options.items() if v is not None},
214
223
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev185
3
+ Version: 0.3.2.dev188
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -36,7 +36,7 @@ Requires-Dist: numpy>=2.1.0
36
36
  Requires-Dist: openai<3.0.0,>=2.54.0
37
37
  Requires-Dist: prime-pydantic-config[toml]>=0.4.3
38
38
  Requires-Dist: prime-runs>=0.1.3
39
- Requires-Dist: prime-sandboxes>=0.4.1
39
+ Requires-Dist: prime-sandboxes>=0.4.2
40
40
  Requires-Dist: prime-tunnel>=0.1.8
41
41
  Requires-Dist: pydantic>=2.12.3
42
42
  Requires-Dist: pyzmq>=27.1.0
@@ -122,7 +122,7 @@ verifiers/v1/harnesses/utils/compaction.py,sha256=DeY6CYLEsv7-vJm26sT2mRaPHu3W2y
122
122
  verifiers/v1/harnesses/utils/core.py,sha256=29Usc55cbLQE0vA8y05yk06sbjJMwYjOo2TmdwjPLE8,20397
123
123
  verifiers/v1/harnesses/utils/install.py,sha256=BDkkUVZ1brSzCrbQOvMO5mVIE2DsV2pE7rTC5yROYUw,2992
124
124
  verifiers/v1/harnesses/utils/launch.py,sha256=Kg6x4Fl5y48pSgPiupSBj5ehQkkupk5vihUUvHtpcO8,2894
125
- verifiers/v1/harnesses/utils/mcp.py,sha256=oNhKfLjAW-wScJcDIsW_HfuvKY-JkaGBBZrRLqgRK1g,7355
125
+ verifiers/v1/harnesses/utils/mcp.py,sha256=EtDraHEqgsOB6xKvcF2z9C6HlQyKoST0ZDvmy47NWgM,7450
126
126
  verifiers/v1/interception/__init__.py,sha256=5Kvo7tcBUVaa65s9A1NiOH3CPpzw-P5btXwxB4Nbbvs,4251
127
127
  verifiers/v1/interception/base.py,sha256=Mg16Y104lyZilF9shdivdqYoqz4OYp978i_myyrulu8,2529
128
128
  verifiers/v1/interception/pool.py,sha256=sk_zcdTV8EVRuzqlYMXxon_42tSDAlFvwcyOO2EF7hw,6473
@@ -148,7 +148,7 @@ verifiers/v1/runtimes/container.py,sha256=_hNhGOo1Zvorj7THSj2UrZTkgewySUVJe4Kd77
148
148
  verifiers/v1/runtimes/e2b.py,sha256=yBeocAutsv2l5x-C5IMqrlgBz6Cb-t6vWbX4qTjlztE,30306
149
149
  verifiers/v1/runtimes/limiters.py,sha256=rOfQJcMdYcLSKq8AL9O09BfGOLqpYmNgrCxXXNcHLmU,2849
150
150
  verifiers/v1/runtimes/modal.py,sha256=ZHA4vtNIZwTV-bnVUlambgc8l34j_ZulvtrwvvkE2Kg,17945
151
- verifiers/v1/runtimes/prime.py,sha256=pkrHMWzBdmkNRBBelnu_fV5LO2kdEQmVlm0G2p7uZEk,19403
151
+ verifiers/v1/runtimes/prime.py,sha256=hGjkR8KsBy1OiUeJwcgmN8-twKnCVKk5IkUvm3-eWbs,19827
152
152
  verifiers/v1/runtimes/subprocess.py,sha256=vnGVAI3J7pYmRei4MQ7MN4nb8SglLi70NtVTINMPVvQ,8855
153
153
  verifiers/v1/runtimes/docker/__init__.py,sha256=QoFOTMgRjoWD--O25Jsft9eD2vjcrMpJQyhfQXqWraI,21828
154
154
  verifiers/v1/runtimes/docker/egress.py,sha256=wtKWTL2_zFidxMR7lDRmfevQlOsl2Iyk88ebdO4Kqqw,24566
@@ -195,8 +195,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
195
195
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
196
196
  verifiers/v1/utils/trace_store.py,sha256=RsCDonGR-bs-tvEstcppiJm3jFmAdIiG83fA5KtCbAw,2801
197
197
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
198
- verifiers-0.3.2.dev185.dist-info/METADATA,sha256=DF9K7iZDqE_b9Sf8WSNbMwPW1mZlDdTxqrUZtxUQNrY,4227
199
- verifiers-0.3.2.dev185.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
200
- verifiers-0.3.2.dev185.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
201
- verifiers-0.3.2.dev185.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
202
- verifiers-0.3.2.dev185.dist-info/RECORD,,
198
+ verifiers-0.3.2.dev188.dist-info/METADATA,sha256=sL0sA4A3UtCw-MHWRGEYh4gLKyaYhGqdV9Krng5UQVc,4227
199
+ verifiers-0.3.2.dev188.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
200
+ verifiers-0.3.2.dev188.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
201
+ verifiers-0.3.2.dev188.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
202
+ verifiers-0.3.2.dev188.dist-info/RECORD,,