Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Fails to run due to transformer_engine.pytorch StopIteration error #167

@Fritingo

Description

@Fritingo

Issue Description

When trying to run examples.text2image, the script fails with a StopIteration error related to transformer_engine.pytorch. It seems that the shared library for Transformer Engine is not found or loaded properly.

python -m examples.text2image \
    --prompt "${PROMPT_}" \
    --model_size 2B \
    --save_path output/text2image_2b.jpg

It seems transformer_engine cannot find the required .so file for the PyTorch extension. Even though transformer-engine[pytorch] was installed via uv pip, the shared object library is missing.

Traceback (most recent call last):
  File ".../transformer_engine/pytorch/__init__.py", line 52, in _load_library
    so_path = next(so_dir.glob(f"{module_name}.*.{extension}"))
StopIteration
...
  File ".../transformer_engine/pytorch/__init__.py", line 55, in _load_library
    so_path = next(so_dir.glob(f"{module_name}.*.{extension}"))
StopIteration

System Information

Metadata

Metadata

Assignees

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