[Control] tune run --mode api --hold <size> renders the literal "None" into the worker command line, engine exits with code 2

Abierto Apto para principiantes
#7,719 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend, cli

Línea de trabajo

Empieza por tuning.py:770-800 y sigue cómo las dimensiones retenidas llegan a _args_for() en tuning.py:604-622. Reproduce el problema con tune run --mode api --hold <size> en la versión del motor indicada y luego comprueba que los valores retenidos ya no se muestran como el literal None y que se puede medir la línea base.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

needs-format

Environment. Control checkout run with Python 3.12.10 on Windows 11, engine 0.1.60. Reproduced twice: a sweep with --hold kv --hold vram_reserve --hold spec_min_p --hold ple_io, and again without --hold.

Symptom. The measured worker exits before it becomes ready:

EngineDied: the engine exited before it was ready … exit code 2
strata generate: invalid --ple-io/--ple-row-cache/--ple-inflight/--ple-delay-us

The worker command line contains --kv None --ple-io None --spec-min-p None --vram-reserve-mib None.

Cause (from the source). tuning.py:770-800 builds fixed = {d.id: … None} for held dimensions (tuning.py:786), and _args_for() (tuning.py:604-622) then re-renders args[flag] = str(value) — so None becomes the string "None". Engine 0.1.60 rejects that in argument validation, and every trial (including the baseline) is UNMEASURED: baseline could not be measured, trials 0 of 16.

Why it matters. Held dimensions are exactly the ones the user wants untouched, so the flag that protects them makes the whole sweep measure nothing. On an older engine (0.1.72) the same sweep passed with None accepted, which hides the bug.

Workaround we use. Drop --hold entirely: the sweep only measures and tune apply is never run, so the protected settings are safe anyway.

Suggested fix. Skip held dimensions when rendering arguments (or keep their original value from the launch config instead of None), and report the malformed command line in the job status rather than only the worker exited with code 1 before becoming ready.

Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Merge medio
6 d 2 h
PR fusionados (30 d)
21

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.