Skip to content

Releases

release/v1.23.0

Choose a tag to compare

@quic-rishinr quic-rishinr released this 19 Sep 09:31
90f37b9

Efficient Transformer Library - 1.23.0 Release Notes

Efficient Transformer Library v1.23.0 adds DFlash speculative decoding, weight-free ONNX export for CausalLM models, and a more efficient KV-cache handoff for disaggregated serving. It also brings a set of blocking, MoE, ONNX export, VLM, and CI improvements.

These changes are available on the release/v1.23.0.0 branch and mainline.


Highlights

  • DFlash speculative decoding adds a block-diffusion draft model that predicts multiple tokens in parallel before target-model verification. The release includes the required transforms, runtime support, and example scripts.
  • Weight-free CausalLM export can build the ONNX graph without loading the complete checkpoint into host memory. The compiler can then read the weights directly from the original safetensors files.
  • KV-cache handoff for disaggregated serving lets prefill and decode sessions share host-side KV buffers, avoiding an extra Python-side copy between the two stages. Examples are included for GPT-OSS, Qwen3-MoE, Qwen3.5-MoE, Qwen3-VL-MoE, and Gemma4-MoE.
  • A common optimized MoE transform now handles shared MoE behavior and configuration across supported model families, including expert-parallel weight handling and export options.

Model and Runtime Improvements

  • Expanded blocking support for Qwen3-VL-MoE and Gemma4, including head-parallel, prefill, decode-MoE, batch-fold, and disaggregated execution paths.
  • Optimized Qwen3.5-MoE folded decode and improved generic blocked-attention performance for KV head-parallel decode and online prefill.
  • Added a separate vision_batch_size option for dual-QPC VLM compilation. Existing callers keep the previous behavior when the option is not provided.
  • Refactored GPT-OSS to use a per-layer dynamic cache while preserving compatibility with the legacy tuple-cache layout.
  • Moved GPT-OSS attention-mask preparation outside decoder subfunctions to avoid repeating layer-invariant ONNX work.
  • Added automatic compiler-dump generation when mdp_strategy="intersection" is used without an explicit dump path.
  • Updated hardware detection to identify AI200 devices from the NSP image variant reported by qaic-util.

ONNX Export and Compatibility Fixes

  • Preserved Hugging Face parameter names and FX source metadata in ONNX subfunction exports.
  • Moved constant ReduceSum axes into ONNX functions so model code can use regular reduction operations.
  • Fixed Gemma4 continuous-batching compilation with ONNX subfunctions.
  • Fixed Qwen3.5 dense and MoE subfunction export in the Conv1D fallback path.
  • Updated the Qwen3.5 Gated DeltaNet forward substitution.
  • Added clear errors for model classes and options that do not support weight-free export.
  • Fixed the continuous-batching QPC key mismatch between QEfficient and vLLM.
  • Stabilized Kimi K2.5 setup and CI coverage.
  • Updated NumPy support to >=2.2.6,<3 and protobuf to 6.33.6. Python 3.8 is no longer supported.

CI and Repository Updates

  • Added change-aware regression-test selection based on affected models and features.
  • Reworked CI model tiers, worker isolation, capability tracking, golden outputs, and report generation.
  • Improved CI stage names, LLM-based impact analysis, runtime-stage gating, and failure reporting.
  • Added repository migration workflows, pull-request templates, dependency updates, stale-issue handling, and a security policy.
  • Added the qeff-bug-fix development agent to skills_studio/agents.
  • Updated .gitignore for generated runtime files and local virtual environments.

Included Pull Requests

Runtime, Export, and Model Changes

  • #995 - Add DFlash block-diffusion speculative decoding
  • #1147 - Detect AIC hardware from the NSP image variant
  • #1150 - Add efficient KV-cache handoff for disaggregated serving
  • #1190 - Add OptimizedMoeTransform
  • #1229 - Add head-parallel and batch-fold blocking for Qwen3-VL-MoE
  • #1231 - Hoist GPT-OSS attention-mask preparation out of decoder subfunctions
  • #1241 - Preserve semantic names in weighted ONNX subfunction exports
  • #1245 - Fix Gemma4 continuous batching with ONNX subfunctions
  • #1248 - Add weight-free ONNX export for CausalLM models
  • #1279 - Refactor the GPT-OSS cache implementation
  • #1289 - Generate MDP compiler dumps for the intersection strategy
  • #1294 - Localize constant ReduceSum axes inside ONNX subfunctions
  • #1308 - Enable Gemma4 blocking on mainline
  • #1315 - Optimize Qwen3.5-MoE folded decode
  • #1343 - Improve blocked-attention performance
  • #1351 - Decouple VLM vision and language batch sizes

Reliability and Compatibility

  • #1299 - Update the Gated DeltaNet forward substitution
  • #1316 - Guard unsupported weight-free model classes and options
  • #1321 - Update NumPy and protobuf versions
  • #1337 - Fix the QPC key mismatch between vLLM and QEfficient
  • #1340 - Restore Kimi K2.5 test utilities
  • #1341 - Fix Qwen3.5 Conv1D subfunction export
  • #1349 - Preserve Dynamo subfunction source metadata
  • #1353 - Stabilize Kimi K2.5 CI coverage

CI and Repository Maintenance

  • #1182 - Move the qeff-bug-fix agent into skills_studio/agents
  • #1216 - Consolidate CI model tiers and reporting
  • #1273 - Add intelligent regression-test selection
  • #1278 - Ignore generated runtime and virtual-environment files
  • #1283 - Improve CI display names
  • #1319 - Enable LLM-first CI impact analysis
  • #1323 - Fix LLM-based CI impact selection
  • #1325 - Fix runtime CI impact-stage gating
  • #1330 - Prepare repository workflows and policy files for migration

These notes cover changes made after v1.22.8. Changes already shipped in that release are not repeated here.

release/v1.22.8

Choose a tag to compare

@ochougul ochougul released this 26 Aug 08:57
b83f69d

What's Changed

New Contributors

Full Changelog: 1.22.0...release/1.22.8.0

release/v1.22.0

Choose a tag to compare

@quic-rishinr quic-rishinr released this 18 Jun 12:03
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 add...
Read more

release/v1.21.0

Choose a tag to compare

@quic-rishinr quic-rishinr released this 22 Dec 18:08
9757c11

Newly Onboarded Models

Causal Models

GPT OSS (Text)

Example script: efficient-transformers/examples/disagg_serving

Mistral 3.1 (Text)

Example script: mistral3_example.py

Qwen 3 / Qwen3-MoE

Example script: qwen3moe_example

Olmo

Example script: efficient-transformers/examples/text_generation

Multi Models

Qwen 2.5-VL (Vision-Language)

Example script: qwen2_5_vl_example.py

Molmo (Vision-Language)

Example script: molmo_example.py

Gemma 3 (Vision-Language)

Example script: gemma3_example

InternVL 3.5 (Vision-Language)

Example script: intern_example

Audio

Wave2Vec2 (ASR)

Example script: wav2vec2_example

Diffusion Models

Example scripts: efficient-transformers/examples/diffusers


New Features

Diffusers Pipeline Support

Diffusers pipeline support enables seamless integration of diffusion models in QEfficient library. (#604) (#669)

Supported models:

Example scripts: efficient-transformers/examples/diffusers

GPT OSS with Disaggregate Serving Model

Support for GPT OSS using disaggregate serving model. (#608)

Example scripts: efficient-transformers/examples/disagg_serving

Compute-Context-Length (CCL) Support

Feature allows users to optimize the throughput of large language models (LLMs) when handling very large context lengths. (#576) (#663)

Example scripts: efficient-transformers/examples/performance/compute_context_length

ONNX Sub Functions Export Feature for AutoModelForCausalLM

Feature enabling more efficient model compilation and execution on hardware. Users can enable the feature by passing use_onnx_subfunctions=True during export (#621) (#642)

model.export(tmp_path, use_onnx_subfunctions=True)

Note: Currently, we are seeing some performance degradation and output discrepancies with the subfunction. We will continue to monitor and evaluate its behavior, and once these issues are resolved, the subfunction will be enabled by default.

Continuous Batching for VLMs

Now VLMs support continuous batching by including scenarios with multiple images and prompts. (#610)

BlockedKV Attention in CausalLM

Implements a blocked K/V cache layout so attention reads/processes the cache block-by-block, improving long-context decode performance. (#618)

Memory Profiling Tool

Adds scripts to profile memory during export/compile/infer (peak usage, cache footprint) for quicker diagnosis. (#674)

Scripts: efficient-transformers/scripts/memory_profiling

Extended On-Device Sampling

Feature extends on-device sampling support to the language decoder of dual QPC vision language models and adds guided decoding capabilities in On Device Sampling. (#597) (#624)

Example script: efficient-transformers/examples/performance/on_device_sampling.py

ONNX Transform, Memory & Time Optimizations

Adds periodic memory cleanup (e.g., to FP16ClipTransform / SplitTensorsTransform) during large-tensor processing, and avoids redundant external data loading when already present. (#640)

Dependency Upgrades

  • Transformers 4.55
  • Torch 2.7.0+cpu
  • Torchvision 0.22.0+cpu
  • Python ≥3.9

Removed Platform SDK Dependency

Support QPC generation on systems without the Platform SDK. (#609)

Example Scripts Revamp

This includes:

  • Onboarding Guide for adding new Causal models (#574)
  • Onboarding Guide for adding new Custom ops in QEff (#638)
  • Organized examples into domain-specific subdirectories (#615)

Fine Tuning

Checkpoint Management

Resume from epochs with proper state restoration. Adds resume-from-epoch & epoch checkpoint loading so runs can be restarted with the correct optimizer/scaler/model state. (#614)

Enhanced Loss Tracking

Corrected data type handling for accurate loss computation. Refinements in the finetune/eval path improve numerical stability when computing losses and metrics. (#606)

Custom Dataset Support

Improved handling with better tokenization. Fixes around padding/token typing (e.g., pad_to_max_length) ensure robust dataset ingestion across varied corpora. (#599)

Device-Aware Scaling

Optimized GradScaler for multi-device training. DDP + pipeline-parallel fixes improve device mapping/scaling behavior during mixed-precision training. (#544)

release/v1.20.0

Choose a tag to compare

@quic-rishinr quic-rishinr released this 20 Jun 17:26
4da283e

Newly Onboarded Models

• Added support for Llama-4-Scout-17B-16E-Instruct
o Sample script for Text only (Recommended class for testing is QEFFAutoModelForImageTextToText).
o Sample script for Image + Text (Recommended class for testing is QEFFAutoModelForImageTextToText).
o Single QPC + Dual QPC support, (please check the comment section of example script for running single QPC).
o Added support for chunk attention in Llama4.
o Continuous batching and multi batch execution is planned for rel#1.21.0.
o With the redefined interface between QEFF and VLLM, we should be able to run the multiple images in single prompt, please follow (example) and see sample completion below,

• Added support for Grok-1
o Since architecture for this model is Grok1ModelForCausalLM, so it can be executed using QEffAutoModelForCausalLM.
• Added support for Gemma3
o Sample script for Text only (Recommended class for testing is QEFFAutoModelForImageTextToText).
o Sample script for Image + Text.
o Added support for sliding window.
o Continuous batching and multi batch execution is planned for rel#1.21.0
• Added support for Granite Vision models
o Sample script
• Added support for Granite MOE models

New Features

• Upgrading Transformer version to 4.51.3.
• SpD, multiprojection heads
o Implemented post-attention hidden size projections to speculate tokens ahead of the base model.
• Adding compilation support for io_encrypt flag
o Added support for Model-IP I/O encryption feature using qaic-exec (compile only).
o Users can now directly pass the --io-encrypt flag in both high-level APIs(compile) and command-line APIs (infer and compile).
• Support for sperate prefill and decode compilation
o Added support for separate prefill and decode compilation for encoder (vision) and language models. This feature will be utilized for disaggregated serving.
• New features for Embedding Models –
o Flexible Pooling configuration:
 User can specify popular pooling strategies via string identifiers or provide custom pooling methods.
 It enables seamless integration of pooling at the end of the embedding model, offering flexibility for various use cases. Pooling will also run on AI 100 for improved performance.
Sample script
 Added support for sentence embedding.
• With pooling added, Efficient-Transformers now enables direct sentence embedding generation on AI 100, improving efficiency and semantic quality for downstream tasks.
o Support for compilation with multiple sequence lengths.
 Users can specify a single or list of seq_len values during compilation (example).
 At generation time, the closest greater or equal seq_len graph from the QPC is auto selected for optimal execution.
• Added support for On Device Sampling for CausalLM models.
o Sampling now runs directly on the QAIC device, reducing host-device communication and boosting inference throughput and scalability.
o Documentation and Usage guide.
• Added support for SwiftKV model (Snowflake/Llama-3.1-SwiftKV-8B-Instruct)
o Added support for both continuous and non-continuous batching execution in SwiftKV.
o Since architecture for this model is LlamaSwiftKVForCausalLM, so it can be executed using QEffAutoModelForCausalLM
• Added support for execution of GGUF models, (without quantized weights)
o sample script.
• Added support for compressed quantization status for FP8 model.
o Infermatic/Llama-3.3-70B-Instruct-FP8-Dynamic · Hugging Face
• QNN updates –
o Updated the QNN custom IO generation method for adhering to compiler changes.
o Added --target_backend AIC as default parameter in QNN Converter.

Fine Tuning

• Added Bert FT support, doc
• Documentation and a code template to run fine tuning on custom dataset.
• Added --help option available for usage of training parameters.
• Added support for gradient checkpointing in the finetuning script
• Added support for Passing device type in torch GradScaler.
• Detailed documentation is here

Upcoming models
• Qwen3
• Mistral 3.1

Upcoming features

• Compute context length support planned for 1.21.0)
• Support for passing MDP file to compiler during compilation. (planned as bug-fix in 1.20.0).
• Upgrading the ONNX dependency is required to address a security vulnerability identified in the current version of ONNX.
o (onnx==1.18.0, onnxruntime==1.22, onnxscript==0.2.5, protobuff ==6.31.0) (planned for 1.21.0)
• Support for -inf for pad tokens, for optimized softmax handling in compiler. (planned for 1.21.0).

release/v1.19.3

Choose a tag to compare

@quic-rishinr quic-rishinr released this 28 Feb 16:40
2b17ebd

Added Features

  • Vision Language Model
  • Speech Sequence to Sequence Model
  • Support for FP8 Execution
  • Prompt-Lookup Decoding sample script.

release/v1.17.0

Choose a tag to compare

@anujgupt-github anujgupt-github released this 22 Dec 18:09
7961c3f

What's Changed

New Contributors

Full Changelog: https://github.com/quic/efficient-transformers/commits/V1.17