bug: m alora add-readme accepts --io-yaml but never uses it
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read alora_add_readme in cli/alora/commands.py and the generate_readme() and make_readme_jinja_dict() entry points in cli/alora/readme_generator.py; compare their behavior with upload_intrinsic and the examples in docs/examples/aLora/README.md. Decide whether to remove, deprecate, or implement --io-yaml, since the issue lists these options but says the generator has no current dependency on the file. Done when the chosen behavior is consistent in the CLI, generated README, and documentation.
由索引模型根据 Issue 内容生成。
描述
What happened?
m alora add-readme declares --io-yaml and documents it, but never reads the value.
In cli/alora/commands.py, io_yaml appears in alora_add_readme only in the option declaration and in the docstring. generate_readme() and make_readme_jinja_dict() in cli/alora/readme_generator.py have no parameter for it. A path that does not exist is accepted without an error, and the generated README is the same with or without the flag.
The docs tell users to pass it. docs/examples/aLora/README.md shows m alora add-readme --name ... --io-yaml io.yaml ... in two examples, and the generated CLI reference lists the option as [--io-yaml].
io.yaml is consumed by m alora upload --intrinsic (upload_intrinsic), which copies it into the repository. add-readme only documents an adapter that was already uploaded.
What did you expect to happen?
Either --io-yaml changes what add-readme does, or add-readme does not accept it.
How can we reproduce it?
No model or Hugging Face access is needed.
- In
cli/alora/commands.py, look atalora_add_readme:io_yamlis in the signature and the docstring and nowhere else. grep -n io_yaml cli/alora/readme_generator.pyfinds nothing.- With the LLM and Hub calls stubbed out, run
m alora add-readme data.jsonl --basemodel ibm-granite/granite-4.1-3b --name acme/stembolts --io-yaml /definitely/not/here.yaml. It exits 0, and the arguments passed on togenerate_readmedo not include the path.
Mellea version
main (0.10.0.dev0).
Any environmental details we need to know?
Not environment-specific.
Anything else we need to know?
Raised as a side note in #1620, where it was suggested that it be tracked separately. It is unrelated to the repository-layout problem in that issue.
Some ways to resolve it, with their costs:
- Remove the option, and update
docs/examples/aLora/README.md. This is the smallest change, but a script that passes--io-yamlwould start failing with "No such option". - Deprecate it. Keep accepting the option, warn that it is ignored, and remove it in a later release. This avoids breaking scripts at the cost of a release cycle.
- Make it do something. For example, give the README generator the output contract in
io.yaml(response_format) so the description of the adapter's output matches the real schema, and fail early if the path does not exist. This needs a design decision, because nothing in the generated README currently depends onio.yaml.
- 主要语言
- Python
- 星标
- 1.8k
- 派生
- 161
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 45
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
generative-computing/mellea 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
generative-computing/mellea#1864 ·
维护者通常 3 天内回复
-
bug: instruct() and react() replay tool-call turns without tool_calls可能已有人在做 @simonyang08 于 21 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
generative-computing/mellea#1784 · 1 条评论 ·
维护者通常 3 天内回复
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examples可能已有人在做 @madhusudhan1260 于 18 天前认领。 未关闭good first issue p2
难度 2/5 1-3 小时 新手友好度 82/100
generative-computing/mellea#1780 · 2 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
area/telemetry enhancement p2
难度 2/5 1-3 小时 新手友好度 66/100
generative-computing/mellea#1210 ·
维护者通常 3 天内回复
-
area/requirement area/stdlib enhancement p2
难度 2/5 1-3 小时 新手友好度 62/100
generative-computing/mellea#31 · 2 条评论 ·
维护者通常 3 天内回复
查看 generative-computing/mellea 的全部 Issue
相似的 Issue
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shards未关闭status/accepted type/bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug vector-store
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
EverMind-AI/Raven#1413 ·
维护者通常 1 天内回复
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
维护者通常 2 天内回复