You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source-pytorch/deploy/production_advanced_2.rst
+30-17Lines changed: 30 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,20 @@ Deploy models into production (advanced)
7
7
8
8
----
9
9
10
-
*********************************
11
-
Compile your model to TorchScript
12
-
*********************************
13
-
`TorchScript <https://pytorch.org/docs/stable/jit.html>`_ allows you to serialize your models in a way that it can be loaded in non-Python environments.
14
-
The ``LightningModule`` has a handy method :meth:`~lightning.pytorch.core.LightningModule.to_torchscript` that returns a scripted module which you
15
-
can save or directly use.
10
+
************************************
11
+
Export your model with torch.export
12
+
************************************
13
+
14
+
`torch.export <https://pytorch.org/docs/stable/export.html>`_ is the recommended way to capture PyTorch models for
15
+
deployment in production environments. It produces a clean intermediate representation with strong soundness guarantees,
16
+
making models suitable for inference optimization and cross-platform deployment.
17
+
You can export any ``LightningModule`` using the ``torch.export.export()`` API.
Copy file name to clipboardExpand all lines: src/lightning/fabric/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
25
25
26
26
### Fixed
27
27
28
-
-
28
+
- Fixed `EADDRINUSE` errors in distributed tests with port manager and retry logic ([#21309](https://github.com/Lightning-AI/pytorch-lightning/pull/21309))
0 commit comments