langfun 0.1.2.dev202504220804__py3-none-any.whl → 0.1.2.dev202504230804__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.
- langfun/core/eval/v2/evaluation.py +2 -1
- langfun/core/eval/v2/experiment.py +2 -0
- langfun/core/eval/v2/runners.py +20 -0
- {langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/RECORD +8 -8
- {langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/WHEEL +0 -0
- {langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/licenses/LICENSE +0 -0
- {langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/top_level.txt +0 -0
@@ -418,6 +418,7 @@ class Evaluation(experiment_lib.Experiment):
|
|
418
418
|
"""Renders the details view of the evaluation."""
|
419
419
|
|
420
420
|
def _title():
|
421
|
+
additional_links = []
|
421
422
|
return pg.Html.element(
|
422
423
|
'div',
|
423
424
|
[
|
@@ -434,7 +435,7 @@ class Evaluation(experiment_lib.Experiment):
|
|
434
435
|
link=self.output_link(run, ''),
|
435
436
|
css_classes=['dir-link'],
|
436
437
|
),
|
437
|
-
],
|
438
|
+
] + additional_links,
|
438
439
|
css_classes=['experiment-links'],
|
439
440
|
),
|
440
441
|
pg.views.html.controls.Label(
|
langfun/core/eval/v2/runners.py
CHANGED
@@ -151,6 +151,11 @@ class RunnerBase(Runner):
|
|
151
151
|
experiment.progress.start(total=1)
|
152
152
|
experiment.progress.increment_skipped(1)
|
153
153
|
|
154
|
+
if experiment.is_leaf:
|
155
|
+
experiment.info(
|
156
|
+
f'Evaluation {experiment.id!r} is skipped.'
|
157
|
+
)
|
158
|
+
|
154
159
|
# Notify the plugins of the experiment skip.
|
155
160
|
for plugin in self._all_plugins(experiment):
|
156
161
|
plugin.on_experiment_skipped(self, experiment)
|
@@ -232,6 +237,7 @@ class RunnerBase(Runner):
|
|
232
237
|
"""Called when an evaluation example is started."""
|
233
238
|
for plugin in self._all_plugins(experiment):
|
234
239
|
plugin.on_example_start(self, experiment, example)
|
240
|
+
experiment.info(f'Starting to evaluate example {example.id}.')
|
235
241
|
|
236
242
|
def on_example_complete(
|
237
243
|
self,
|
@@ -242,10 +248,24 @@ class RunnerBase(Runner):
|
|
242
248
|
if example.newly_processed:
|
243
249
|
if example.error is None:
|
244
250
|
experiment.progress.increment_processed()
|
251
|
+
experiment.info(
|
252
|
+
f'Example {example.id} is successfully evaluated in '
|
253
|
+
f'{example.elapse:.2f} seconds.' # pylint: disable=bad-whitespace
|
254
|
+
)
|
245
255
|
else:
|
246
256
|
experiment.progress.increment_failed()
|
257
|
+
experiment.error(
|
258
|
+
(
|
259
|
+
f'Failed to evaluate example {example.id} in'
|
260
|
+
f'{example.elapse:.2f} seconds.' # pylint: disable=bad-whitespace
|
261
|
+
),
|
262
|
+
error=example.error
|
263
|
+
)
|
247
264
|
else:
|
248
265
|
experiment.progress.increment_skipped()
|
266
|
+
experiment.info(
|
267
|
+
f'Skipped example {example.id} as it is loaded from checkpoint.'
|
268
|
+
)
|
249
269
|
|
250
270
|
experiment.usage_summary.merge(example.usage_summary)
|
251
271
|
experiment.progress.update_execution_summary(example.execution_status)
|
@@ -63,11 +63,11 @@ langfun/core/eval/v2/__init__.py,sha256=9lNKJwbvl0lcFblAXYT_OHI8fOubJsTOdSkxEqsP
|
|
63
63
|
langfun/core/eval/v2/checkpointing.py,sha256=t47rBfzGZYgIqWW1N1Ak9yQnNtHd-IRbEO0cZjG2VRo,11755
|
64
64
|
langfun/core/eval/v2/checkpointing_test.py,sha256=NggOSJ_6XSa4cNP6nGIu9wLsK59dUwe8SPWDiXtGGDE,9197
|
65
65
|
langfun/core/eval/v2/eval_test_helper.py,sha256=sKFi_wPYCNmr96WyTduuXY0KnxjFxcJyEhXey-_nGX8,3962
|
66
|
-
langfun/core/eval/v2/evaluation.py,sha256=
|
66
|
+
langfun/core/eval/v2/evaluation.py,sha256=JF4ztdkOURShiDIu3p9e8dSCGD6HUK3Y5491I7ldvV8,23929
|
67
67
|
langfun/core/eval/v2/evaluation_test.py,sha256=TKbeyeenoaUDH23E3TXXJ4otuq3VZBuWkWdV7c5vMk4,6804
|
68
68
|
langfun/core/eval/v2/example.py,sha256=Jegt-viQSNYzPVkOZE_M19GON2TYGTct4Cp9HnJ7DGo,10861
|
69
69
|
langfun/core/eval/v2/example_test.py,sha256=1DNm6EuyZOq827DKvf3oTRVFkMNM_qTnLUpvOjpgz5I,3419
|
70
|
-
langfun/core/eval/v2/experiment.py,sha256=
|
70
|
+
langfun/core/eval/v2/experiment.py,sha256=xlQvx-AgPCgHNaBoW1HxddA9wby-odADF0VJ3rQjw_M,32978
|
71
71
|
langfun/core/eval/v2/experiment_test.py,sha256=UmCobeS6ifPcaGkTJp0WPISolXrVFbeFCBiyJeA0Lt4,13666
|
72
72
|
langfun/core/eval/v2/metric_values.py,sha256=_B905bC-jxrYPLSEcP2M8MaHZOVMz_bVrUw8YC4arCE,4660
|
73
73
|
langfun/core/eval/v2/metric_values_test.py,sha256=ab2oF_HsIwrSy459108ggyjgefHSPn8UVILR4dRwx14,2634
|
@@ -79,7 +79,7 @@ langfun/core/eval/v2/progress_tracking.py,sha256=zNhNPGlnJnHELEfFpbTMCSXFn8d1IJ5
|
|
79
79
|
langfun/core/eval/v2/progress_tracking_test.py,sha256=fouMVJkFJqHjbhQJngGLGCmA9x3n0dU4USI2dY163mg,2291
|
80
80
|
langfun/core/eval/v2/reporting.py,sha256=yUIPCAMnp7InIzpv1DDWrcLO-75iiOUTpscj7smkfrA,8335
|
81
81
|
langfun/core/eval/v2/reporting_test.py,sha256=hcPJJaMtPulqERvHYTpId83WXdqDKnnexmULtK7WKwk,5686
|
82
|
-
langfun/core/eval/v2/runners.py,sha256=
|
82
|
+
langfun/core/eval/v2/runners.py,sha256=Af9iCnzzyhAexcl266eYFN1s36J5B5DuFde98yNifuU,16655
|
83
83
|
langfun/core/eval/v2/runners_test.py,sha256=A37fKK2MvAVTiShsg_laluJzJ9AuAQn52k7HPbfD0Ks,11666
|
84
84
|
langfun/core/llms/__init__.py,sha256=0XyDya5doAIK_8Fjw_a78El-eBf63ggJMY8vICtQMtw,8495
|
85
85
|
langfun/core/llms/anthropic.py,sha256=qaclpfX3qeHoZMDxU3Gn-638Vi4IyCbxdow3zgGUHK4,22195
|
@@ -156,8 +156,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
156
156
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
157
157
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
158
158
|
langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
|
159
|
-
langfun-0.1.2.
|
160
|
-
langfun-0.1.2.
|
161
|
-
langfun-0.1.2.
|
162
|
-
langfun-0.1.2.
|
163
|
-
langfun-0.1.2.
|
159
|
+
langfun-0.1.2.dev202504230804.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
160
|
+
langfun-0.1.2.dev202504230804.dist-info/METADATA,sha256=mF1ZV-0PWSeouicbFRYbpgj7XtPVqG-fdde09_xTY6k,7692
|
161
|
+
langfun-0.1.2.dev202504230804.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
162
|
+
langfun-0.1.2.dev202504230804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
163
|
+
langfun-0.1.2.dev202504230804.dist-info/RECORD,,
|
File without changes
|
{langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{langfun-0.1.2.dev202504220804.dist-info → langfun-0.1.2.dev202504230804.dist-info}/top_level.txt
RENAMED
File without changes
|