Skip to content

Bump to libtorch 2.8.0#1409

Open
TroyHernandez wants to merge 2 commits intomlverse:mainfrom
cornball-ai:libtorch/v2.8.0
Open

Bump to libtorch 2.8.0#1409
TroyHernandez wants to merge 2 commits intomlverse:mainfrom
cornball-ai:libtorch/v2.8.0

Conversation

@TroyHernandez
Copy link
Contributor

Summary

  • Update libtorch from 2.7.1 to 2.8.0
  • Generate Declarations-2.8.0.yaml from PyTorch v2.8.0 source
  • Fix Linux download URL format (2.8.0 dropped cxx11-abi from filenames)
  • Update lantern CMakeLists.txt to match

Why 2.8.0?

PyTorch 2.8 introduced the stable libtorch ABI, which means code compiled against 2.8 can link with 2.9, 2.10, etc. without recompiling. This is a good foundation for future upgrades.

API Changes

No breaking changes. Only 3 new functions added:

  • _fused_rms_norm
  • _weight_int4pack_mm_with_scales_and_zeros
  • _grouped_mm

Testing

Built and tested locally on Ubuntu 24.04 with CUDA 12.8. Basic tensor operations and matmul chains work correctly.

Notes

This PR includes the code changes but lantern binaries would need to be rebuilt against libtorch 2.8.0 and uploaded to the CDN.

Happy to help with any adjustments needed.

🤖 Generated with Claude Code

TroyHernandez and others added 2 commits February 4, 2026 19:32
- Update torch_version to 2.8.0
- Fix Linux libtorch URL format (no longer has cxx11-abi in filename)
- Add Declarations-2.8.0.yaml generated from PyTorch v2.8.0
- Update torchgen default version to 2.8.0

New functions in 2.8.0:
- _fused_rms_norm
- _weight_int4pack_mm_with_scales_and_zeros
- _grouped_mm

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Bump TORCH_VERSION to 2.8.0
- Update Linux URL format (no cxx11-abi in 2.8.0 filenames)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dfalbel dfalbel added the lantern Use this label if your PR affects lantern so it's built in the CI label Feb 5, 2026
@dfalbel
Copy link
Member

dfalbel commented Feb 5, 2026

Thanks @TroyHernandez !

We'll also need to update the lantern headers in https://github.com/mlverse/torch/tree/main/src/lantern/headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lantern Use this label if your PR affects lantern so it's built in the CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants