Skip to content

fix: use the public bmf.hmp Python namespace in llm_caption demo - #218

Merged
HuHeng merged 1 commit into
BabitMF:masterfrom
eefengwei:fix/hmp-namespace
Aug 11, 2026
Merged

fix: use the public bmf.hmp Python namespace in llm_caption demo#218
HuHeng merged 1 commit into
BabitMF:masterfrom
eefengwei:fix/hmp-namespace

Conversation

@eefengwei

Copy link
Copy Markdown

What

The llm_caption demo imports bmf.hml.hmp, which is a stale reference to the old HML namespace. That namespace was renamed to HMP (commit f087e0d) and is not included in the Python distribution, so the import fails at runtime.

Change

-import bmf.hml.hmp as mp
+import bmf.hmp as mp

bmf.hmp is the packaged, public module (declared in setup.py and re-exported by bmf/__init__.py), and is what every other demo/test already uses.

Verification

  • python3 -m py_compile bmf/demo/llm_caption/llm_caption.py
  • git grep -i 'bmf.hml.hmp' — 0 remaining references in the repo

The HML package namespace was renamed to HMP and is not included in the Python distribution. Update the LLM caption demo to import the packaged module.
@HuHeng
HuHeng merged commit f40e53b into BabitMF:master Aug 11, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants