verifiers 0.4.2.dev29__py3-none-any.whl → 0.4.2.dev30__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/clients/train.py +3 -5
- {verifiers-0.4.2.dev29.dist-info → verifiers-0.4.2.dev30.dist-info}/METADATA +1 -1
- {verifiers-0.4.2.dev29.dist-info → verifiers-0.4.2.dev30.dist-info}/RECORD +6 -6
- {verifiers-0.4.2.dev29.dist-info → verifiers-0.4.2.dev30.dist-info}/WHEEL +0 -0
- {verifiers-0.4.2.dev29.dist-info → verifiers-0.4.2.dev30.dist-info}/entry_points.txt +0 -0
- {verifiers-0.4.2.dev29.dist-info → verifiers-0.4.2.dev30.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/clients/train.py
CHANGED
|
@@ -10,6 +10,7 @@ from typing import Any, ClassVar, TypeVar
|
|
|
10
10
|
|
|
11
11
|
import numpy as np
|
|
12
12
|
from openai import OpenAIError
|
|
13
|
+
from openai.types import CompletionUsage
|
|
13
14
|
from renderers import OverlongPromptError, RenderedTokens, Renderer, RendererConfig
|
|
14
15
|
from renderers.base import ToolCallParseStatus, is_multimodal
|
|
15
16
|
|
|
@@ -165,11 +166,8 @@ def response_from_generate(
|
|
|
165
166
|
tool_calls=tool_calls,
|
|
166
167
|
),
|
|
167
168
|
finish_reason=finish,
|
|
168
|
-
#
|
|
169
|
-
|
|
170
|
-
usage=Usage(
|
|
171
|
-
prompt_tokens=len(prompt_ids), completion_tokens=len(completion_ids)
|
|
172
|
-
),
|
|
169
|
+
# Require provider usage to preserve cache and reasoning accounting.
|
|
170
|
+
usage=Usage.from_openai(CompletionUsage.model_validate(result["usage"])),
|
|
173
171
|
# The streams are already typed arrays, so skip revalidation.
|
|
174
172
|
tokens=TurnTokens.model_construct(
|
|
175
173
|
prompt_ids=prompt_ids,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.4.2.
|
|
3
|
+
Version: 0.4.2.dev30
|
|
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
|
|
@@ -31,7 +31,7 @@ verifiers/v1/clients/__init__.py,sha256=Ysig0tE_0E4Jsfgfes1XHN-fK1s_RCXdqZD6E7lK
|
|
|
31
31
|
verifiers/v1/clients/base.py,sha256=C0G5lRm3nxt1xmPoA2cweBgCnN2KcLepmCYq1vdDrnU,1691
|
|
32
32
|
verifiers/v1/clients/client.py,sha256=HT3aQiOyYYjvz_cKEXchtUSD07-4VehebWUJL9AyON8,3166
|
|
33
33
|
verifiers/v1/clients/eval.py,sha256=pWHgnRU8QQE6jnjJdwJNdvR8BeJ-z_OfjIB1tcwLpkc,8340
|
|
34
|
-
verifiers/v1/clients/train.py,sha256=
|
|
34
|
+
verifiers/v1/clients/train.py,sha256=v1YCVNCEXw2FNQw4lpbLoq18u8TQeo9TnsYOoMWr4zE,20277
|
|
35
35
|
verifiers/v1/configs/__init__.py,sha256=X7u6X7B3ieD1HZl79Tv1kg-yPHbT0QLvAebaGqxVtvA,317
|
|
36
36
|
verifiers/v1/configs/agent.py,sha256=xn9j1WcBIGz7LjgW8WOWDvSvk7vPLztisSLVcT2foxk,7530
|
|
37
37
|
verifiers/v1/configs/client.py,sha256=IvYQuPLVWr8qZNdMbQ9lRXK0wZ4vOjK67lO1lgD2fmM,6149
|
|
@@ -193,8 +193,8 @@ verifiers/v1/utils/scope.py,sha256=zbs4pj6AVk4jywlAJ3AX0Q0_kzB9dBB02nY-9H4ELdQ,8
|
|
|
193
193
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
194
194
|
verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
|
|
195
195
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
196
|
-
verifiers-0.4.2.
|
|
197
|
-
verifiers-0.4.2.
|
|
198
|
-
verifiers-0.4.2.
|
|
199
|
-
verifiers-0.4.2.
|
|
200
|
-
verifiers-0.4.2.
|
|
196
|
+
verifiers-0.4.2.dev30.dist-info/METADATA,sha256=4Hqn7rY_wdYh8e_puZgnQLBJvOoCshGo8ExQ2B9hdAs,5142
|
|
197
|
+
verifiers-0.4.2.dev30.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
198
|
+
verifiers-0.4.2.dev30.dist-info/entry_points.txt,sha256=3M8Wr0w1cUKiB-fJ6YHB6eK5WuKYg-Y3OC4wCuUje_c,174
|
|
199
|
+
verifiers-0.4.2.dev30.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
200
|
+
verifiers-0.4.2.dev30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|