design(adapters): callers cannot tell which adapter reality produced a score, and sampling depends on it
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Read the existing backend.resolve_adapter(name).weights.binding_type route and the ValidationResult fields described in the issue; inspect how mot.generation carries metadata. Compare the three proposed approaches and review #1654 and #1679 for context. Done means the discussion settles on how callers and sampling strategies can identify the route behind a result, with the existing route documented at minimum.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens today
core.check_certainty(...) hands you back 0.83. core.requirement_check(...) hands you back a float.
Requirement.validate() hands you back a ValidationResult. In each case the value looks the same
whether it came from an aLoRA adapter, a LoRA adapter, a hand-written prompt run against the base model,
or LLM-as-a-judge.
There is no way to ask, for a given result, which of those produced it. ValidationResult carries
result, reason, score, thunk, context and error. The thunk field is populated on every
path, so it cannot be used to tell them apart either, and its docstring still describes it as the output
"produced during LLM-as-a-Judge validation", which stopped being true when requirement rerouting landed.
Why that is a problem
The mechanism behind a score used to be fixed for a given setup. Three changes make it variable:
- prompt fallback adds a weightless path that runs the capability's instruction against the base model,
chosen automatically when no trained adapter exists for the target model (#1654), - availability-aware resolution can pick a different trained rung depending on the model (#1654),
- requirement validation reroutes to an adapter whenever one is registered, and registration now happens
as a side effect of any adapter-function call.
Mellea's own sampling strategies consume these scores to decide whether to accept a candidate, repair it,
or try again. So a rejection-sampling loop can start making different decisions because the evidence
behind its verdicts changed, and neither the user nor the loop can see that happen. Anyone using these
scores as a gate in a pipeline has the same problem, with the added wrinkle that a prompt-backed score is
weaker than one from trained weights.
How it should behave
A caller who needs to know should be able to ask, per result, which reality produced it. Sampling
strategies should be able to record it. At minimum, the existing route should be documented.
What already exists
backend.resolve_adapter(name).weights.binding_type returns local_file, embedded, server_mediated
or prompt. It is public and works today. It answers "what is registered right now" rather than "what
produced this result", and it is not mentioned anywhere in the docs.
Telemetry has the right information already: the adapter_function_invocation_complete hook payload
carries binding_type and revision. That needs the hooks extra plus a registered plugin, so it serves
operators rather than application code.
Detail: possible shapes
- Document the
resolve_adapter(...).weights.binding_typeroute. Cheapest first step, and it could land
alongside the prompt-fallback documentation. - Record the binding type, and ideally the resolved revision, on the result metadata. There is an
established home for this:mot.generationalready carriesmodel,providerandusage. - Give
ValidationResultan explicit provenance field so sampling strategies can log or branch on it,
and correct thethunkdocstring while we are there.
Options 2 and 3 touch surfaces shared across every backend, which is why this is filed for discussion
rather than bolted onto the PR that exposed it.
Related
Found while reviewing #1654, which introduces the weightless prompt reality. A worked example of the
mechanism behind a score changing without any signal is #1679.
- Lenguaje dominante
- Python
- Estrellas
- 1.8k
- Forks
- 161
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 45
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
generative-computing/mellea#1864 ·
Los mantenedores suelen responder en 3 días
-
bug: instruct() and react() replay tool-call turns without tool_callsPosiblemente ocupada @simonyang08 la tomó hace 21 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
generative-computing/mellea#1784 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesPosiblemente ocupada @madhusudhan1260 la tomó hace 18 días. Abiertogood first issue p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
generative-computing/mellea#1780 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
area/telemetry enhancement p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
generative-computing/mellea#1210 ·
Los mantenedores suelen responder en 3 días
-
Add requirement priorityAbiertoarea/requirement area/stdlib enhancement p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
generative-computing/mellea#31 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de generative-computing/mellea
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
OpenFreeEnergy/openfe#2371 ·
Los mantenedores suelen responder en 2 días
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
NCATSTranslator/Babel#1269 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
404 on sample dataAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100