Highlights
TBE Performance & ROCm Optimization
- Adaptive thread-group sizing for
bounds_check_indicesv2 delivers up to 41x (VBE + IGNORE) and 30x (WARNING) speedups on the benchmarked trace shapes, plus a new thread-per-bag kernel for large B / small L (#6343, #6358, #6835) - Flat thread mapping for permute/bounds_check, batched rows for adagrad backward, and binary-search row lookup in the flat sparse kernels (#6303, #6304)
- NOBAG inference TBE is parallelized over row ranges, and pooled CPU TBE uses flattened (table × bag) threading (#6256, #6411)
- VBE fp16 forward dispatches to 32-wide thread groups (1.90x on a benchmarked D=8 shape) (#6286)
- New opt-in (default off) ROCm kernels: half-wave VBE forward, higher-occupancy and eighth-wave
hip_mixed_dbackward, and adaptive input-prep / bounds-check; plus a parallelized gfx942 INT4 D64 no-bag lookup (#6680, #6656, #6621, #6622, #6445) - A single TBE codegen build now supports warp sizes 32 and 64, and forward kernel instantiations are sharded across translation units for faster builds (#6393, #6840)
TBE Optimizer & Training Features
- Frequency-adaptive learning rate for rowwise RMSprop AR (#6534, #6492)
- Per-row learning-rate warmup for TBE (#6525, #6535)
- fp32 / int64
prev_itersupport for global weight decay (int64 is opt-in), and a post-fused-update TBE hook (#6298, #6299, #6762) - New
weight_init_on_cpuoption to controlweight_devinitialization in fused TBE, optional VBE row metadata (row_output_offsets/b_t_map), and trailing-index support in bounds check (#6356, #6740, #6291) ComputeDeviceenum now includes XPU (enum-level groundwork; no XPU kernels yet) (#6813)
SSD/DRAM KV Embedding Cache & Inference
- Owner-local direct enrichment cache with opt-in INT8 storage, INT8/g8 DRAM rows end to end, a default-off exclusive HBM tier, and 16-way set-associative LRU slots (#6495, #6514, #6522, #6709, #6738, #6746)
- Eval-time read snapshots with drain-on-switch, plus cache invalidation on snapshot switch (#6414, #6415)
- Coordinated training eviction across ranks, with new ITERATION and MEM_UTIL thresholds in
KVZCHTBEConfigandtraining_id_keep_countfor TTL eviction (#6732, #6733, #6328) - OpenTab ID-list enrichment, multi-key Laser lookups via
laser_key_suffixes, and a per-table HBM drain interval (#6413, #6506, #6652) - MPZCH
hash_zch_identitiesandhash_zch_runtime_metanow ship on the HBM lane (#6551, #6552) - Whole-row and metadata-aware checkpoint fixes for DRAM/SSD restore (#6521, #6560, #6624, #6679)
Quantization & Triton GEMM
- Group-wise INT4 with float8_e4m3fn block scales: quantize/dequantize ops, KV inference serving, and enrichment-cache storage (#6616, #6618, #6615, #6617)
- New host-only GPU-compatible INT4 lookup operator and INT4 Half arithmetic helpers (#6810, #6789)
- Faster CPU N-bit paths via thread-local caches, AVX2 front scale/bias dequant, NEON fp32 <-> fp16 kernels, and INT4 embedding accumulation without intermediate buffers (#6434, #6507, #6531, #6706)
- Pruned FP8 rowwise Triton autotune search space on H100, plus an FP8 row TMA fallback for ineligible strides (#6300, #6348, #6351, #6352, #6353, #6354, #6355, #6598)
- Numerical fixes: BF16 NaN preservation (finite rounding unchanged), MX4 subnormals, FP8 rowwise stochastic rounding, and the last partial group's scale in Triton FP8 quantization (#6822, #6589, #6637, #6381, #6850)
Platform Support & Build Infrastructure
- ROCm: gfx942/gfx950 in CI and release wheels, gfx1250 NFP8 coverage, ROCm TBE v2 forward and backward adagrad tests re-enabled, and the SGEMM example on HIP (#6686, #6563, #6373, #6350, #6608)
- CUDA 13: wheels for CUDA 13.2 / 13.4 (PyTorch 2.15) built for the SM100 family target (10.0f), and
scaled_fp4_quantcompiled for SM100 family targets (#6846, #6768, #6798) - Runtime ISA-based dispatch, optional native AArch64 builds, FP32 GEMM on MSVC, and shared FP16/FP32 asmjit GEMM kernels (#6811, #6613, #6683, #6751)
- Stricter build hygiene: many compiler warnings promoted to errors across CPU and HIP builds (e.g. #6317, #6329, #6337)
Compatibility Notes
- Python 3.10 is no longer supported; wheels are built for Python 3.11 – 3.15, following PyTorch 2.15
- CUDA wheels are now built for CUDA 13.2 and 13.4 only; CUDA 12.6, 12.8 and 13.0 wheels are no longer published, following PyTorch 2.15
- ROCm wheels move from ROCm 7.0 / 7.1 to ROCm 7.14 / 10.0, following PyTorch 2.15
- The public C++ CPU FP8 embedding API (
GenerateEmbeddingSpMDMFP8WithStrides) now requires a strongly typedhfp8<ExponentBits, ExponentBias>input; the byte-input overload was removed (#6528)
Software Requirements
FBGEMM_GPU v1.10.0 has been tested and known to work on the following setups:
- PyTorch: v2.15
- CUDA: v13.2, 13.4
- Python: v3.11, 3.12, 3.13, 3.14, 3.15
- ROCm (experimental): v7.14, 10.0
It is recommended to prepare an isolated environment for installing and running FBGEMM_GPU, such as Conda and/or Docker.
Availability
FBGEMM_GPU and FBGEMM GenAI can be fetched directly from PyPI. The PyPI CUDA wheels are built against CUDA 13.2:
# FBGEMM_GPU CUDA variant
pip install fbgemm-gpu==1.10.0
# FBGEMM_GPU CPU variant
pip install fbgemm-gpu-cpu==1.10.0
# FBGEMM GenAI
pip install fbgemm-gpu-genai==1.10.0Alternatively, they can be fetched from PyTorch PIP for a specific variant:
# FBGEMM_GPU CUDA variant
pip install fbgemm-gpu==1.10.0 --index-url https://download.pytorch.org/whl/cu132/
pip install fbgemm-gpu==1.10.0 --index-url https://download.pytorch.org/whl/cu134/
# FBGEMM_GPU ROCm variant
pip install fbgemm-gpu==1.10.0 --index-url https://download.pytorch.org/whl/rocm7.14/
pip install fbgemm-gpu==1.10.0 --index-url https://download.pytorch.org/whl/rocm10.0/
# FBGEMM_GPU CPU variant
pip install fbgemm-gpu==1.10.0 --index-url https://download.pytorch.org/whl/cpu
# FBGEMM GenAI
pip install fbgemm-gpu-genai==1.10.0 --index-url https://download.pytorch.org/whl/cu132/
pip install fbgemm-gpu-genai==1.10.0 --index-url https://download.pytorch.org/whl/cu134/
pip install fbgemm-gpu-genai==1.10.0 --index-url https://download.pytorch.org/whl/rocm7.14/
pip install fbgemm-gpu-genai==1.10.0 --index-url https://download.pytorch.org/whl/rocm10.0/Changes
Table Batched Embedding (TBE) Operators
For GPU
- [Improvement] Parallelize the NOBAG inference TBE over row ranges, not tables (#6256)
- [Improvement] Symbolize fbgemm asmjit embedding kernels via a perf map (#6273)
- [Improvement] [ROCm] Use
kWarpSizeHost()in TBE host-side launch configs (#6278) - [Improvement] Resolve generated training-forward warnings (#6285)
- [Improvement] Dispatch VBE fp16 forward TBE to 32-wide thread groups (1.90x on a benchmarked D=8 shape) (#6286)
- [Improvement] Flat thread mapping for permute/bounds_check and batched rows for adagrad backward (#6303)
- [Improvement] Binary-search row lookup in the flat sparse kernels (#6304)
- [Fix] Let the flat bounds_check run when offsets adjustment is off (#6305)
- [Fix] Compute the ROCm HIP backward rowwise adagrad update in fp32 so stochastic rounding is applied (#6308)
- [Fix] Fix packed-bag pooling truncation in nbit inference forward (#6312)
- [Fix] Check embedding-pruning launch bounds (#6314)
- [Fix] Optimize and fix the bounds-check WARNING kernel on AMD (#6316)
- [Improvement] Test FP16 HIP Adagrad parity (#6327)
- [Improvement] Adaptive thread-group sizing for bounds_check_indices v2 (VBE + IGNORE; 41x on trace shape) (#6343)
- [Fix] Mark PT2 CUDA max_B parameter unused (#6345)
- [Improvement] [ROCm] Re-enable the backward adagrad tests (#6350)
- [Improvement] Adaptive thread groups for bounds_check_indices v2 WARNING (30x on the trace shape) (#6358)
- [Improvement] Annotate unused TBE vector parameters (#6359)
- [Fix] Validate FP32 and BF16 outputs separately (#6360)
- [Improvement] Annotate unused TBE portability parameters (#6365)
- [Improvement] Remove the ROCm guard that skipped the D == 2 EXACT_ROWWISE_ADAGRAD case in test_backward_optimizers_adagrad (#6368)
- [Fix] Enable TBE v2 forward tests on ROCm and fix v2 mixed precision cache lookup (#6373)
- [Improvement] Support warp sizes 32 and 64 in a single TBE codegen build (#6393)
- [Improvement] Fix unused parameters in generated kernels (#6398)
- [Improvement] Drop the dead warning reduction from bounds_check_indices v2 FATAL/IGNORE (1.45x FATAL, 1.25x IGNORE) (#6407)
- [Improvement] Parallelize gfx942 INT4 D64 no-bag lookup (#6445)
- [Improvement] Enable BF16 output in TBE inference tests on ROCm (#6452)
- [Improvement] Migrate PyTorch and FBGEMM callers to explicit size bounds (#6484)
- [Improvement] Env-gated TBE backward segment threshold and CTA size (#6526)
- [Fix] Fix TBE forward using stale uvm_cache_stats (#6532)
- [Improvement] Bound UVM property allocations by element count (#6545)
- [Fix] Fix FALR first-touch test expectations (#6547)
- [Improvement] Package bounded config-driven Adagrad workloads (#6564)
- [Improvement] Execute ROCm BF16 inference cases (#6565)
- [Improvement] Verify actual NFP8 managed cache hits and misses (#6566)
- [Improvement] Run the cached training pipeline on ROCm (#6567)
- [Improvement] Build the writeback cumsum's leading zero on device (#6590)
- [Fix] Keep NaN shared-memory initialization out of FakeTensor kernels (#6611)
- [Improvement] [ROCm] Eighth-wave
hip_mixed_dbackward and uniform-D route (TBE_ROCM_HIP_MIXED_D_EIGHTH_WAVE/_UNIFORM, default off) (#6621) - [Improvement] [ROCm] TBE input-prep optimizations: bounds-check width, linearized lane groups, 7-bit sort passes (
TBE_ROCM_BOUNDS_CHECK_ADAPTIVE_ALL/_LINEARIZE_GROUP/_SORT_RADIX_BITS, default off) (#6622) - [Improvement] Add no-bag and optimizer benchmark sweeps (#6633)
- [Fix] Fix generated embedding signed comparisons (#6642)
- [Fix] Fix TBE cache signed comparisons (#6650)
- [Improvement] [ROCm]
hip_mixed_dwarp backward at higher occupancy for max_D <= 96 (TBE_ROCM_HIP_MIXED_D_OCCUPANCY, default off) (#6656) - [Improvement] [ROCm] Half-wave VBE forward for int32 indices (
FBGEMM_TBE_ROCM_VBE_HALFWAVE_INT32, default off) (#6680) - [Improvement] Keep the long-segment split in deterministic TBE backward (#6695)
- [Improvement] [ROCm] Bit-identity pin for the
hip_mixed_d<3,8> occupancy instantiation (rowwise Adagrad) (#6702) - [Improvement] Normalize generated optimizer indices (#6726)
- [New] VBE metadata: optional row_output_offsets / b_t_map via compute_row_metadata (#6740)
- [Fix] Normalize forward launch indices (#6742)
- [Improvement] Normalize utility kernel indices (#6747)
- [Improvement] Normalize jagged kernel bounds (#6748)
- [New] Expose a post-fused-update TBE hook (#6762)
- [Improvement] Keep backward segment loops at 32 bits (#6772)
- [Improvement] Gate embedding stats recording at runtime (#6786)
- [Fix] Bind the gfx90a NFP8 device alias to fnuz (#6790)
- [Improvement] Optimize V2 bounds check for large B with small L: thread-per-bag kernel (#6835)
- [Improvement] Shard forward kernel instantiations across 6 translation units (#6840)
For CPU
- [New] Modify TBE bounds check to support trailing indices (#6291)
- [Improvement] Make the Python NFP8 dtype selection architecture-aware (#6310)
- [Fix] Restore TBE backward host-side launch config (#6326)
- [New] Introduce
weight_init_on_cputo controlweight_devinitialization in the fused TBE kernel (#6356) - [Improvement] Flattened (table x bag) threading for pooled CPU TBE (#6411)
- [Improvement] Add CPU nbit-forward tests for empty/pruned-bag zero-fill (#6427)
- [Improvement] Discover generated dense opcheck tests (#6433)
- [Improvement] Move
csr2cscinto the TBE backward CPU library (#6437) - [Improvement] Simplify typed CPU embedding dispatch (#6441)
- [Improvement] Remove shadowing from TBE and cache kernels (#6456)
- [Fix] Check row_counter is passed when falr is on (#6465)
- [Improvement] BC-breaking: Require strongly typed
hfp8<...>inputs in the public CPU FP8 embedding API (#6528) - [Improvement] Avoid unused uint8 output instantiations for FP8 autovec (#6537)
- [Improvement] Consolidate CPU reference conversions with deduced input types (#6635)
- [Improvement] Cover typed CPU embedding dispatch (#6670)
- [Improvement] Opt-in resident output pool for CPU NOBAG inference TBE (#6677)
- [New] Add host-only GPU-compatible INT4 lookup operator (#6810)
- [New] Add XPU to ComputeDevice enum (#6813)
SSD Table Batched Embedding (TBE) Operators
- [Improvement] Return zeros on inference cache miss in embedding cache mode (#6248)
- [Fix] Fix INT4 no-bag output stride handling (#6266)
- [Fix] Prepare packed INT4 KV lookup rows (#6280)
- [Improvement] Clarify NFP8 dispatch views (#6322)
- [New] Add
training_id_keep_countfor TTL eviction (#6328) - [Improvement] Annotate unused SSD cache parameters (#6357)
- [Improvement] Log the final disable_random_init in DramKV inference wrapper (#6380)
- [Improvement] Bound inplace update memory with mark-evict-load (#6384)
- [New] OpenTab ID-list enrichment (ONEFLOW_OPENTAB_ID_LIST) for multi-value payloads (#6413)
- [New] Serve eval reads through an active snapshot, with drain-on-switch (#6414)
- [New] Invalidate both embedding caches on a read-snapshot switch (#6415)
- [Fix] Resume paused eviction after get in cache mode (#6423)
- [Fix] Use typed DRAM KV test expectations (#6431)
- [Fix] Pass complete VBE metadata to SSD bounds checks (#6435)
- [Fix] Zero complete missing DRAM whole rows (#6447)
- [New] OpenTab ID-list negative cache for objects with no IDs (opt-in) (#6448)
- [Improvement] Optimize DRAM enrichment reads and direct cache kernels (#6494)
- [New] Add owner-local direct enrichment cache path (#6495)
- [New] Fetch several Laser keys per ID with laser_key_suffixes (#6506)
- [New] Add INT8 owner-local direct cache ops (#6514)
- [Improvement] Bind SSD TBE resources to the selected GPU (#6519)
- [Fix] Serialize composite DRAM and SSD restore (#6521)
- [New] Add opt-in INT8 storage to the owner-local direct enrichment cache (#6522)
- [Improvement] Reserve optional optimizer lists in PT2 lookup (#6530)
- [Fix] Initialize Byte fallback rows for DRAM and SSD (#6544)
- [New] Ship MPZCH hash_zch_identities on the HBM lane (#6551)
- [New] Ship MPZCH hash_zch_runtime_meta on the HBM lane (#6552)
- [Improvement] Use
co_withExecutorin the DRAM KV embedding cache (#6554) - [Improvement] Use
co_withExecutorin the DRAM KV embedding cachefetch_sids_sync(#6559) - [Fix] Preserve DRAM checkpoint IDs without double offsets (#6560)
- [Fix] Match SSD cache associativity to the active GPU (#6575)
- [New] SSD inference backend honors disable_random_init behind a gflag (#6581)
- [New] Refresh DRAM KV timestamps on enrich hit and restamp on restore (#6585)
- [Fix] Compare per-table IDs in SSD whole-row checkpoint tests (#6602)
- [New] Store enrichment cache rows as their INT4 serving values (serving_qdq_bit_rate) (#6615)
- [New] serving_qdq_group_size: store enrichment cache rows as their group-wise INT4 serving values (#6617)
- [New] KVEmbeddingInference: serve group-wise INT4 (e4m3 scales) rows (#6618)
- [Improvement] Construct metadata-prefixed KV checkpoint rows (#6623)
- [Fix] Restore whole-row checkpoints by embedded IDs (#6624)
- [Fix] Use active warp size for direct SSD cache insertion launches (#6640)
- [Fix] Drop retained scratch pads on an eval read-snapshot switch (#6651)
- [New] Per-table HBM drain interval (#6652)
- [Fix] Split the boundary score bucket when evicting (#6655)
- [New] Row writes into the DRAM KV enrichment cache (#6675)
- [Fix] Restore metadata-aware KV checkpoints through PMT (#6679)
- [Fix] Make the eval snapshot conflict fixture follow cache associativity (#6694)
- [New] Owner-local HBM tier: Triton INT8 gather,
packed_storageg8 DRAM rows, and the default-off exclusive HBM tier (#6709) - [Improvement] Align whole-row checkpoint test with normalized inputs (#6718)
- [Improvement] Centralize eviction trigger-mode decisions (#6730)
- [New] Expose the coordinated eviction backend contract (#6731)
- [Improvement] Coordinate training eviction across ranks (#6732)
- [New] Add ITERATION and MEM_UTIL thresholds to KVZCHTBEConfig (#6733)
- [Improvement] Check ID_COUNT per count-bound table (#6734)
- [New] INT8 and g8 DRAM rows end to end:
int8_storage, raw INT8/g8 checkpoints, raw HBM moves, FP16 publish views, fill-only writes (#6738) - [Improvement] Exclusive HBM checkpoint/promote QPS fixes and the mb knobs for INT8/g8 DRAM rows and the exclusive owner cache (#6739)
- [New] Owner-cache hit metrics behind
EnrichmentPolicy.owner_cache_hit_metrics(#6743) - [Improvement] Share compact SSD storage across pinned snapshots and fence delta versions (#6744)
- [New] Owner-local HBM caches in the DRAM storage format: 16-way set-associative LRU slots and HBM-first trainer row writes (#6746)
- [Improvement] Add gated SSD KV lookup optimizations and lookup statistics (#6754)
- [New] Bind checked DRAM payload writes and readback to Python (#6775)
- [New] Opt in to a physical-row L1 cache budget (#6776)
- [Improvement] Document checked readback eviction and metric side effects (#6777)
- [Fix] dram_kv_embedding_inplace_update_cpu: take each table's row width from update_offsets (#6778)
- [Improvement] Batch the inference feature-eviction erase so serving lookups are not held off (#6788)
- [Improvement] Normalize SSD cache kernel bounds (#6827)
Optimizer Support
- [Improvement] Add support for fp32 or int64
prev_iterin the GWD kernels (#6298) - [Improvement] Opt in to int64
prev_iterfor global weight decay (#6299) - [Improvement] Warn when a float32
prev_iterpasses 2^24 (#6306) - [Improvement] Fetch rowwise optimizer states from momentum buffers without offloading (#6383)
- [Improvement] Preserve TBE optimizer argument compatibility across package versions (#6401)
- [New] Frequency-adaptive learning rate for rowwise_rmsprop_ar: TBE frontend (#6492)
- [New] Add per-row learning-rate warmup: backend (#6525)
- [New] Add frequency-adaptive learning rate to rowwise RMSprop AR (#6534)
- [New] Add per-row learning-rate warmup: frontend (#6535)
- [Fix] Use float placeholders for omitted optional optimizer states (#6577)
- [Fix] Declare standalone optimizer weight mutations in schemas (#6630)
- [Fix] Make set_optimizer_step update the step that optimizers read (#6828)
GenAI Support and Operators
Attention Kernels
- [Improvement] Annotate unused attention and KV-cache parameters (#6370)
- [Fix] Guard HSTU tests for supported CUDA architectures (#6690)
- [Fix] Exclude incompatible xformers KV references on gfx1250 (#6691)
- [Fix] Broadcast GQA maxima and select supported reference operators (#6692)
- [Fix] Repair Blackwell attention example argument wiring and unsupported HIP builds (#6792)
CUTLASS/GEMM Support
- [Fix] Remove a spurious rowwise stochastic-rounding check from FP8 per-tensor row/col quantization (27a24ffeb)
- [Improvement] Grid-stride BF16 M-sizes group setup (#6419)
- [Fix] Synchronize GEMV shared reductions between batch rows (#6439)
- [Fix] Fix non-batched FP8 GEMV meta output (#6449)
- [Fix] Align native FP8 allocation and launch types (#6464)
- [Improvement] Grid-stride FP8 fixed-NK group setup (#6481)
- [Fix] Validate CK FP8 inputs using the native GPU dtype (#6497)
- [Fix] Skip broken gfx950 grouped GEMM shape (#6523)
- [Improvement] Cap FP8 grouped-GEMM sparse zeroing grid (#6533)
- [Improvement] Preserve quantizers and gate unsupported CK GEMMs (#6542)
- [Improvement] Validate grouped BF16 GEMM and fused scatter in two stages (#6596)
Triton GEMM Support
- [Improvement] Static H100 prune for FP8 rowwise Triton autotune (#6300)
- [Improvement] SMEM stage prune for FP8 rowwise H100 autotune (#6348)
- [Improvement] BK floor from K for FP8 rowwise H100 autotune (#6351)
- [Improvement] BM/BN floors from shape for FP8 rowwise H100 autotune (#6352)
- [Improvement] Register-cap guard for FP8 rowwise H100 autotune (#6353)
- [Improvement] num_stages floor (drop ns=2) for FP8 rowwise H100 autotune (#6354)
- [Improvement] M*N product BM/BN mirrors for FP8 rowwise H100 autotune (#6355)
- [Fix] Fix UB in _kernel_quantize_mx4 (#6367)
- [Fix] Preserve batched CPU FP8 matmul shapes (#6466)
- [Improvement] Use
tl.clampfor exponent clamping in the Triton MX4 SiLU/RMS quantize kernels (#6467) - [Fix] Match FP8 matmul fake shapes to eager ops (#6470)
- [Fix] Honor FP8 matmul output dtype for empty inputs (#6476)
- [Fix] Keep FP8 autotune pruning guard-free (#6493)
- [Fix] Preserve MX4 reference subnormals and exponent bytes (#6589)
- [Improvement] Serialize packed FP8 scales with portable bit operations (#6593)
- [Fix] Check retained Triton warp specialization config fields (#6595)
- [Fix] Fall back from FP8 row TMA for ineligible strides (#6598)
- [Improvement] Mask K tails in grouped FP8 GEMM (#6607)
- [Fix] Enable request-only TLX LCE (#6625)
- [Improvement] Enable portable Triton ROSS request-only LCE (#6626)
- [Fix] Preserve subnormals in MX4 reference scaling (#6637)
- [Fix] Initialize and index padded FP4 scale buffers correctly (#6671)
- [Fix] Use HIP-compatible dot precision in portable Simplicial forward (#6780)
- [Fix] Write the last partial group's scale in Triton FP8 quantization (#6850)
KV Cache Support
- [Improvement] Disambiguate KV-cache head dimensions (#6455)
- [Fix] Fix KV-cache signed arithmetic (#6662)
Quantization Operators
- [Improvement] Validate NFP8 device labels and expand coverage (#6165)
- [Improvement] Mark GenerateEmbeddingSpMDM* is_bf16 params [[maybe_unused]]; use to_float/from_float in QuantUtils (#6237)
- [Improvement] Use fbgemm::bfloat16 in QuantUtils dequant helpers (#6238)
- [Fix] Account for Y/Z blocks in grid-X caps (#6281)
- [Improvement] Annotate unused quantization parameters (#6371)
- [Fix] Restore FP8 rowwise stochastic rounding (#6381)
- [Improvement] Cap padded FP8 1D dequantization grid (#6386)
- [Improvement] Add N-bit cache tests and benchmark (#6387)
- [Improvement] Cap static int8 quantization grid (#6388)
- [Improvement] Harden per-tensor int8 quantization launches (#6389)
- [Improvement] Vectorize aligned BF16 Vec4 loads (#6391)
- [Improvement] Vectorize aligned BF16 Vec4 stores and copies (#6392)
- [Improvement] Fix unused parameters in operator kernels (#6397)
- [Improvement] Vectorize aligned BF16 Vec4 stores without bloat (#6403)
- [Improvement] Cap fused FP8 rowwise quantization grids (#6406)
- [Improvement] Register unsupported n-bit opcheck cases (#6432)
- [New] Add thread-local N-bit cache support (#6434)
- [Improvement] Remove obsolete BF16 compatibility parameters (#6438)
- [Fix] Load FP8 tensor quantizer inputs using their scalar dtype (#6440)
- [Improvement] Template autovec N-bit input widths (#6442)
- [Improvement] Make the scalar float conversions constexpr (#6462)
- [Fix] Guard quantizer devices and handle zero-width rows (#6477)
- [Fix] Honor scale_bias_last in the N-bit dequantization entry point (#6483)
- [Improvement] Enable constexpr convolution and scalar quantization helpers (#6485)
- [Improvement] Remove half-type token-pasting macros from FP8 instantiation (#6488)
- [Improvement] Infer quantization output tensor dtype from the template type (#6500)
- [Improvement] Derive GPU dequantization dispatch and padding from types (#6501)
- [Improvement] Unify FP16 and BF16 dequantization instantiation macros (#6502)
- [Improvement] Replace dequantization launch macros with typed template dispatch (#6503)
- [Improvement] Add typed HFP8 conversions and compile-time embedding decoders (#6505)
- [Improvement] Vectorize N-bit dequantization with front scale and bias on AVX2 (#6507)
- [Improvement] Remove unused FP8 rowwise host template parameter (#6510)
- [Improvement] Remove unused FP8 rowwise scratch allocation (#6511)
- [Improvement] Specialize GPU N-bit quantization kernels for common bit widths (#6529)
- [Fix] Align quantizer schemas and fake inference (#6539)
- [Improvement] Cap MX4 quantization grid (#6543)
- [Improvement] Cap MX4 dequantization grid (#6553)
- [Improvement] Reuse reference output conversion in scalar dequantization (#6558)
- [Improvement] Use c10::irange for simple loops in fbgemm_gpu experimental (#6579)
- [Improvement] Carry strongly typed FP8 inputs through the CPU embedding core (#6580)
- [Fix] Remove stale BF16 FakeTensor failure expectation (#6588)
- [New] Group-wise INT4 with float8_e4m3fn block scales: quantize/dequantize ops (#6616)
- [Improvement] Replace the embedding kernel signature wrapper with an alias (#6646)
- [Fix] Fix quantization host comparisons (#6667)
- [Improvement] Optimize INT4 embedding accumulation and eliminate intermediate buffers (#6706)
- [Improvement] Select dense N-bit callback signatures at compile time (#6716)
- [Improvement] Remove unreachable
breaks in FBGEMM (#6770) - [New] Add and test GPU-compatible INT4 Half arithmetic helpers (#6789)
- [Improvement] Normalize quantization bounds (#6802)
- [Fix] Preserve BF16 NaNs without changing finite rounding (#6822)
Sparse Operators
- [Improvement] Generalize the fused-prefix
pack_segmentskernel across GPU workloads (16e0637a2) - [Improvement] Parallelize reorder_batched_ad_indices within a segment (#6245)
- [Fix] Relocate permute_pooled_embs_split index tensors instead of failing (#6269)
- [Improvement] Backward kernel atomic add optimizations (#6272)
- [Fix] Cap remaining block-bucketize launches (#6292)
- [Improvement] Optimize bf16 atomicCAS (#6294)
- [Fix] Fix GPU memory fault in batched_unary_embeddings backward (#6318)
- [Fix] Re-enable the reorder_batched GPU tests and fix two dtype defects they exposed (#6324)
- [Fix] Fix absent weights in native sparse permutation operators (#6341)
- [Improvement] Use distinct float16 and bfloat16 CPU template types (#6382)
- [Fix] Preserve CPU pack_segments parity evidence (#6400)
- [Fix] Fix int32 index overflow in pack_segments CUDA kernels (#6418)
- [Improvement] Preserve Buck Python paths in subprocess tests (#6430)
- [Improvement] Speed up masked_select_jagged_1d mask count with uint16_t chunked accumulation (#6444)
- [Improvement] Rate-limit the CPU bounds_check_indices out-of-range warning log (#6475)
- [Fix] Run merge_pooled_embeddings cross-device copies with the source device current (#6513)
- [Fix] Claim ZCH eviction metadata before identity swap (#6548)
- [Improvement] Spread offsets_range's trailing segment across the grid (#6550)
- [Improvement] Hoist TensorAccessor indexing to raw pointers in jagged dense CPU kernel (#6555)
- [Improvement] Cap sparse bucketization grids (#6561)
- [Improvement] Cap single-batch ad-index broadcast grid (#6583)
- [Improvement] Use 256-thread blocks for the jagged dense-output kernel on CUDA (#6629)
- [Improvement] Replace sparse bucketize launch macros with template lambdas (#6639)
- [Fix] Use direct device calls in input combine (#6641)
- [Improvement] Replace duplicate GPU dispatch macros with existing template dispatchers (#6644)
- [Improvement] Replace float-only bucketize dispatch with explicit dtype checks (#6658)
- [Fix] Fix MoE signed comparisons (#6668)
- [New] Add
group_index_select_dim0_gpu_setupto compute backward arguments without launching the forward kernel (#6681) - [Improvement] group_index_select backward - env override for the ROCm sorted-indices pre-pass (#6696)
- [Improvement] group_index_select backward - read row-strided gradient views without contiguous copies (#6697)
- [Improvement] Replace AUC and keyed jagged launch macros with template lambdas (#6704)
- [Improvement] Cap batched ad-index broadcast grid (#6735)
- [Improvement] Index permute_multi_embedding CPU rows through base pointers (#6741)
- [Improvement] Normalize bucketization kernel bounds (#6749)
- [Improvement] Avoid saving unused registers in SparseAdagrad JIT kernels (#6750)
- [Fix] Give sparse-utils CPU test fixtures owned tensor storage (#6760)
- [Fix] Use 64-bit indices in the ZIPF CUDA grid-stride loop (#6764)
- [Fix] Defer TorchScript compilation in sparse tests (#6793)
- [Improvement] Preserve bucketization row stride headroom (#6801)
- [Improvement] Normalize metric kernel bounds (#6816)
Comm Operators
- [Improvement] Avoid FP32 scratch allocation in FP16 communication (#6293)
- [Fix] Transfer contiguous tensors flat in
all_to_one(#6313) - [Improvement] Annotate unused communication and MoE parameters (#6376)
- [Improvement] Accept OCP FP8 types in CAR copy collectives (#6425)
- [Fix] Guard peer copies with the source stream's device (#6614)
- [Improvement] Add a C++ test that cross-device copies reject a copy stream on the wrong device (#6620)
- [Fix] Synchronize one-shot CAR input copies across peer blocks (#6627)
- [Fix] Fix CAR signed comparisons (#6664)
Platform Support
CUDA / Blackwell
- [Fix] Stabilize CUDA 13 Nova wheel builds (#6678)
- [Fix] Use the SM100 family target (10.0f) for Nova CUDA 13 builds (#6768)
- [Fix] Compile scaled_fp4_quant for SM100 family targets (#6798)
- [Improvement] Build Nova wheels for CUDA 13.2 / 13.4 (torch 2.15) (#6846)
ROCm / AMD
- [Improvement] Make the HIP warnings stop the build (#6255)
- [Fix] Fix flaky forward-tolerance in backward adagrad ROCm test (#6267)
- [Fix] Stop the HIP flags from cancelling -Wunused-result (#6282)
- [Fix] Fix ROCm build failures related to return values discarding (#6283)
- [Improvement] Enable ROCm UVM tests (#6287)
- [Improvement] Enable -Wheader-hygiene on the HIP build (#6302)
- [Improvement] Quarantine unstable MI350 tests (#6458)
- [Fix] Re-enable TBE backward none and SGD writeback tests on ROCm (#6472)
- [Improvement] Move the ROCm CI to ROCm 7.14 and 10.0 (#6474)
- [Improvement] Enable gfx1250 NFP8 numerical coverage (#6563)
- [Improvement] Enable SLL tests on ROCm (#6586)
- [Improvement] Use portable E2M1 FP4 packing on HIP (#6604)
- [New] Support the SGEMM example on HIP (#6608)
- [Improvement] [ROCm] Prevent ROCm CI on main from canceling prior merges (#6619)
- [Fix] Match mixed-D route tests to warp size and architecture (#6636)
- [Improvement] [ROCm] Re-enable sparse/index_select_test.py in the ROCm CI (#6657)
- [Improvement] Move ROCm CI window to 10.0 and 10.1 (#6660)
- [Improvement] Build for gfx942 and gfx950 in the CI and the release wheels (#6686)
- [Fix] Fix ROCm bounds-check test expectations for hardware wave size (#6688)
- [Fix] Check ROCm occupancy routing for the selected hardware wave (#6689)
ARM / AArch64
- [Improvement] Optimizing 4-bit dequant to FP32 on AArch64 using vectorized intrinsics in EmbeddingSpMDMAutovec (#6375)
- [Improvement] Rename the ARM autovec lookup table (#6459)
- [Improvement] Template SVE N-bit input widths (#6482)
- [Improvement] Add NEON kernels for fp32 <-> fp16 conversion (#6531)
- [Improvement] Add optional native AArch64 builds and fix FBGEMM build, test, and benchmark issues (#6613)
- [Improvement] Add uint16 NEON transpose kernels (#6648)
- [Fix] Fix BF16 ties-to-even rounding in SVE embedding output (#6729)
- [Improvement] Re-enable FP16Test on Linux AArch64 (#6837)
- [Fix] Fall back to NEON kernels when the toolchain
-marchdoes not enable SVE2 (#6856)
x86 / CPU ISA Dispatch
- [Improvement] Speed up fbgemm transpose_avx512 tail by replacing cross-lane shuffles with permutes (#6478)
- [Improvement] Add FP32 variants to MSVC intrinsic GEMM kernels (#6682)
- [Improvement] Enable FP32 GEMM builds and tests on MSVC (#6683)
- [Improvement] Generate shared FP16 and FP32 GEMM kernels with asmjit (#6751)
- [Improvement] Cover AVX512-YMM dispatch in FP16 and FP32 GEMM tests (#6753)
- [Improvement] Drop -mfma / -mf16c already in FindAVX's AVX flags (#6805)
- [Fix] Pass /arch flags to the AVX targets on MSVC (#6807)
- [New] Add a runtime dispatch mechanism based on the available ISA (#6811)
- [Improvement] Share the AVX2 and AVX-512 compiler flags in defs.bzl (#6812)
- [Improvement] Move ISA selection out of Utils.cc (#6818)
- [Improvement] Move get_filelist to Utilities.cmake and rename it to read_from_defs_bzl (#6819)
- [Improvement] Make CPU ISA detection thread-safe (
InstructionSet.cccleanup) (#6829) - [Improvement] Fix early issues in the new platform dispatch (
FBGEMM_OVERRIDE_IN, AVX512-256 BF16 condition, public dispatch interface header) (#6838) - [Improvement] Route FP32 <-> BF16 conversions through the new platform dispatch mechanism (#6839)
Build / CI Improvements and Better Engineering
- [Fix] Fix a relocation overflow in
EmbeddingSpMDMAutovecfor large static builds (1de7bf19d) - [Improvement] Add v1.7.0 and v1.8.0 to the release compatibility table; bump build instructions to v1.8.0 (#5977)
- [Improvement] Resolve remaining checked-in unused parameters (#6201)
- [Improvement] Resolve generated backward optimizer warnings (#6264)
- [Improvement] Add two warnings for unused functions and results (#6268)
- [Improvement] Add -Wextra-qualification (#6270)
- [Improvement] Separate block and grid-plane counts in launch caps (#6271)
- [Improvement] Symbolize the remaining fbgemm asmjit kernels (#6274)
- [Improvement] Resolve PT2, Meta, and autograd warnings (#6275)
- [Improvement] Add the two warnings that only the internal build had (#6276)
- [Fix] Fix release Nova CUDA runner override; use g5.12xlarge, not r5.12xlarge (#6289)
- [Improvement] Enable -Wunused-variable on the CPU build (#6296)
- [New] Add a bounded product helper for GPU launches (#6307)
- [Fix] Prevent overflow in GenAI GPU launches (#6309)
- [Improvement] Enforce -Werror and -Wextra on GCC builds of CPU FBGEMM (#6317)
- [Improvement] Build the Linux wheels on OSDC runners (#6320)
- [Improvement] Move the Linux CI jobs to OSDC runners (#6321)
- [Improvement] Promote -Wsign-compare to an error (#6329)
- [Improvement] Promote -Wunused-parameter to an error in the xplat build (#6330)
- [Improvement] Promote -Wmaybe-uninitialized to an error (#6331)
- [Improvement] Promote -Warray-bounds to an error (#6332)
- [Improvement] Promote -Wglobal-constructors to an error (#6333)
- [Improvement] Promote unused-but-set warnings (#6334)
- [Improvement] Promote
-Wattributesto an error (#6335) - [Improvement] Promote
-Wzero-as-null-pointer-constant(#6336) - [Improvement] Promote
-Wshadowto an error (#6337) - [Improvement] Remove constructor parameter shadowing (#6338)
- [Improvement] Promote
-Wunused-parameterto an error in the OSS build (#6339) - [Improvement] Promote
-Wunknown-pragmasto an error (#6340) - [Fix] Derive build parallelism from nproc, not the host's socket count (#6361)
- [Fix] Make the RPATH rewrite part of building the library (#6363)
- [Fix] Fix CUDA memory link (#6394)
- [Improvement] Split out JitPerfMap cleanup (#6395)
- [Fix] Fix typo in regex for jinja environment (#6422)
- [Improvement] Remove stale skipIfRocm imports (#6453)
- [Improvement] Exclude asmjit from zero-null warnings (#6480)
- [Fix] Fix signed comparisons exposed by warning promotion (#6573)
- [Fix] Fix CPU library signed comparisons (#6582)
- [Improvement] Run GPU AUC tests and support float64 inputs (#6592)
- [Improvement] Restore existing nbit GPU FakeTensor coverage (#6612)
- [Fix] Fix broken Javadoc documentation link (#6632)
- [Fix] Fix unaligned Vec4 half access through local temporary arrays (#6659)
- [Fix] Keep GCC array-bounds diagnostics nonfatal (#6661)
- [Fix] Synchronize non-default stream before merge validation (#6663)
- [Improvement] Run SLL tests selectively in OSS CI (#6693)
- [Fix] Fix GEMM NaN beta handling and CUDA vector asm memory effects (#6705)
- [Improvement] Skip unsupported experimental CK fused MoE builds (#6791)
- [Fix] Fix
-Wunused-templateerrors for LLVM 23 (#6808) - [Improvement] Mark
directConvRowSum[[maybe_unused]]for LLVM 23 (#6809) - [Improvement] Stop pytorch-bot from pushing ciflow/binaries tags (#6851)
- [Fix] Remove the ciflow/binaries auto-labeler (#6855)