Repository navigation
release/v1.22.0
Efficient Transformer Library - 1.22.0 Release Notes
Welcome to the official release of Efficient Transformer Library v1.22.0! This release rebases QEfficient onto Hugging Face Transformers 5.5.4. It adds several new model families (Qwen3-VL, Qwen3.5 / Qwen3.5-MoE, Gemma4, GLM-4-MoE, DeBERTa-v2, Wav2Vec2, BERT-family encoders, WAN 2.2 I2V), and brings major export, blocking-attention, layerwise, and disaggregated-serving improvements.
All features and models listed below are available on the
release/v1.22.0branch andmainline.
Newly Supported Models
-
Qwen3-VL (Dense + MoE)
- Executable via
QEFFAutoModelForImageTextToText - Continuous batching, multi-image prompts, layerwise export, disaggregated-serving examples
- Embedding and reranker variants supported via dedicated example scripts
- Qwen3-VL Examples
- Qwen3-VL-MoE Examples
- Qwen3-VL Embeddings
- Qwen3-VL Reranker
- Executable via
-
Qwen3.5 / Qwen3.5-MoE
- Executable via
QEFFAutoModelForCausalLMandQEFFAutoModelForImageTextToText - Disaggregated-serving (EPD), continuous batching, and layerwise export examples
- Qwen3.5 Examples
- Qwen3.5-MoE Examples
- Executable via
-
Gemma4 (Vision Language)
- Executable via
QEFFAutoModelForImageTextToText - Text + image support, distillation example (
gemma4_diss.py), default NPI configs for 26B-A4B / E2B / E4B - Gemma4 Example Script
- Executable via
-
GLM-4-MoE
- Executable via
QEFFAutoModelForCausalLM - Disaggregated-serving with chunked prefill
- GLM-4 Text Example
- GLM-4-MoE Disagg Example
- Executable via
-
DeBERTa-v2 (Sequence Classification)
- Executable via
QEFFAutoModelForSequenceClassification - Validated on
meta-llama/Llama-Prompt-Guard-2-22M(prompt-injection detection) - Sequence Classification Example
- Executable via
-
WAN 2.2 Image-to-Video (Diffusers)
- Executable via
QEffWanImageToVideoPipeline - Lightning LoRA fast 4-step inference, dual-stage high/low-noise transformers, 180p/480p/720p with attention blocking, VAE decoder onboarded
- WAN 2.2 I2V Examples
- Executable via
Key Features & Enhancements
- Framework Upgrade: Hugging Face Transformers
5.5.4(rebased from4.57.3); QEff modeling layer aligned with the new HF interfaces. Subfunction wiring for VLMs and CausalLMs unified during the rebase. - Python Support: Python
3.12added as the recommended interpreter; CPU torch / torchvision wheels shipped for 3.10 / 3.11 / 3.12 (requires-python = ">=3.8,<3.13"). - Diffusers / PEFT Upgrade: validated tag pins
diffusers==0.35.1andpeft==0.17.0; therelease/v1.22.0branch tip pins newer versions (see Compatibility). - Layerwise ONNX Export: New layerwise export path for very large MoE models with selective ONNX-pass gating to keep export tractable on memory-constrained hosts. Currently supported model types:
qwen3_vl_moe,qwen3_5_moe,qwen3_moe. - ONNX Subfunctions Across the Stack: Subfunction-based export extended to VLMs, Diffusers, Qwen2.5, and CausalLM compile coverage; multiple correctness fixes for subfunction MoE and torch-patch interactions.
- Causal Blocking / BlockedKV Attention: Opt-in via
qaic_config["enable_blocking"]; nested-loop optimization, automatic blocking-configurator hardening,skip_kvdefaults to on inside the blocking dataclass, batch-blocking and blocked-attention examples shipped. - First Block Caching for Diffusers: New infrastructure to skip redundant first-block recomputation for Flux and WAN.
- Named Graph Specializations:
specializations.jsonnow carries named specializations (Prefill / Decode / Vision / Encoder / Embedding) for clearer multi-graph compile flows. - Disaggregated Serving Expansion:
- CCL plumbed into both prefill and decode of disaggregated serving.
- Disagg mode added for Qwen3-MoE, Qwen3.5-MoE, Qwen3-VL, GLM-4-MoE, GPT-OSS (with chunking).
- General prefill-only-model fix and a GPT-OSS hotfix.
- CCL (Compute-Context-Length) Improvements: New blocking-aware CCL bugfixes, default-value fix in
infer.py, and a configuration-evaluation guide for choosing CCL lists. - VLM FP16 / BF16 Export & Compile: Added
fp16/bf16export and compile paths for VLMs; cleaned upcustom_iofor bf16; restored defaultFP16Cliptransform forQEFFAutoModel. - Large-Model ONNX Robustness:
SplitTensorsTransformnow wired intoQEFFAutoModelto avoid the >2 GB protobuf cap.- Proxy-only clip/split transforms enable exporting proxy models without polluting the live graph.
- Cloud
inferpath tightened to reduce Qwen3-MoE export OOM risk.
- RoPE Hardening:
- Layer-invariant RoPE indexing hoisted out of decoder subfunctions for cached text models.
- Single-subfunction-signature RoPE fix.
- RoPE dtype handled for
custom_dtype. - Targeted Qwen3-VL-MoE RoPE fix.
- MLA (Multi-head Latent Attention): Online/offline absorption fix, performance improvements, and Kimi-K2 minor fixes.
- On-Device Sampling Extension: Now enabled for
Qwen3ForCausalLM. - vLLM Vision Inputs:
num_cropsandvalid_sizeplumbed through from vLLM (Qwen2.5-VL multi-image path). - Compile-Pipeline Clean-up: Switched compile invocation from
qaic-exectoqaic-compile; removedcompile_onlyflag; deduplicatedmdp_json_pathargument. - AWQ / FP8 Hotfix: Repeat-KV-heads-aligned bias scaling for AWQ and FP8 models.
- GPT-OSS Numerics: Reduce-sum recomputed via
einsumfor stability. - Proxy Model Export: New entry point for exporting proxy models, plus large-model export robustness improvements.
Embedding Model Upgrades
- New
QEFFAutoModelForSequenceClassification(DeBERTa-v2 family) for classification tasks (sentiment, prompt-injection detection, content moderation). - BERT-family encoder coverage (BERT / RoBERTa / XLM-RoBERTa) via a shared QEff mixin.
- Dedicated Qwen3-VL embedding and reranker examples for multi-modal retrieval.
Fine-Tuning Support
- Multi-node Training: Multi-node DDP and PP+DDP support, with documentation.
- MDP Partition Config: Dump prioritized over load for a more deterministic partition flow.
- Dataset Hotfixes: Alpaca and grammar dataset utility fixes.
- Documentation: Multi-node fine-tuning docs added; general fine-tuning docs updated.
- CI: Fine-tuning CI is disabled in 1.22.0.
CI / Tooling
- New CPU-only pytest unit-test suite and a dedicated unit-test workflow.
- Dedicated nightly-CI pipeline split out from the regular pipeline.
- Dummy-model fixtures added to cut CI wall-clock time; broader CI test-time optimizations.
- Gemma3, Granite-MoE, Qwen3-MoE, Qwen2.5-VL CB, and InternVL CI coverage added or fixed.
- Default NPI files added for Gemma3 and other models; FP32 node configs shipped for Gemma3-4B / Gemma3-27B / Gemma4 / Whisper-Large-v3-Turbo / Qwen3-30B-A3B / Qwen2.5-VL-32B-AWQ.
Bug Fixes (highlights)
- Missing
kv_cache_buffer: runtime fix for the missing-buffer regression (#1082). - Qwen3-VL-Dense CB: continuous-batching consistency fix; example-script and modeling cleanup.
- Qwen2.5-VL CB: continuous-batching inconsistency fix; subfunction fix.
- Qwen3-MoE Export: OOM mitigation in
cloud.infer. - Qwen3-VL-MoE Accuracy: a WIP accuracy fix landed and was reverted on
release/v1.22.0; not validated for this release. - CausalLM Decode-only: decode-only flag handling clarified; PL=1 specialization naming fixed.
- Llama-4 Vision:
**kwargsadded toQEffLlama4VisionModel.forward()fortransformers5.5.4 compatibility. - Gemma3: sliding-window issue fixed; default NPI file landed.
- MoE + Subfunctions: one-hot fix for MoE-with-subfunction; torch-patch fix for VLM subfunctions.
- Disagg Serving: prefill-only model fix; GPT-OSS hotfix.
- Granite-MoE: regression fixed and added to CI.
- InternVL: removed deprecated
OpenGVLab/InternVL2_5-1BandOpenGVLab/InternVL3_5-1Bfrom defaults. - Embedding
QEFFAutoModel: restored defaultFP16Cliptransform.
Compatibility
This release rebases onto transformers==5.5.4. Downstream code that imports HF internals directly (e.g. private layer classes) may need to update import paths; QEff's pytorch_transforms already tracks the rename of Qwen2RMSNorm → Qwen2_5_VLRMSNorm in 5.5.4.
The two release artifacts pin different dependency sets:
- Branch
release/v1.22.0(full feature surface, includes the newest model wrappers):transformers==5.5.4diffusers==0.38.0huggingface-hub==1.7.1peft==0.19.1
Choose the artifact that matches the model surface and dependency profile you need; verify your environment matches the pip output of the artifact you install from.
ONNX subfunction wiring is unified across CausalLMs and VLMs; if you previously consumed pre-rebase subfunction artifacts, regenerate them with this release.
How to Install
git clone https://github.com/quic/efficient-transformers.git
cd efficient-transformers
git checkout release/v1.22.0 # or: git checkout 1.22.0
pip install -e .