{% set field_id = field.id or field.name %} {% set field_name = field.name %} {% set field_value = field.value if field.value is defined else '' %} {% set field_type = field.type|lower %} {% set col_class = field.col_class|default('col-md-6') %} {% set custom_component = field.custom_component|default('') %} {% set uses_custom_label = custom_component == 'merge_environment_toggle' %} {% set is_toggle_field = field_type in ['checkbox', 'toggle'] %} {% set is_deepspeed_field = field_name == 'deepspeed_config' or field_id == 'deepspeed_config' %}
{% if not uses_custom_label %} {% if is_deepspeed_field %}
{% endif %} {% if is_deepspeed_field %}
{% endif %} {% endif %} {% if custom_component == 'dataset_config_select' %} {% elif custom_component == 'prompt_library_path' %}
Libraries live under validation_prompt_libraries/
Selecting a saved library fills this path automatically. Custom paths let you point at JSON files managed outside SimpleTuner.
{% elif custom_component == 'merge_environment_toggle' %}
{{ field.checkbox_label|default(field.label) }}
{% if field.description and custom_component != 'prompt_library_path' %}

{{ field.description }}

{% endif %}
{% elif field_type == 'checkbox' %}
{{ field.checkbox_label|default('Enable') }}
{% elif field_type == 'select' %} {% elif field_type == 'multi_select' %} {% elif field_type == 'textarea' %} {% elif field_type == 'text_json' %} {% elif field_type == 'number' %} {% elif field_type == 'file' %} {% elif field_type == 'path' %}
{% else %} {% endif %} {% if field.description and field_type != 'checkbox' %}
{{ field.description }}
{% endif %}