Skip to content

FastFlowLM Integration for Models - #261

Open
andrej wants to merge 16 commits into
amd:develfrom
andrej:fastflowlm-explicit-compile
Open

andrej wants to merge 16 commits into
amd:develfrom
andrej:fastflowlm-explicit-compile

Conversation

@andrej

@andrej andrej commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Adds some small infrastructure (lm_server.py) as well as an example application (applications/fastflowlm_iron) that enable and demonstrate calling IRON model implementations from within the FastFlowLM flm command-line interface.

This is implemented as a small server application (lm_server.py) that spawns the model (jit compiled on first call) and handles request from the flm engine.

Includes an end-to-end test that builds FastFlowLM with the IRON backend enabled and makes sure a simple request to Llama 3.2 1B produces tokens. Other models are already tested on their own, so this only tests integration with FastFlowLM based on one model.

Currently, for this, we are pinning a fork/branch of FastFlowLM that includes the IRON backend; once the backend gets merged upstream, we can update this.

@andrej
andrej marked this pull request as ready for review October 30, 2026 19:48
@andrej
andrej force-pushed the fastflowlm-explicit-compile branch from e1591cf to 4d9af30 Compare October 30, 2026 20:11
@andrej
andrej requested a balanced review from Copilot October 30, 2026 21:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The registered embedding_gemma2_multimodal model fails to load through the server because its inherited checkpoint loader accesses a missing class-level configuration, causing an AttributeError.

1 open issue
What changed in this PR

This PR connects IRON models to FastFlowLM’s command-line interface through a binary-protocol server and an example integration pinned to a FastFlowLM fork.

Changes:

  • Adds model registration and server commands for loading, logits, reset, and embeddings.
  • Provides build instructions and tooling for FastFlowLM’s IRON backend.
  • Adds protocol tests, an NPU2 end-to-end chat test, and a required container dependency.
File Description
tests/​applications/​fastflowlm_iron/​test.py Tests a Llama chat request through FastFlowLM on NPU2.
iron/​tests/​test_lm_server.py Tests registration, protocol exchanges, capability negotiation, and diagnostic isolation.
iron/​lm_server.py Implements the binary-protocol model server.
iron/​applications/​fastflowlm_iron/​README.md Documents setup, usage, and integration-test weights.
iron/​applications/​fastflowlm_iron/​Makefile Builds the pinned FastFlowLM fork with IRON support.
iron/​applications/​__init__.py Adds lazy model-class lookup through a registry.
ci/​docker-based/​Dockerfile Adds the libedit-dev build dependency.

Review effort: Balanced

Comment on lines +13 to +16
"embedding_gemma2_multimodal": (
"iron.applications.embedding_gemma2",
"Multimodal",
),

This branch has not been deployed

No deployments
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.

2 participants