verifiers 0.4.1.dev78__py3-none-any.whl → 0.4.1.dev79__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.
@@ -391,7 +391,13 @@ class TrainClient(Client):
391
391
  prompt_ids: list[int] | None = None
392
392
  prompt_attribution: RenderedTokens | None = None
393
393
  model = body["model"]
394
- sampling_params = sampling.model_dump(exclude_none=True)
394
+ # Neutral defaults stop vLLM from applying the model's generation_config
395
+ # top_k/min_p, so the sampled distribution is the one the trainer replays.
396
+ sampling_params = {
397
+ "top_k": -1,
398
+ "min_p": 0.0,
399
+ **sampling.model_dump(exclude_none=True),
400
+ }
395
401
  chat_template_kwargs = sampling_params.pop("chat_template_kwargs", None)
396
402
  cache_salt = sampling_params.pop("cache_salt", None)
397
403
  pool = ElasticRendererPool(
@@ -54,9 +54,10 @@ class AgentConfig(BaseConfig):
54
54
  model: str | None = None
55
55
  """Model id (None = the run's model, i.e. the policy under evaluation/training)."""
56
56
  client: ClientConfig | None = None
57
- """Endpoint override (None = the run's client)."""
57
+ """Endpoint override (None = the run's client, with the run's sampling)."""
58
58
  sampling: SamplingConfig | None = None
59
- """Sampling values merged onto the run's sampling."""
59
+ """Sampling values merged onto the run's sampling. A seat with its own `client`
60
+ does not inherit the run's sampling: it uses only these values."""
60
61
 
61
62
  max_turns: int | None = None
62
63
  """Max model turns per run (None = no limit)."""
@@ -148,8 +149,14 @@ def resolve_agent(
148
149
  ) -> AgentConfig:
149
150
  """`spec` with what it leaves unset filled from the run's defaults; its own
150
151
  sampling values merge over the run's. The one place a seat's identity resolves,
151
- for configured agent roles."""
152
- defaults = sampling or SamplingConfig()
152
+ for configured agent roles.
153
+
154
+ The run's sampling belongs to the run's client: it can carry endpoint-specific
155
+ keys (e.g. vLLM's `top_k`) that another provider rejects. A seat that pins its
156
+ own `client` therefore starts from empty sampling."""
157
+ defaults = (
158
+ sampling if sampling is not None and spec.client is None else SamplingConfig()
159
+ )
153
160
  overrides = (spec.sampling or SamplingConfig()).model_dump(exclude_unset=True)
154
161
  merged = {**defaults.model_dump(), **merge_defaults(defaults, overrides)}
155
162
  if spec.max_turn_tokens is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.1.dev78
3
+ Version: 0.4.1.dev79
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
@@ -40,9 +40,9 @@ verifiers/v1/clients/__init__.py,sha256=Ysig0tE_0E4Jsfgfes1XHN-fK1s_RCXdqZD6E7lK
40
40
  verifiers/v1/clients/base.py,sha256=C0G5lRm3nxt1xmPoA2cweBgCnN2KcLepmCYq1vdDrnU,1691
41
41
  verifiers/v1/clients/client.py,sha256=HT3aQiOyYYjvz_cKEXchtUSD07-4VehebWUJL9AyON8,3166
42
42
  verifiers/v1/clients/eval.py,sha256=pWHgnRU8QQE6jnjJdwJNdvR8BeJ-z_OfjIB1tcwLpkc,8340
43
- verifiers/v1/clients/train.py,sha256=eycM36ws784S4_Rv2Ef4cwg85_-IroA2Y53Ss5NRSIE,20276
43
+ verifiers/v1/clients/train.py,sha256=JhGX7Q9MYIEAEM5fIDvNQH_wMlGS3SG32RNdsJhcNyA,20518
44
44
  verifiers/v1/configs/__init__.py,sha256=X7u6X7B3ieD1HZl79Tv1kg-yPHbT0QLvAebaGqxVtvA,317
45
- verifiers/v1/configs/agent.py,sha256=CvC3Pu7h5VXFfMd5jyre6K_8jovMP6rdDI122iBG8Vg,7126
45
+ verifiers/v1/configs/agent.py,sha256=RwLgvxoADZWTyWgfso-sgK69p53diIFddBo-CzcXG8A,7536
46
46
  verifiers/v1/configs/client.py,sha256=5OW_kAmFf2DkmzH2cerd4bINrIL2t68MKKcREUdrQyQ,6224
47
47
  verifiers/v1/configs/deployment.py,sha256=Eggd8phUNVcq_f56Haw-OT5U6fTBLDhBnXFJ5AEb7MI,389
48
48
  verifiers/v1/configs/env.py,sha256=0O2GHVKu4pG19bl2UChG6T-o2g_BuYAgWA9DVHjEDDQ,7540
@@ -205,8 +205,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
205
205
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
206
206
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
207
207
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
208
- verifiers-0.4.1.dev78.dist-info/METADATA,sha256=QC6NkHcxCsZj8H4gO33oP719_yJ8HCAikdj8O78bZAU,5234
209
- verifiers-0.4.1.dev78.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
210
- verifiers-0.4.1.dev78.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
211
- verifiers-0.4.1.dev78.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
212
- verifiers-0.4.1.dev78.dist-info/RECORD,,
208
+ verifiers-0.4.1.dev79.dist-info/METADATA,sha256=fS5SJdM1BzP7e4vK5aIRqqHoKTMpeNgjzfTLImABk40,5234
209
+ verifiers-0.4.1.dev79.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
210
+ verifiers-0.4.1.dev79.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
211
+ verifiers-0.4.1.dev79.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
212
+ verifiers-0.4.1.dev79.dist-info/RECORD,,