Commit Graph

9305 Commits

Author SHA1 Message Date
dependabot[bot] 09ae070d2d
Update uvicorn requirement from <0.19.1 to <0.21.2 in /requirements (#17314)
Updates the requirements on [uvicorn](https://github.com/encode/uvicorn) to permit the latest version.
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/uvicorn/compare/0.0.1...0.21.1)

---
updated-dependencies:
- dependency-name: uvicorn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 18:28:14 +00:00
Jirka Borovec 9417b30c71
ci: update OS for pkg release (#17455) 2023-04-24 12:35:46 -04:00
Ethan Harris 57ad46258b
[App] Fix resolution of latest version in CLI (#17351)
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2023-04-24 16:14:36 +00:00
Jirka Borovec a5c43d3b2b
docs: fix past versions location (#17432) 2023-04-24 14:07:22 +00:00
Jirka Borovec e38e2cccd4
set codecov as informational (#17453) 2023-04-24 09:18:32 -04:00
Adrian Wälchli d9b4ebd726
Enable precision autocast for `LightningModule` step methods in Fabric (#17439) 2023-04-24 11:50:59 +00:00
Ethan Harris e82672414e
App: Fix AppState, streamlit example (#17452) 2023-04-24 07:27:35 -04:00
Jirka Borovec 0c4b9a63a1
hpu: add extra warning after removal (#17372)
Co-authored-by: Luca Antiga <luca.antiga@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-24 11:18:57 +01:00
Irina 0fdd76dab0
feat: customize gradio components with lightning colors (#17054)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Yurij Mikhalevich <yurij@grid.ai>
2023-04-24 09:36:19 +00:00
Adrian Wälchli 20303e4736
Add Fabric.launch to Fabric methods section (#17437)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-24 10:28:52 +02:00
Jirka Borovec 44ce386135
req: formatting (#17335) 2023-04-24 09:19:20 +01:00
Adrian Wälchli 0631fa02ef
Handle edge case in `Fabric.setup()` when model has no parameters (#17441) 2023-04-24 10:13:36 +02:00
Adrian Wälchli 2e5a7f9cf5
Fix `num_nodes` not set for FSDPStrategy (#17438) 2023-04-24 10:12:05 +02:00
thomas chaton 3688b6495d
Resolve Lightning App with remote storage (#17426)
* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

---------

Co-authored-by: thomas <thomas@thomass-MacBook-Pro.local>
2023-04-23 18:08:11 -04:00
Adrian Wälchli 92b379e90a
Document access to Fabric attributes inside LightningModule (#17440) 2023-04-22 09:10:06 +02:00
Adrian Wälchli 877d95f8d7
Minor Fabric backward refactor (#17433) 2023-04-21 19:36:46 +00:00
Adrian Wälchli 0ee71d6a7a
Fix LightningModule step methods bypassing DDP wrapper in Fabric (#17424)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-21 15:29:32 -04:00
Jirka Borovec 111d1ba088
ruff: fixing flake8-comprehensions (#17385) 2023-04-21 09:07:58 +00:00
Carlos Mocholí 8dac251273
[TPU] Fix PjRT tests (#17408) 2023-04-19 16:39:00 +02:00
Carlos Mocholí 5edb3b5126
[TPU] Do not delete jobs with "keepalive" in the name (#17411)
[TPU] Do not delete jobs with "keepalive" in the name
2023-04-19 14:02:02 +02:00
Jirka Borovec 26a549e87f
drop failing e2e quick app (#17409)
* drop failing e2e quick app

* codeowners

* Apply suggestions from code review
2023-04-19 12:31:56 +02:00
Adrian Wälchli 21ae19c69f
Add dynamo RunIf skip condition (#17404)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-19 01:09:42 +02:00
Liyang90 47726391ad
[TPU] Add support for PJRT from PyTorch/XLA 2.0 (#17352)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2023-04-18 18:52:36 +02:00
Carlos Mocholí b0b5b9ce57
[TPU] Fix workflow (#17406)
* [TPU] Fix workflow

* Whitespace
2023-04-18 18:11:03 +02:00
Carlos Mocholí 90ad36795a
[TPU] Refactor availability check (#17384) 2023-04-18 17:52:13 +02:00
Dmitry Frolov 7893d22b6f
Bump default E2E tests image version (#17403)
Bump default E2E image version

Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
2023-04-18 10:54:59 -04:00
Carlos Mocholí 3fd4d96cf3
Fix PyTorch MPS test failure in master (#17405) 2023-04-18 16:53:53 +02:00
Ryan Smith 8d5a91a2dd
Update Fabric CPU tests to work on GPU machines (#17391) 2023-04-18 14:03:40 +00:00
Carlos Mocholí 369ae61f85
[TPU] Fix workflow condition (#17379) 2023-04-18 08:30:56 -04:00
Carlos Mocholí ae8838b0a1
GPU suggestion does not require devices anymore (#17217) 2023-04-18 13:12:16 +02:00
Carlos Mocholí 3511de3693
Replace range with RandomDataset in example (#17325) 2023-04-18 13:10:31 +02:00
belerico cf5e63dcfa
Fabric PPO example `share_data` flag (#17397) 2023-04-18 12:56:12 +02:00
Ruslan Mukhametshin 7312b3f321
Add `header_style` argument to `RichModelSummary` callback (#16788) 2023-04-18 12:55:55 +02:00
Jirka Borovec 6da4b0f490
skip some App tests (#17401)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-18 11:20:07 +02:00
Carlos Mocholí c22276f945
Update `from_datasets` to support arbitrary iterables (#17402) 2023-04-17 23:27:24 +00:00
Egor Spirin bb4e495627
Wraps sharded model for proper access to it `state_dict` in `FSDP` strategy (#16558)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2023-04-18 01:03:43 +02:00
Adrian Wälchli affe72cc3e
Add test for compiling FSDP model in Fabric (#17394) 2023-04-17 15:34:23 -04:00
Carlos Mocholí 16377339cb
Remove reference to outdated Kaggle tutorial (#17390) 2023-04-17 19:12:44 +02:00
Adrian Wälchli 71df9962b6
Update pip upgrade command in CI (#17395) 2023-04-17 17:05:57 +02:00
Carlos Mocholí b02d9c1590
Cleanup the `is_distributed` property [TPU] (#17381) 2023-04-17 16:14:07 +02:00
Adrian Wälchli 0dc42f523e
Save and load sharded checkpoints with FSDP in Fabric (#17323)
Co-authored-by: Luca Antiga <luca.antiga@gmail.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-16 14:11:49 -04:00
Carlos Mocholí 13905a3464
Support all `CombinedLoader` modes during evaluation (#17163) 2023-04-16 20:01:52 +02:00
Ishan Dutta e9d6856355
NumPy to Torch for lightning/fabric (#17291)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2023-04-15 15:21:56 +00:00
Carlos Mocholí 97a61868fb
Sync module states during non-fit (#17370)
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
2023-04-15 02:35:51 +00:00
Ishan Dutta 9becc15ddf
Remove numpy from src/lightning/pytorch and use torch only (#17278)
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 02:26:56 +00:00
Arturo Ghinassi b5d6bb6e8d
Added return in `convert_zero_checkpoint_to_fp32_state_dict` (#17342)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 02:18:16 +00:00
OneSixth a69fbcf71b
Add a warning to the detect_anomaly flag. (#17380)
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
2023-04-15 02:08:48 +00:00
Ryan Smith e1ce887fde
Fix `load_from_checkpoint` to return model on correct device (#17308)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
2023-04-15 02:08:00 +00:00
Alican Bozkurt 84eb82a595
change STEP_OUTPUT type from dict to mapping (#17387) 2023-04-15 02:02:11 +00:00
Jirka Borovec 8e7b949ef3
App: drop flaky doctest example (#17366)
* skip app dcotest

* Proposed change

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* delete

---------

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-14 23:48:03 +02:00