Skip to content

release/v1.22.0

Choose a tag to compare

@quic-rishinr quic-rishinr released this 18 Jun 12:03
· 136 commits to main since this release
2a85273

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.0 branch and mainline.


Newly Supported Models


Key Features & Enhancements

  • Framework Upgrade: Hugging Face Transformers 5.5.4 (rebased from 4.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.12 added 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.1 and peft==0.17.0; the release/v1.22.0 branch 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_kv defaults 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.json now 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 / bf16 export and compile paths for VLMs; cleaned up custom_io for bf16; restored default FP16Clip transform for QEFFAutoModel.
  • Large-Model ONNX Robustness:
    • SplitTensorsTransform now wired into QEFFAutoModel to avoid the >2 GB protobuf cap.
    • Proxy-only clip/split transforms enable exporting proxy models without polluting the live graph.
    • Cloud infer path 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_crops and valid_size plumbed through from vLLM (Qwen2.5-VL multi-image path).
  • Compile-Pipeline Clean-up: Switched compile invocation from qaic-exec to qaic-compile; removed compile_only flag; deduplicated mdp_json_path argument.
  • AWQ / FP8 Hotfix: Repeat-KV-heads-aligned bias scaling for AWQ and FP8 models.
  • GPT-OSS Numerics: Reduce-sum recomputed via einsum for 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: **kwargs added to QEffLlama4VisionModel.forward() for transformers 5.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-1B and OpenGVLab/InternVL3_5-1B from defaults.
  • Embedding QEFFAutoModel: restored default FP16Clip transform.

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.4
    • diffusers==0.38.0
    • huggingface-hub==1.7.1
    • peft==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 .