bug: m alora add-readme accepts --io-yaml but never uses it

Đang mở
#1,860 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/alora area/cli bug p2
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.

  1. In cli/alora/commands.py, look at alora_add_readme: io_yaml is in the signature and the docstring and nowhere else.
  2. grep -n io_yaml cli/alora/readme_generator.py finds nothing.
  3. 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 to generate_readme do 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:

  1. Remove the option, and update docs/examples/aLora/README.md. This is the smallest change, but a script that passes --io-yaml would start failing with "No such option".
  2. 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.
  3. 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 on io.yaml.
Ngôn ngữ chính
Python
Star
1.8k
Fork
161
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của generative-computing/mellea

Tất cả issue của generative-computing/mellea

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.