Skip to content

Releases: pytorch/torchrec

v1.1.0-rc4

30 Jan 19:33
Compare
Choose a tag to compare
v1.1.0-rc4 Pre-release
Pre-release
Update version

v1.1.0-rc3

24 Jan 17:27
Compare
Choose a tag to compare
v1.1.0-rc3 Pre-release
Pre-release
Remove TensorDict from requirements

v1.1.0-rc2

23 Jan 20:34
Compare
Choose a tag to compare
v1.1.0-rc2 Pre-release
Pre-release
Revert "Revert "add NJT/TD support in test data generator (#2528)""

This reverts commit e5e25650679a4c9d1655390ddf8be28169dd5981.

v1.1.0-rc1

22 Jan 18:46
Compare
Choose a tag to compare
v1.1.0-rc1 Pre-release
Pre-release

first release candidate for v1.1.0

v1.0.0

21 Oct 22:05
Compare
Choose a tag to compare

TorchRec 1.0.0 Stable Release Notes

We are excited to announce the release of TorchRec 1.0.0, the official stable release for TorchRec! This release is done in conjunction with FBGEMM 1.0.0 release.

Stable Release

Core portions of the TorchRec library are now marked as stable, with the following guarantees:

  • Backward compatability guarantees, with breaking changes announced two versions ahead of time.
  • Enhanced documentation for all stable features of TorchRec
  • Functionality guarantees through unit test frameworks for each stable feature, running on every merged PR and release.
  • No performance guarantees. However, we are committed to providing support on a best-effort basis.

Improvements

Key improvements have been added to TorchRec for the reliability and UX of the library as part of the stable release. The following main features have been added as part of the stable release:

  • TorchRec's documentation has been completely revamped, with added overview of how TorchRec works, high level architecture and concepts, and simplification of the API references for TorchRec stable features! Check out the new documentation here.
  • The TorchRec tutorial on pytorch.org has been completely redone, with a new, comprehensive end-to-end tutorial of TorchRec highlighting all the stable features! Check it out the new tutorial here.
  • A unit test framework for API compatability have been added under torchrec/schema to test compatibility for all TorchRec stable features.
  • The unit test CI for TorchRec on Github has been enabled on GPU, running on nightly versions of TorchRec and manually validated during release time.

Changelog

Revamped TorchRec inference solution with torch.fx and TorchScript #2101

Faster KJT init #2369

Improvements to TorchRec Train Pipeline #2363 #2352 #2324 #2149 #2181

PT2 Dynamo and Inductor compatibility work with TorchRec and train pipeline #2108 #2125 #2130 #2141 #2151 #2152 #2162 #2176 #2178 #2228 #2310

VBE improvements #2366 #2127 #2215 #2216 #2256

Replace ShardedTensor with DTensor #2147 #2167 #2169

Enable pruning of embedding tables in TorchRec inference #2343

torch.export compatibility support with TorchRec data types and modules #2166 #2174 #2067 #2197 #2195 #2203 #2246 #2250 #1900

Added benchmarking for TorchRec modules #2139 #2145

Much more optimized KeyedTensor regroup with custom module KTRegroupAsDict with benchmarked results #2120 #2158 #2210

Overlap comms on backwards pass #2117

OSS quality of life improvements #2273

v1.0.0-rc2

08 Oct 23:46
Compare
Choose a tag to compare
v1.0.0-rc2 Pre-release
Pre-release

2nd Release candidate for v1.0.0

v1.0.0-rc1

12 Sep 17:52
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release

Release candidate 1 for stable release

v0.8.0

23 Jul 18:00
Compare
Choose a tag to compare

New Features

In Training Embedding Pruning (ITEP) for more efficient RecSys training

Provides a representation of In-Training Embedding Pruning, which is used internally at Meta for more efficient RecSys training by decreasing memory footprint of embedding tables. Pull Request: #2074 introduces the modules into TorchRec, with tests showing how to use them.

Mean Pooling

Mean pooling enabled on embeddings for row-wise and table-row-wise sharding types in TorchRec. Mean pooling mode done through TBE (table-batched embedding) won’t be accurate for row-wise and table-row-wise sharding types, which modify the input due to sharding. This feature efficiently calculates the divisor using caching and overlapping in input dist to implement mean pooling, which had proved to be much more performant than out-of-library implementations. PR: #1772

Changelog

Torch.export (non-strict) compatibility with KJT/JT/KT, EBC/Quantized EBC, sharded variants #1815 #1816 #1788 #1850 #1976 and dynamic shapes #2058

torch.compile support with TorchRec #2045 #2018 #1979

TorchRec serialization with non-strict torch.export for regenerating eager sparse modules (EBC) from IR for sharding #1860 #1848 with meta functionalization when torch.exporting #1974

More benchmarking for TorchRec modules/data types #2094 #2033 #2001 #1855

More VBE support (data parallel sharding) #2093 (EmbeddingCollection) #2047 #1849

RegroupAsDict module for performance improvements with caching #2007

Train Pipeline improvements #1967 #1969 #1971

Bug Fixes and library improvements

v0.8.0-rc1

17 Jun 13:44
Compare
Choose a tag to compare
v0.8.0-rc1 Pre-release
Pre-release
Update setup and version for release 0.8.0

v0.7.0

25 Apr 01:39
Compare
Choose a tag to compare

No major features in this release

Changelog

  • Expanding out ZCH/MCH
  • Increased support with Torch Dynamo/Export
  • Distributed Benchmarking introduced under torchrec/distributed/benchmarks for inference and training
  • VBE optimizations
  • TWRW support for VBE (I think this happened in the last release, Josh can confirm)
  • Generalized train_pipeline for different pipeline stage overlapping
  • Autograd support for traceable collectives
  • Output dtype support for embeddings
  • Dynamo tracing for sharded embedding modules
  • Bug fixes