Conversation
Add a PhiMoE adapter and fixed GPU expert slots backed by a normalized host bank. Keep AirLLM's immediate per-expert streaming behavior as the default and expose the slot runtime only through explicit opt-in. Include CPU/ROCm coverage and a reproducible benchmark.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a FreeToken-inspired, opt-in fixed-slot GPU expert-streaming runtime, initially supporting PhiMoE.
On an AMD Radeon RX 6400, generation improved from 366.74 seconds to 2.64 seconds—approximately 139× faster—with identical token IDs. This is an independent AirLLM implementation; no FreeToken code is reused.
The runtime:
Usage
The slot backend is currently supported by the new PhiMoE adapter and requires a CUDA- or ROCm-compatible device.
Changes
Validation
Benchmarked with Microsoft Phi-tiny-MoE-instruct at revision
2fe50e8.Test system
gfx1034, 4 GiB VRAM)2.12.0+rocm7.14.0float16Resource usage
Generation improved from 366.74 seconds to 2.64 seconds—approximately 139× faster—while producing identical token IDs.
The final smoke test generated 8 tokens in 2.73 seconds at 2.93 tokens/second. The ROCm suite discovered 37 tests: 36 passed and one optional BitsAndBytes test was skipped.