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
- Easily switch from running on CPU to GPU (Apple Silicon, CUDA, …), TPU, multi-GPU or even multi-node training
@@ -358,65 +356,62 @@ In the spectrum from raw PyTorch to fully managed PyTorch Lightning, Fabric give
358
356
359
357
----
360
358
361
-
### [Read the Fabric docs](https://lightning.ai/docs/fabric/stable/)
359
+
<divalign="center">
360
+
<a href="https://lightning.ai/docs/fabric/stable/">Read the Lightning Fabric docs</a>
361
+
</div>
362
362
363
363
----
364
364
365
-
##Lightning Apps: Build AI products and ML workflows
365
+
# Lightning Apps: Build AI products and ML workflows
366
366
367
-
Once you're done building models, publish a paper demo or build a full production end-to-end ML system with Lightning Apps. Lightning Apps remove the cloud infrastructure boilerplate so you can focus on solving the research or business problems. Lightning Apps can run on the Lightning Cloud, your own cluster or a private cloud.
368
-
369
-
[Browse available Lightning apps here](https://lightning.ai/)
367
+
Lightning Apps remove the cloud infrastructure boilerplate so you can focus on solving the research or business problems. Lightning Apps can run on the Lightning Cloud, your own cluster or a private cloud.
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. Focus on component logic and not engineering.
379
-
380
-
Use components on their own, or compose them into full-stack AI apps with our next-generation Lightning orchestrator. to package your code into Lightning components which can plug into your existing ML workflows.
373
+
## Hello Lightning app world
381
374
382
-
## Run your first Lightning App
383
-
384
-
1. Install a simple training and deployment app by typing:
385
-
386
-
```bash
387
-
# install lightning
388
-
pip install lightning
389
-
390
-
lightning install app lightning/quick-start
391
-
```
392
-
393
-
1. If everything was successful, move into the new directory:
394
-
395
-
```bash
396
-
cd lightning-quick-start
397
-
```
375
+
```python
376
+
# app.py
377
+
import lightning as L
398
378
399
-
1. Run the app locally
379
+
classTrainComponent(L.LightningWork):
380
+
defrun(self, x):
381
+
print(f'train a model on {x}')
400
382
401
-
```bash
402
-
lightning run app app.py
403
-
```
383
+
classAnalyzeComponent(L.LightningWork):
384
+
defrun(self, x):
385
+
print(f'analyze model on {x}')
404
386
405
-
1. Alternatively, run it on the public Lightning Cloud to share your app!
0 commit comments