Comments (9)
let’s keep it as is for now. i don’t want to introduce breaking changes often (pytorch-lightning)
from lightning.
yeah, the problem was that there were issues with the test models being outside of the package.
But if you want to make the change, I do think it would be cleaner. Feel free to submit a PR! It would be super helpful!
Tests will also need to be updated.
from lightning.
Awesome PR, thanks for submitting! Interested in looking at any of the other issues we need help with?
from lightning.
I was thinking about some workaround automatic testing, formation and coverage...
I will prepare another PR :)
from lightning.
amazing! That would be great. Right now a big issue is having to manually run the GPU tests for free.
I'll create an issue to track these changes there
from lightning.
I am new to python packages, modules and stuff but I think that now that the directory examples
is in the root, the setup.py
detects it as a package with find_packages()
.
This results in anyone installing your pytorch-lightning
package to also have a examples
package installed into their environment.
As a matter of fact, it is preventing me from loading one of my local module named examples
.
from lightning.
The above commit could solve this.
It simply excludes the directory from the package.
Note that it also excludes the tests
which should be causing the same type of problems.
I will proceed with a pull request if it makes sense to you @williamFalcon @Borda.
from lightning.
I do agree with the change, or even explicitly name the 'pytorch-lightning'
Btw, why the package is imported pytorch...
not just torch...
such as PyTorch
from lightning.
Whitelisting as you suggest seems a good idea BUT doing so, sub-packages will not be imported.
About the name, I also think torch-lightning
makes a lot of sense.
from lightning.
Related Issues (20)
- Mixing the order of `--config` and `fit` in LightningCLI can cause confusion HOT 7
- Support TorchEval HOT 2
- Extending Argument Linking for more complicate relationship HOT 2
- Training stuck when running on Slurm with multiprocessing HOT 1
- PyTorch Lightning FSDP takes more memory than PyTorch FSDP HOT 5
- Incompatible LightningModule.to_onnx type-hint HOT 1
- LightningCLI, WandbLogger and save_hyperparameters() inconsistencies
- `log_dir` contains both forward and backward slashes as path separator when using remote file location as `default_root_dir` on windows
- ValueError: dictionary update sequence element #0 has length 1; 2 is required
- Expected all tensors to be on the same device... using quantized model with deepspeed zero3
- Huggingface model quantization has odd behavior with BitsandbyesPrecisionPlugin HOT 3
- `TensorBoardLogger` fails with remote FS (azure)
- Pydantic AttributeError when using LightningDataModule
- Loading from a checkpoint does not work properly in distributed training
- Optimizer step based validation trigger HOT 1
- Log `TensorBoard` histograms
- PTL 2.2 specifically causes torchscript errors when loaded in any environment not containing PTL 2.2
- When calling trainer.test() train_dataloader is also validated, which makes no sense HOT 2
- Support `ThunderModule` models HOT 2
- Calculated loss differs from logged loss in training_step (even if seed_everything, deterministic set to true and shuffle to false) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.