nvidia-nat 1.4.0a20251103__py3-none-any.whl → 1.4.0a20251104__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.
- nat/eval/evaluate.py +1 -1
- nat/eval/utils/weave_eval.py +17 -3
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/METADATA +1 -1
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/RECORD +9 -9
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/WHEEL +0 -0
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/entry_points.txt +0 -0
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/licenses/LICENSE.md +0 -0
- {nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/top_level.txt +0 -0
nat/eval/evaluate.py
CHANGED
|
@@ -514,7 +514,7 @@ class EvaluationRun:
|
|
|
514
514
|
# Run workflow and evaluate
|
|
515
515
|
async with WorkflowEvalBuilder.from_config(config=config) as eval_workflow:
|
|
516
516
|
# Initialize Weave integration
|
|
517
|
-
self.weave_eval.initialize_logger(workflow_alias, self.eval_input, config)
|
|
517
|
+
self.weave_eval.initialize_logger(workflow_alias, self.eval_input, config, job_id=job_id)
|
|
518
518
|
|
|
519
519
|
with self.eval_trace_context.evaluation_context():
|
|
520
520
|
# Run workflow
|
nat/eval/utils/weave_eval.py
CHANGED
|
@@ -82,7 +82,7 @@ class WeaveEvaluationIntegration:
|
|
|
82
82
|
"""Get the full dataset for Weave."""
|
|
83
83
|
return [item.full_dataset_entry for item in eval_input.eval_input_items]
|
|
84
84
|
|
|
85
|
-
def initialize_logger(self, workflow_alias: str, eval_input: EvalInput, config: Any):
|
|
85
|
+
def initialize_logger(self, workflow_alias: str, eval_input: EvalInput, config: Any, job_id: str | None = None):
|
|
86
86
|
"""Initialize the Weave evaluation logger."""
|
|
87
87
|
if not self.client and not self.initialize_client():
|
|
88
88
|
# lazy init the client
|
|
@@ -92,10 +92,16 @@ class WeaveEvaluationIntegration:
|
|
|
92
92
|
weave_dataset = self._get_weave_dataset(eval_input)
|
|
93
93
|
config_dict = config.model_dump(mode="json")
|
|
94
94
|
config_dict["name"] = workflow_alias
|
|
95
|
+
|
|
96
|
+
# Include job_id in eval_attributes if provided
|
|
97
|
+
eval_attributes = {}
|
|
98
|
+
if job_id:
|
|
99
|
+
eval_attributes["job_id"] = job_id
|
|
100
|
+
|
|
95
101
|
self.eval_logger = self.evaluation_logger_cls(model=config_dict,
|
|
96
102
|
dataset=weave_dataset,
|
|
97
103
|
name=workflow_alias,
|
|
98
|
-
eval_attributes=
|
|
104
|
+
eval_attributes=eval_attributes)
|
|
99
105
|
self.pred_loggers = {}
|
|
100
106
|
|
|
101
107
|
# Capture the current evaluation call for context propagation
|
|
@@ -136,9 +142,17 @@ class WeaveEvaluationIntegration:
|
|
|
136
142
|
coros = []
|
|
137
143
|
for eval_output_item in eval_output.eval_output_items:
|
|
138
144
|
if eval_output_item.id in self.pred_loggers:
|
|
145
|
+
# Structure the score as a dict and include reasoning if available
|
|
146
|
+
score_value = {
|
|
147
|
+
"score": eval_output_item.score,
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if eval_output_item.reasoning is not None:
|
|
151
|
+
score_value["reasoning"] = eval_output_item.reasoning
|
|
152
|
+
|
|
139
153
|
coros.append(self.pred_loggers[eval_output_item.id].alog_score(
|
|
140
154
|
scorer=evaluator_name,
|
|
141
|
-
score=
|
|
155
|
+
score=score_value,
|
|
142
156
|
))
|
|
143
157
|
|
|
144
158
|
# Execute all coroutines concurrently
|
|
@@ -159,7 +159,7 @@ nat/embedder/openai_embedder.py,sha256=To7aCg8UyWPwSoA0MAHanH_MAKFDi3EcZxgLU1xYE
|
|
|
159
159
|
nat/embedder/register.py,sha256=TM_LKuSlJr3tEceNVuHfAx_yrCzf1sryD5Ycep5rNGo,883
|
|
160
160
|
nat/eval/__init__.py,sha256=Xs1JQ16L9btwreh4pdGKwskffAw1YFO48jKrU4ib_7c,685
|
|
161
161
|
nat/eval/config.py,sha256=G0LE4JpZaQy3PvERldVATFpQCiDQcVJGUFChgorqzNo,2377
|
|
162
|
-
nat/eval/evaluate.py,sha256=
|
|
162
|
+
nat/eval/evaluate.py,sha256=CrJk7HMNH4gzmvrnIvQxIPWeX1w9A3Zv5meat7J6dAg,26942
|
|
163
163
|
nat/eval/intermediate_step_adapter.py,sha256=mquQfPbq4-Owid2GzSyxtGNXoZ0i8crB6sA49rxnyrU,4483
|
|
164
164
|
nat/eval/register.py,sha256=Vce8HGsu6KDj7MA_5W2ziQtss1F180ndMjuqGiHxTe8,1358
|
|
165
165
|
nat/eval/remote_workflow.py,sha256=JAAbD0s753AOjo9baT4OqcB5dVEDmN34jPe0Uk13LcU,6024
|
|
@@ -194,7 +194,7 @@ nat/eval/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
194
194
|
nat/eval/utils/eval_trace_ctx.py,sha256=hN0YZ0wMOPzh9I-iSav-cGdxY3RWQWoE_tk5BxUf1mc,3264
|
|
195
195
|
nat/eval/utils/output_uploader.py,sha256=wtAaxvrJrjQPFt8mTLSz31sWDs09KmLkmyelMQOLDws,5667
|
|
196
196
|
nat/eval/utils/tqdm_position_registry.py,sha256=9CtpCk1wtYCSyieHPaSp8nlZu6EcNUOaUz2RTqfekrA,1286
|
|
197
|
-
nat/eval/utils/weave_eval.py,sha256=
|
|
197
|
+
nat/eval/utils/weave_eval.py,sha256=kmpeSzDtZiHJW_suc1U6MlvPe_9cFIudjhr-C79MVAc,8238
|
|
198
198
|
nat/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
199
199
|
nat/experimental/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
200
200
|
nat/experimental/decorators/experimental_warning_decorator.py,sha256=ADj8fR9jL2FGFDcR8zJZbdvO9Leur8pUEVEUqpfNENY,5757
|
|
@@ -475,10 +475,10 @@ nat/utils/reactive/base/observer_base.py,sha256=6BiQfx26EMumotJ3KoVcdmFBYR_fnAss
|
|
|
475
475
|
nat/utils/reactive/base/subject_base.py,sha256=UQOxlkZTIeeyYmG5qLtDpNf_63Y7p-doEeUA08_R8ME,2521
|
|
476
476
|
nat/utils/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
477
477
|
nat/utils/settings/global_settings.py,sha256=9JaO6pxKT_Pjw6rxJRsRlFCXdVKCl_xUKU2QHZQWWNM,7294
|
|
478
|
-
nvidia_nat-1.4.
|
|
479
|
-
nvidia_nat-1.4.
|
|
480
|
-
nvidia_nat-1.4.
|
|
481
|
-
nvidia_nat-1.4.
|
|
482
|
-
nvidia_nat-1.4.
|
|
483
|
-
nvidia_nat-1.4.
|
|
484
|
-
nvidia_nat-1.4.
|
|
478
|
+
nvidia_nat-1.4.0a20251104.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
|
|
479
|
+
nvidia_nat-1.4.0a20251104.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
480
|
+
nvidia_nat-1.4.0a20251104.dist-info/METADATA,sha256=M6x-N-lN45FONU42JC2jgrIdqWRnxKcoWMgfOoQ7Puo,10248
|
|
481
|
+
nvidia_nat-1.4.0a20251104.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
482
|
+
nvidia_nat-1.4.0a20251104.dist-info/entry_points.txt,sha256=4jCqjyETMpyoWbCBf4GalZU8I_wbstpzwQNezdAVbbo,698
|
|
483
|
+
nvidia_nat-1.4.0a20251104.dist-info/top_level.txt,sha256=lgJWLkigiVZuZ_O1nxVnD_ziYBwgpE2OStdaCduMEGc,8
|
|
484
|
+
nvidia_nat-1.4.0a20251104.dist-info/RECORD,,
|
|
File without changes
|
{nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{nvidia_nat-1.4.0a20251103.dist-info → nvidia_nat-1.4.0a20251104.dist-info}/licenses/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|