docs(examples): aLora/102_example.py fails with AloraActivationError (stembolts io.yaml has no instruction)
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python, yaml
- Ambito
- ai, documentation
Direzione di ricerca
Start with docs/examples/aLora/io.yaml and docs/examples/aLora/README.md; compare the custom adapter flow with a catalog adapter that declares an instruction: field. The issue reports that adding the specified invocation sequence makes docs/examples/aLora/102_example.py run; verify the example with the provided command and ensure the README train and upload flow produces an activatable adapter. The issue also raises broader training and upload behavior questions, so confirm the intended scope before changing those paths.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Following the aLoRA README, docs/examples/aLora/102_example.py fails on main with:
AloraActivationError: aLoRA 'stembolts' (base model 'granite-3.3-2b-instruct', qualified
name 'stembolts_alora') never activates for this call: its declared invocation sequence
(49152, 1553, 81, 34775, 49153) is absent from the assembled prompt
The example is skip-marked, so CI never runs it. It is the only example of a custom, non-catalog aLoRA adapter, and docs/examples/aLora/README.md currently describes stembolts_intrinsic.py (the helper it drives) as a runnable version.
Cause
The stembolts io.yaml has no instruction: field. The aLoRA's alora_invocation_tokens decode to <|start_of_role|>check_requirement<|end_of_role|>, which therefore never reaches the prompt, so the activation guard added in #1684 correctly refuses to run it. Catalog adapters get the sequence from an instruction: field in their io.yaml (for example requirement-check).
docs/examples/aLora/io.yaml is byte-identical to the one on nfulton/stembolts, and m alora train defaults its invocation prompt to the same <|start_of_role|>check_requirement<|end_of_role|>. So the README's own train and upload flow produces an adapter that cannot activate.
Evidence
With this added to a copy of the cached io.yaml:
instruction: |-
<|start_of_role|>check_requirement<|end_of_role|>
the example runs and returns {"defective_part": "Piston Rings", "diag_likelihood": 0.9, ...}. Without it, the error above, identically at the PR #1765 head and on current main (972fa646c).
Reproduce (needs uv sync --extra hf):
printf 'The engine sputters at high RPM after sitting overnight.\nOil seepage around the piston rings.\n' \
| uv run python docs/examples/aLora/102_example.py
To decide
- Add the
instruction:field todocs/examples/aLora/io.yamland the README flow. - Update
nfulton/stemboltson Hugging Face (not something a PR here can change). - Whether
m alora trainorm alora upload --io-yamlshould add the field automatically, so users training their own adapter don't hit this. - Whether the example should be un-skipped or covered by a test once it works.
Found while reviewing #1765.
- 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