Skip to content

demo: allow overriding the model repo via LFM_HF_REPO env var - #32

Open
abePclWaseda wants to merge 1 commit into
Liquid4All:mainfrom
abePclWaseda:demo-model-env-override
Open

demo: allow overriding the model repo via LFM_HF_REPO env var#32
abePclWaseda wants to merge 1 commit into
Liquid4All:mainfrom
abePclWaseda:demo-model-env-override

Conversation

@abePclWaseda

@abePclWaseda abePclWaseda commented Jun 10, 2026

Copy link
Copy Markdown

Motivation

The Gradio demo hardcodes HF_DIR = "LiquidAI/LFM2.5-Audio-1.5B", so there is currently no way to run liquid-audio-demo with another checkpoint — most notably the recently released Japanese model LiquidAI/LFM2.5-Audio-1.5B-JP — without editing the installed package.

Changes

  • demo/model.py: read the repo id from the LFM_HF_REPO environment variable, keeping LiquidAI/LFM2.5-Audio-1.5B as the default (no behavior change for existing users):
    LFM_HF_REPO=LiquidAI/LFM2.5-Audio-1.5B-JP liquid-audio-demo
  • README.md: document the variable in the Gradio demo section.

Testing

  • Ran the demo with LFM_HF_REPO=LiquidAI/LFM2.5-Audio-1.5B-JP on an A100 (torch 2.5.1, transformers 4.55.4) and had a Japanese speech-to-speech conversation; without the variable the demo loads the default English checkpoint as before.
  • ruff check / ruff format --check pass.

The Gradio demo hardcodes LiquidAI/LFM2.5-Audio-1.5B, so there is no way
to try other checkpoints such as LFM2.5-Audio-1.5B-JP without editing
the installed package. Read the repo id from the LFM_HF_REPO environment
variable, keeping the current default.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant