Intrinsic generation path drops a caller's explicit adapter_types
I maintainer di solito rispondono entro 3 giorni
@ajbozarth ci sta già lavorando.
Dal 19/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
On the LocalHF Intrinsic generation path, an explicit Intrinsic.adapter_types is silently ignored — a caller who asks for (ALORA,) is served whatever the resolution walk registered, with no error and no warning. Before #1654 that path filtered by the caller's types and raised when unsatisfiable. Should the Intrinsic path honor a caller's explicit adapter_types again, and if so how?
Today (on the #1654 branch)
_generate_from_intrinsiclooks the adapter up by name only:_find_adapter(action.intrinsic_name, None)(huggingface.py), with a comment thatNoneis deliberate so a weightless prompt winner (type"prompt", never in a caller's tuple) isn't filtered out.- Registration is name-only too:
resolve_adapter(name)runs the walk and registers one winner, never seeing the caller's types. - So the caller's
adapter_typesreaches neither resolution nor generation on this path. Onmainthe same path filtered byaction.adapter_typesand raisedbackend has no adapter for processing intrinsicwhen unsatisfiable (OpenAI/Ollama still do this).
Why this happens (and why it's not a localized bug)
The path drops the type filter on purpose to keep the prompt winner reachable; losing the caller's restriction is the side effect. It is not merge drift and was not an articulated decision — #1654's PR body documents only the aLoRA-auto-select behavior change, not this one.
How reachable is it today
Narrow, which bears on urgency:
call_intrinsic(thecore.*/rag.*helpers) does not exposeadapter_typesat all — it hardcodes(ALORA, LORA), which is itself vestigial on HF.- A direct
Intrinsic(name, adapter_types=...)viaact()does not auto-resolve; it requires prior registration via a separate name-onlyresolve_adapter/add_adapter, which already ignores the types. - The reroute path (
ALoraRequirement) does honor explicit types (_find_adapter(name, search_types)), so the real "I want a specific type" use case has a working channel there.
So the regression is a silent drop on a path where the capability is barely expressible, not a loudly-broken common path.
The decision
- Should an explicit caller
adapter_typesbe honored on the Intrinsic path? If yes, it means teaching resolution (not just the generation lookup) about the caller's types — threadingallowed_typesthroughresolve_adapterand the walk (so the winner is chosen within the allowed set), and exposingadapter_typesoncall_intrinsicand the public helpers. Filtering only at the generation lookup does not work: the walk has already committed to a winner by its own order, so a conflicting restriction would raise a false "no adapter" even when a satisfying adapter exists on the Hub. - If not honored, at minimum make it non-silent — warn when a direct
Intrinsiccarries an explicitadapter_typesthe resolved winner doesn't satisfy. - How does the prompt realization fit a caller restriction — append-prompt as a universal fallback, or strict "these types or fail"?
Relationship to the sibling issue
This is one of two places where the pre-prompt, adapter_type-keyed selection model struggles with the typeless prompt realization. This issue is the generation-path side: it doesn't filter (passes None) so the prompt stays reachable, at the cost of the caller's restriction. The sibling (#1749) is the gate side: it filters (("alora",)), so it loses the prompt. Same root incompatibility, opposite symptom. They are independent fixes but share the underlying design question (how a typeless realization participates in type-keyed selection), so they may be worth resolving together in one PR.
Scope
LocalHF. OpenAI/Ollama currently honor caller types (pre-#1654 model) and are a separate follow-up (#1748); the model chosen here is what they'd be aligned to.
Related
- #1654 — introduces the behavior.
- #993 — the prompt-fallback feature (closed by #1654).
- Sibling: reroute-gap (#1749).
Code
_generate_from_intrinsic (huggingface.py); resolve_adapter + the walk (adapter.py); call_intrinsic (mellea/stdlib/components/intrinsic/_util.py); _find_adapter (adapter.py, type-filtered lookup).
- Lingua principale
- Python
- Stelle
- 1.8k
- Fork
- 161
- Merge medio
- 4g 3h
- PR unite (30g)
- 45
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
generative-computing/mellea#1864 ·
I maintainer di solito rispondono entro 3 giorni
-
bug: instruct() and react() replay tool-call turns without tool_callsForse già presa @simonyang08 l’ha presa 21 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
generative-computing/mellea#1784 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesForse già presa @madhusudhan1260 l’ha presa 18 giorni fa. Apertagood first issue p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
generative-computing/mellea#1780 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
area/telemetry enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
generative-computing/mellea#1210 ·
I maintainer di solito rispondono entro 3 giorni
-
Add requirement priorityApertaarea/requirement area/stdlib enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
generative-computing/mellea#31 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di generative-computing/mellea
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Maintainer] task area:visualizer
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
RailtownAI/railtracks#1824 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
apache/datafusion#27688 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
heasarc/heasarc-tutorials#317 ·
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
mloda-ai/mloda-registry#1664 ·
I maintainer di solito rispondono entro 1 giorno