Skip to content

neuronx-cc compile --help crashes with "unsupported format character" #1394

Description

@dadmobile

Describe the bug

The compiler's help text cannot be displayed:

$ neuronx-cc compile --help
unsupported format character ' ' (0x20) at index 661

Diagnostic information:
  NeuronX Compiler version 2.27.5334.0+f702b353
  Python version 3.12.3

A % in one of the help strings is being interpreted as a printf-style format
specifier. Index 661 puts it inside the option descriptions.

Model Name

Not model specific.

Describe the workload type

No workload specific.

Instance Type

trn2.48xlarge (not instance-specific)

Release version

neuronx-cc     2.27.5334.0+f702b353
Python         3.12.3

Reproduction Steps

neuronx-cc compile --help

Regression Issue

  • Select this option if this issue appears to be a regression.

Possible Solution

Escape the % as %% in the affected help string, or switch that string to a
non-percent formatter.

Logs/Context/Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Trn2bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions