← {{ ui_lang.training_all_runs|default('All runs') }}

{{ ui_lang.training_run_heading|default('Run') }} {{ run.run_id }}

{{ ui_lang.training_summary|default('Summary') }}

{{ ui_lang.training_col_status|default('Status') }}
{{ run.status }}
{{ ui_lang.training_col_trainer|default('Trainer') }}
{{ run.trainer }}
{{ ui_lang.training_col_backend|default('Ran on') }}
{{ run.backend or 'local' }}{% if run.host %} {{ run.host }}{% endif %}
{{ ui_lang.training_col_schemas|default('Schemas') }}
{{ run.schema_names|join(', ') }}
{{ ui_lang.training_trigger|default('Triggered by') }}
{{ run.trigger }}
{{ ui_lang.training_col_train|default('Train') }}
{{ run.n_train }}
{{ ui_lang.training_col_val|default('Val') }}
{{ run.n_val }}
{{ ui_lang.training_col_test|default('Test') }}
{{ run.n_test }}
{{ ui_lang.training_col_duration|default('Duration') }}
{% if run.duration %}{{ '%.1fs'|format(run.duration) }}{% else %}still running{% endif %}
{{ ui_lang.training_split_seed|default('Split seed') }}
{{ run.split_seed }}
{{ ui_lang.training_model_version|default('Model version') }}
{{ run.model_version or '—' }}
{%- set heldout = (run.metrics or {}).get('heldout_score') %}
{{ ui_lang.training_col_score|default('Held-out score') }}
{% if heldout is number %}{{ '%.3f'|format(heldout) }} {{ run.metrics.get('heldout_metric', '') }} {%- else %}not scored{% endif %}
{{ ui_lang.training_params|default('Parameters') }}
{% if run.params %}{{ run.params|tojson }}{% else %}{{ ui_lang.training_params_defaults|default("the trainer's defaults") }}{% endif %}

{{ ui_lang.training_seed_note|default('The split seed decides which items are held out. Keep it fixed: changing it moves validation items into training, and every score recorded before the change stops being comparable to the ones after it.') }}

{% if run.error %}

{{ ui_lang.training_error_heading|default('What went wrong') }}

{{ run.error }}
{% if run.error_code %}

{{ ui_lang.training_error_code|default('Code') }}: {{ run.error_code }}

{% endif %}
{% endif %}

{{ ui_lang.training_metrics_heading|default('Metrics') }}

{% if not run.metrics %}

{{ ui_lang.training_no_metrics|default('This run recorded no metrics.') }}

{% else %}
{% for name, value in run.metrics.items() %} {#- A count is not a rate: rendering n_train as "37.0000" reads as a measurement with four significant figures rather than a tally. -#} {% endfor %}
{{ ui_lang.training_col_metric|default('Metric') }} {{ ui_lang.training_col_value|default('Value') }}
{{ name }} {%- if value is number and value == value|round|int -%} {{ value|int }} {%- elif value is number -%} {{ '%.4f'|format(value) }} {%- else -%} {{ value }} {%- endif -%}
{% endif %}
{%- set split_counts = {} %} {%- for _iid, _split in (splits or {}).items() %}{% set _ = split_counts.update({_split: split_counts.get(_split, 0) + 1}) %}{% endfor %} {% if split_counts %}

{{ ui_lang.training_pin_heading|default('Keep this split as a dataset') }}

{% if datasets_enabled %}

{% endif %}

{{ ui_lang.training_pin_note|default('Saves the items with their agreed human labels as a new version of the dataset. A version does not change, so later models can be compared on the same items in Datasets.') }} {% if not datasets_enabled %}{{ ui_lang.training_pin_disabled|default('Datasets are not enabled for this project: set datasets.enabled: true.') }}{% endif %}

{% endif %} {% if hub_pushable or hub_pushes %}

{{ ui_lang.training_hub_heading|default('Publish to the Hugging Face Hub') }}

{% if hub_pushes %} {% endif %} {% if hub_pushable %}
{% if run_licence_ack %} {% endif %}

{{ ui_lang.training_hub_note|default('Uploads the model files with a model card written from this run: trainer, base model, schemes, split sizes and held-out score. The predictions and the training data stay here. The token is read from the named environment variable on the server; it is never typed into this page.') }}

{% endif %}
{% endif %}

{{ ui_lang.training_log_heading|default('Log') }}

{% set log_events = events|selectattr('event', 'equalto', 'log')|list %} {% if not log_events %}

{{ ui_lang.training_no_log|default('This run produced no log lines.') }}

{% else %}
{% for e in log_events %}
[{{ e.level }}] {{ e.msg }}
{% endfor %}
{% endif %}