Skip to content

reportgen crashes with AttributeError: 'Namespace' object has no attribute 'file' #367

@Victor-SongZhh

Description

@Victor-SongZhh

Version

Commit 39e657d (PR #359: "Bug fixes and performance enhancements: object storage, checkpointing, Parquet loading")

Description

mlpstorage reports reportgen crashes immediately because the CLI parser unconditionally accesses parsed_args.file and parsed_args.object, which only exist on subcommands that define the --file / --object flags (e.g., training run, checkpointing run). The reports reportgen subcommand does not define these flags.

Reproduction

# 1. Run any checkpointing benchmark to produce results
mlpstorage checkpointing run --model llama3-8b \
  --closed --hosts localhost --num-processes 1 \
  --checkpoint-folder /tmp/ckpt-test \
  --results-dir /tmp/ckpt-results \
  --client-host-memory-in-gb 768 --file

# 2. Run reportgen — crashes
(mlpstorage) ubuntu@ip-172-31-24-76:~/storage$ mlpstorage reports reportgen --file --results-dir /mnt/nvme/ckpt-results
usage: mlpstorage [-h] [--version] {training,checkpointing,vectordb,kvcache,reports,history,lockfile} ...
mlpstorage: error: unrecognized arguments: --file
(mlpstorage) ubuntu@ip-172-31-24-76:~/storage$ mlpstorage reports reportgen --results-dir /mnt/nvme/ckpt-results
2026-05-09 12:24:00|ERROR: Unexpected error: 'Namespace' object has no attribute 'file'
2026-05-09 12:24:00|ERROR: An internal error occurred: 'Namespace' object has no attribute 'file'
This is likely a bug in MLPerf Storage.
Please report this issue at:
  https://github.com/mlcommons/storage/issues
Include the full error message and stack trace.
2026-05-09 12:24:00|INFO: Run with --debug for full stack trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions