Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Fix typo in pruning callback #19979

Merged
merged 6 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Once the file is uploaded, we are putting the file into the :class:`~lightning.a
Implement the fist_files method
*******************************

First, in this method, we get the file in the file server filesystem, if available in the Drive. Once done, we list the the files under the provided paths and return the results.
First, in this method, we get the file in the file server filesystem, if available in the Drive. Once done, we list the files under the provided paths and return the results.

.. literalinclude:: ./app.py
:lines: 12, 100-130
Expand Down
2 changes: 1 addition & 1 deletion docs/source-app/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Build models, ML components and full stack AI apps ⚡ *Lightning fast*.
Build self-contained, components
********************************
Use Lightning, the hyper-minimalistic framework, to build machine learning components that can plug into existing ML workflows.
A Lightning component organizes arbitrary code to run on the cloud, manage its own infrastructure, cloud costs, networking, and more.
A Lightning component organizes arbitrary code to run on the cloud, manages its own infrastructure, cloud costs, networking, and more.
Focus on component logic and not engineering.

Use components on their own, or compose them into full-stack AI apps with our next-generation Lightning orchestrator.
Expand Down
2 changes: 1 addition & 1 deletion docs/source-app/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ We will discuss ``application_testing`` in a bit, but first let's review the str
LightningTestApp
^^^^^^^^^^^^^^^^^

The :class:`lightning.app.testing.testing.LightningTestApp` class is available to use for provisioning and setting up your testing needs. Note that you do not need this class to move forward with testing. Any application that inherits ``LightningApp`` should suffice as long as you override the correct methods. Reviewing the TestLightnigApp we see some overrides that are already there. Please revuew the class for more information.
The :class:`lightning.app.testing.testing.LightningTestApp` class is available to use for provisioning and setting up your testing needs. Note that you do not need this class to move forward with testing. Any application that inherits ``LightningApp`` should suffice as long as you override the correct methods. Reviewing the TestLightnigApp we see some overrides that are already there. Please review the class for more information.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Publish a Lightning Component
#############################

**Audience:** Users who want to build a Ligthtning Component (Component) to publish to the Lightning Gallery
**Audience:** Users who want to build a Lightning Component (Component) to publish to the Lightning Gallery

----

Expand Down
2 changes: 1 addition & 1 deletion src/lightning/pytorch/callbacks/pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __init__(
raise MisconfigurationException(
f"`pruning_fn` is expected to be a str in {list(_PYTORCH_PRUNING_FUNCTIONS.keys())}"
f" or a PyTorch `BasePruningMethod`. Found: {pruning_fn}."
" HINT: if passing a `BasePruningMethod`, pass the the class, not an instance"
" HINT: if passing a `BasePruningMethod`, pass the class, not an instance"
)

# need to ignore typing here since pytorch base class does not define the PRUNING_TYPE attribute
Expand Down
Loading