Repository navigation
Serve IRON models through a FastFlowLM plugin - #261
Conversation
e1591cf to
4d9af30
Compare
There was a problem hiding this comment.
🟡 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
4d9af30 to
0aac7e4
Compare
There was a problem hiding this comment.
🟡 Changes recommended
An oversized unsupported task is echoed into an error header, exceeding the worker’s limit and leaving it unusable for valid embedding requests until the model is reloaded.
3 open issues
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved issues can overwrite the configured model path, leave timed-out builds running and holding locks, and build the wrong revision after switching commit pins.
3 open issues
3 resolved since last review
Review effort: Balanced
ml_dtypes 0.7.0 changes float64-to-bfloat16 rounding, changing generated test inputs and invalidating the committed golden data. Keep 0.6.0 until the reference fixtures are deliberately updated.

Serve IRON models through FastFlowLM using a native plugin built and shipped by IRON. Llama reuses FastFlowLM's frontend, tokenizer, and sampler; EmbeddingGemma-2 uses IRON's text processor. The plugin communicates with the IRON server through a versioned pipe protocol.
Added
iron/applications/fastflowlm_iron.Changed
make flmbuilds FastFlowLM and then builds the IRON-owned plugin against its installed extension SDK. FastFlowLM needs only the generic plugin interfaces.69f691b58c30effdd29fa263839054b545d8ecc7, which includes the merged embedding extension interface (Add support for embedding models to model extension mechanism ROCm/FastFlowLM#1005).Validation
The existing IRON application CI runs the integration tests on NPU2. It needs
config.json,model.safetensors,tokenizer.json, andtokenizer_config.jsonin both/srv/fastflowlm/models/llama3.2-1b-instruct/and/srv/embeddinggemma-2/(shared with the standalone tests).