verifiers 0.3.2.dev83__py3-none-any.whl → 0.3.2.dev85__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.
verifiers/v1/rollout.py CHANGED
@@ -107,14 +107,12 @@ class Rollout:
107
107
  ctx=ctx,
108
108
  trace=self.trace,
109
109
  network_policy=(
110
- runtime_config
110
+ NetworkPolicyConfig(allow=[])
111
+ if isinstance(runtime_config, ModalConfig)
112
+ and not runtime_config.network_access
113
+ else runtime_config
111
114
  if isinstance(runtime_config, NetworkPolicyConfig)
112
- else NetworkPolicyConfig(
113
- allow=[]
114
- if isinstance(runtime_config, ModalConfig)
115
- and not runtime_config.network_access
116
- else ["*"]
117
- )
115
+ else NetworkPolicyConfig()
118
116
  ),
119
117
  trace_stops=[fn for boundary, fn in stops if boundary is Trace],
120
118
  limits=limits,
@@ -181,14 +181,6 @@ class ModalRuntime(Runtime):
181
181
  "ModalRuntime requires the Modal SDK; install `verifiers[modal]`."
182
182
  ) from e
183
183
 
184
- if self.network_restricted and not hasattr(
185
- modal.Sandbox, "_experimental_set_outbound_network_policy"
186
- ):
187
- raise SandboxError(
188
- "Modal execution-time network policies require a Modal SDK with "
189
- "_experimental_set_outbound_network_policy; upgrade verifiers[modal]"
190
- )
191
-
192
184
  try:
193
185
  app = await modal.App.lookup.aio(_APP_NAME, create_if_missing=True)
194
186
  async with (
@@ -219,14 +211,6 @@ class ModalRuntime(Runtime):
219
211
 
220
212
  # Modal requires both allowlist types at creation before they can be updated.
221
213
  # Trusted setup runs open; prepare_execution removes the broad CIDR grant.
222
- network = (
223
- {
224
- "outbound_domain_allowlist": ["*"],
225
- "outbound_cidr_allowlist": ["0.0.0.0/0"],
226
- }
227
- if self.network_restricted
228
- else {}
229
- )
230
214
  self._sandbox = await modal.Sandbox.create.aio(
231
215
  "sleep",
232
216
  "infinity", # keep-alive entrypoint; the harness runs via `exec`
@@ -243,7 +227,10 @@ class ModalRuntime(Runtime):
243
227
  gpu=self.config.gpu,
244
228
  region=self.config.region,
245
229
  block_network=not self.config.network_access,
246
- **network,
230
+ outbound_domain_allowlist=["*"] if self.network_restricted else None,
231
+ outbound_cidr_allowlist=(
232
+ ["0.0.0.0/0"] if self.network_restricted else None
233
+ ),
247
234
  timeout=24 * 60 * 60, # Maximum lifetime of any sandbox.
248
235
  encrypted_ports=[SERVICE_PORT],
249
236
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev83
3
+ Version: 0.3.2.dev85
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
@@ -51,7 +51,7 @@ Requires-Dist: harbor==0.21.0; (python_full_version >= '3.12') and extra == 'har
51
51
  Provides-Extra: lean
52
52
  Requires-Dist: datasets<6.0.0,>=3.3.0; extra == 'lean'
53
53
  Provides-Extra: modal
54
- Requires-Dist: modal>=1.4.0; extra == 'modal'
54
+ Requires-Dist: modal>=1.5.4; extra == 'modal'
55
55
  Provides-Extra: openenv
56
56
  Requires-Dist: openenv>=0.4.1; extra == 'openenv'
57
57
  Provides-Extra: ta
@@ -8,7 +8,7 @@ verifiers/v1/errors.py,sha256=uQySmCUrjDYFkBIii1vBFPiEcPFPQZ9EGpas_6HvcQI,5279
8
8
  verifiers/v1/graph.py,sha256=K6wKkoT_8TpNqPQISu2Xf0eHtAYW_KUGw0CteN5zr3c,36529
9
9
  verifiers/v1/harness.py,sha256=Yx-XCIs1HAmqv1F-nhCTDBUwAx51xQWNWgFcWL1WRTM,13777
10
10
  verifiers/v1/judge.py,sha256=uqn-djkK2_7Q3kOjkDo6ipOvV_HOvuLa9y6AoDjRux8,9618
11
- verifiers/v1/rollout.py,sha256=FT6ZYfSqkKOFa5tm52XDTLijKxqpeLr3x2MBdLIk4xk,24021
11
+ verifiers/v1/rollout.py,sha256=SvMgs7YBNjiftp4vlGVBMEseUsJs1h7qrqAlxmWaNwY,23987
12
12
  verifiers/v1/semantic.py,sha256=VQ_buw6Ya6QtRoh_fiYI5Avs5RmIQCfWH0H0bQc4aoc,4704
13
13
  verifiers/v1/session.py,sha256=LAdP72ooTeLUv9GYRqg7b0csit1dmIeVca0cHOU0Q_Q,18865
14
14
  verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
@@ -143,7 +143,7 @@ verifiers/v1/mcp/toolset.py,sha256=G2wzNdEMGLXoQUcrwF0TartJkqokNPI3o7YUOAaaa6U,1
143
143
  verifiers/v1/runtimes/__init__.py,sha256=ppc1R_sx-aMcuJSx4t99rTSjloUXI0M6EUj676-1PeY,2862
144
144
  verifiers/v1/runtimes/base.py,sha256=gIITMMOxCIquPIElQVs-QSYfMgO5ceEKlgNvsMpYN8c,17638
145
145
  verifiers/v1/runtimes/limiters.py,sha256=C6cWDD4pwyFwUY4QFke3oiMXwydSNIfSbJSIglUC2kE,3062
146
- verifiers/v1/runtimes/modal.py,sha256=PRuCds6Rfjzeb1Csq6Oo08m4Wk3BLy8jHI_wjJ6wezU,17903
146
+ verifiers/v1/runtimes/modal.py,sha256=rFbxdDBi_VIiDA67XyZg-AOsc_XkV8aQWSKnTUAgCmU,17506
147
147
  verifiers/v1/runtimes/prime.py,sha256=VWzskEtMEwND6tKKhRtFM5m4Qzt001xCaI4zKqNon80,19490
148
148
  verifiers/v1/runtimes/subprocess.py,sha256=QmpQ235_xrX6gowrr8557VgbydOXpLbfFq0KKGfJThk,8774
149
149
  verifiers/v1/runtimes/docker/__init__.py,sha256=2YJtjOVSA4OgxXgeIlFW3Ps01KEfLNT_pcat2k3_bm0,21116
@@ -190,8 +190,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
190
190
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
191
191
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
192
192
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
193
- verifiers-0.3.2.dev83.dist-info/METADATA,sha256=E8-kbdJxuiezuzfDG51kDUEbimJ4vEhT4MpYYnM6oDc,4237
194
- verifiers-0.3.2.dev83.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
- verifiers-0.3.2.dev83.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
- verifiers-0.3.2.dev83.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
- verifiers-0.3.2.dev83.dist-info/RECORD,,
193
+ verifiers-0.3.2.dev85.dist-info/METADATA,sha256=3J8R_ZTzcm8lbtTmiWJnRYqCs7MBgr11I1CJcS1WtPw,4237
194
+ verifiers-0.3.2.dev85.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
+ verifiers-0.3.2.dev85.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
+ verifiers-0.3.2.dev85.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
+ verifiers-0.3.2.dev85.dist-info/RECORD,,