Updated example file for ai200 runs#1127
Open
asmigosw wants to merge 3 commits into
Open
Conversation
…untime/test plumbing.
- Reworked ReplicateKVHeadTransform into a mutator-style flow with strict config validation, idempotent re-apply
handling, and encoder-wrapper skip (EncoderWrapper class-name guard).
- Replaced KV projection duplication branching with internal factory dispatch (repeat_kv_projection_dispatch.py) and
routed all duplication through shared repeat_kv_utils.
- Added shared config utilities/constants to resolve head/hidden keys across model families and compute/apply
num_replicate_kv_heads.
- Plumbed num_replicate_kv_heads through auto-model wrappers/export paths for CausalLM and ImageTextToText.
- Updated tests/helpers for RepeatKV coverage (causal + image-text paths, plus fast unit checks), and renamed example/
docs QAIC knob from num_kv_heads_repeat to num_replicate_kv_heads.
Signed-off-by: Dhiraj Kumar Sah <dhirajku@qti.qualcomm.com>
Signed-off-by: Asmita Goswami <asmigosw@qti.qualcomm.com>
Signed-off-by: Asmita Goswami <asmigosw@qti.qualcomm.com>
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.
Overview
Adds a production-ready example demonstrating MiniMax-M3 VLM decode-only inference on AI200 servers with replicate KV-head optimization.
What's Updated
📄 Files
examples/text_generation/minimax_m3_decode_only.py- Main inference scriptexamples/text_generation/README_MINIMAX_M3_AI200.md- Comprehensive documentation✨ Key Features
num_replicate_kv_heads: 8) for AI200 hardwareUsage
Quick Start
Replicate KV-Head Configuration