[Engine] strata serve only treats an engine as Inkling when the exe basename starts with strata-inkling (behind a wrapper every reply ends with finish_reason "length")
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en terminal/serve/server.py:765, donde self.inkling_engine se establece desde inkling_kind.is_inkling_exe(exe), luego lee inkling_kind.py para comparar is_inkling_exe con is_inkling(cfg) (arch inkling2_loop o referencia de componente). Sigue el flag hasta la configuración de stop-id alrededor de server.py:4142-4147 y la comprobación Hy4 que la refleja. Reproduce con un perfil wrapper exe.sh y una solicitud de chat con max_tokens: 200; hecho significa que finish_reason es stop a través del wrapper, sin regresión para exes nombrados directamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Area: serve (Inkling-2-Mini)
Version: found on 0.1.65 / main 26350e43, still present on main 6a6db7ff
Hardware: Intel Arc Pro B60 (SYCL), but the check is backend-independent
What happens
If the profile's exe points to a wrapper script (for example exe.sh, which sets env vars and then runs strata-inkling), the server does not recognise the engine as Inkling-2-Mini:
- the Inkling end token
<|content_model_end_sampling|>is not added to the stop ids, so every reply runs tomax_tokensand ends withfinish_reason: "length". Agent clients (we used pi) then refuse the tool calls in the reply; - Inkling's sampling keys and channel tags are not applied either.
The engine itself works fine: the same wrapper renamed to strata-inkling-b60 gives finish_reason: "stop" and normal tool calls.
Why
terminal/serve/server.py:765 sets self.inkling_engine = inkling_kind.is_inkling_exe(exe), which only looks at the basename prefix (inkling_kind.py:35, EXE_PREFIX = "strata-inkling"). The stop ids (server.py:4142-4147) follow from that flag. inkling_kind.is_inkling(cfg) already accepts cfg["arch"] == "inkling2_loop" or the component reference, but server.py does not use it.
Repro
- Profile for Inkling-2-Mini with
"exe": "/path/to/exe.sh", whereexe.shis#!/bin/sh\nexec /path/to/strata-inkling "$@". strata serve, send any chat request withmax_tokens: 200.- Actual: the reply always ends at 200 tokens with
finish_reason: "length". Expected:"stop"at the end token.
Suggested fix
Decide with the config as well, e.g. pass the profile cfg to the engine wrapper and use inkling_kind.is_inkling(cfg) or inkling_kind.is_inkling_exe(exe) at server.py:765 (the same for the Hy4 check), or log a warning when the model arch is inkling2_loop but the exe name does not match. Not tested.
- Lenguaje dominante
- C++
- Estrellas
- 11.6k
- Forks
- 1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Niko1221/Strata
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Niko1221/Strata#7211 · 3 comentarios ·
Los mantenedores suelen responder en 5 días
-
Strata Web Dashboard GPU widgetAbiertoneeds-format
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Niko1221/Strata#7039 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Niko1221/Strata#7018 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Niko1221/Strata#7014 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
needs-format
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Niko1221/Strata#6934 · 1 comentario ·
Los mantenedores suelen responder en 5 días
Todos los issues de Niko1221/Strata
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 2 días
-
Missing repro Platform: Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
software-mansion/react-native-reanimated#11554 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sleepyviper1213/redis#52 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día