Repository navigation
Major Features and Improvements
Train/Eval/Predict/Export
- Restore learning rate scheduler progress when resuming training in #664
- Align delta dumps with dense model export in #660
Model
- Add LLM-based generative recommendation (GenRec) with configuration-driven prompt generation for text, ID, and SID features, and end-to-end support for training, prediction, and export for serving in #625 #663 #685 #662 #687 #689
- Add OneRank generative ranking with DlrmHSTUOneRank in #661 #670
Feature
- Add
regex_replace_featureand align tokenize and text normalization configs with FG behavior in #672 #673 - Support weighted ID features with optional use of weights in embedding pooling in #648
Dataset
- Support list-column labels in #652
- Support shuffle settings in ODPS and Kafka readers in #683
- Improve ODPS and Parquet data sharding to align batch counts across ranks, and support
data_config.min_batch_sizeto skip undersized final training batches in #677 - Restore ODPS sessions by partition index when resuming training in #681
DynamicEmbedding
- Support weighted ID features on DynamicEmbedding tables in #668
- Support probabilistic admission of new keys in #680
Optimizer
- Add the FTRL sparse optimizer for DynamicEmbedding tables in #682 and regular embedding tables with the TorchEasyRec FBGEMM/TorchRec builds in #691
- Support
initial_accumulator_valueon DynamicEmbedding tables in #669
Upgrade
- Upgrade PyTorch to v2.14.0, TorchRec to v1.9.0, FBGEMM to v1.9.0, TensorRT to v11.1, Triton to v3.8.0, and pyfg to v1.0.7 in #691
- Update the PPU image to SDK v2.2.0 with PyTorch v2.13.0 in #690
Note
For TorchEasyRec 1.5.x, use Docker image version 1.5 for GPU and CPU. The PPU image remains 1.4-ppu with PyTorch v2.13.0; the 1.5.0 PPU requirements provide compatible FBGEMM/TorchRec v1.9.0 wheels.
- For the GPU version (CUDA 13.0) with TensorRT:
mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:1.5-cu130- PyTorch: v2.14.0 CUDA: v13.0 FBGEMM: v1.9.0 TorchRec: v1.9.0 TensorRT: v11.1 Python: v3.11
- Supported GPUs:
sm_75 / 80 / 86 / 90 / 100 / 120. It supports Turing (T4), Ampere/Ada (A10/A30/A100/L4/L20), Hopper (H100/H200), Blackwell (B100/B200), and other GPUs with CC 7.5-12.0. - Driver requirement: NVIDIA driver R580 or later (>= 580.65.06). For older drivers, set
LD_LIBRARY_PATH=/usr/local/cuda-13/compat.
- For the GPU version (CUDA 12.6):
mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:1.5-cu126- PyTorch: v2.14.0 CUDA: v12.6 FBGEMM: v1.9.0 TorchRec: v1.9.0 Python: v3.11
- Supported GPUs:
sm_60 / 70 / 75 / 80 / 86 / 90. It supports Pascal (P100), Volta (V100), Turing (T4), Ampere/Ada (A10/A30/A100/L4/L20), Hopper (H100), and other GPUs with CC 6.0-9.0. It does not support Blackwell GPUs. - Driver requirement: NVIDIA driver R525 or later (>= 525.60.13).
- For the CPU version:
mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easyrec/tzrec-devel:1.5-cpu- PyTorch: v2.14.0 FBGEMM: v1.9.0 TorchRec: v1.9.0 Python: v3.11
The op wheels (FBGEMM, DynamicEmbedding, HSTU) ship no PTX, so a GPU whose architecture is not listed above cannot JIT fall back. Pick the image by driver version first, then by compute capability.
When upgrading from 1.4.x:
- CUDA 12.9 images and the
cu129pip extra are removed. Usecu130orcu126according to your GPU and driver. - For pip installations, select a device extra:
tzrec[cpu],tzrec[cu126],tzrec[cu130], ortzrec[ppu]. A barepip install tzrecnow requires the PyTorch stack to be installed already.
Bug Fixes and Other Changes
- [bugfix] bake config-order dense keys in distributed embedding export by @eric-gecheng in #654
- [bugfix] reset train metric when restoring a fine-tune checkpoint by @tiankongdeguiji in #651
- [feat] checkpoint success marker and list-column labels by @tiankongdeguiji in #652
- [ci] make the claude review tool allowlist binding and raise its timeout by @tiankongdeguiji in #656
- [feat] resolve an unsuffixed model.ckpt when finding the latest checkpoint by @tiankongdeguiji in #657
- [ci] hand the review subagents the PR diff as a file by @tiankongdeguiji in #658
- [doc] document global_embedding_constraints and data_parallel optimizer ownership by @tiankongdeguiji in #659
- [bugfix] post AI review inline comments instead of buffering them by @tiankongdeguiji in #665
- [bugfix] sort globbed input files so every rank reads the same file order by @tiankongdeguiji in #667
- @linzb-xyz made their first contribution in #671
- [doc] align feature docs with fg behavior by @tiankongdeguiji in #674
- [bugfix] honor sequence_fields on simple sequence features by @tiankongdeguiji in #675
- [refactor] add generic LossConfig.weight, drop ListwiseRankLoss.alpha by @tiankongdeguiji in #676
- [bugfix] preserve absent KJT weights in exported graphs by @eric-gecheng in #679
- [bugfix] apply enable_global_average_loss to the list-wise rank loss by @tiankongdeguiji in #678
- [feat] support session_name in listwise_rank_loss and jrc_loss by @tiankongdeguiji in #684
New Contributors
- @linzb-xyz made their first contribution in #671
- @VERY-YCX made their first contribution in #661
Full Changelog: v1.4.0...v1.5.0