Comments (3)
fixed! try again
from lightning.
wait... fixing again
from lightning.
Hi William,
@williamFalcon
After change the path,
One more when cuda training...
simon@simon-X299:~/Desktop/pytorch-lightning/demo$ python fully_featured_trainer.py
RUNNING MULTI GPU. GPU ids: ['0']
loading model...
running on gpu...
model built
gpu available: True, used: False
Name Type Params
0 c_d1 Linear 392500
1 c_d1_bn BatchNorm1d 1000
2 c_d1_drop Dropout 0
3 c_d2 Linear 5010
validating...
Caught exception in worker thread expected type torch.FloatTensor but got torch.cuda.FloatTensor
Traceback (most recent call last):
File "/home/simon/anaconda3/lib/python3.6/site-packages/test_tube/argparse_hopt.py", line 29, in optimize_parallel_gpu_private
results = train_function(trial_params)
File "fully_featured_trainer.py", line 36, in main_local
main(hparams, None, None)
File "fully_featured_trainer.py", line 105, in main
trainer.fit(model)
File "/home/simon/anaconda3/lib/python3.6/site-packages/pytorch_lightning/models/trainer.py", line 223, in fit
_ = self.validate(model, self.val_dataloader, max_batches=self.nb_sanity_val_steps)
File "/home/simon/anaconda3/lib/python3.6/site-packages/pytorch_lightning/models/trainer.py", line 154, in validate
for i, data_batch in enumerate(dataloader):
File "/home/simon/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/simon/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/simon/anaconda3/lib/python3.6/site-packages/torchvision/datasets/mnist.py", line 95, in getitem
img = self.transform(img)
File "/home/simon/anaconda3/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 60, in call
img = t(img)
File "/home/simon/anaconda3/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 163, in call
return F.normalize(tensor, self.mean, self.std, self.inplace)
File "/home/simon/anaconda3/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 208, in normalize
tensor.sub_(mean[:, None, None]).div_(std[:, None, None])
RuntimeError: expected type torch.FloatTensor but got torch.cuda.FloatTensor
from lightning.
Related Issues (20)
- 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
- Trainer does not wait for neptune logger completion and logger connection stays open unless explicitly closed HOT 1
- Validation does not produce any output in PyTorch Lightning using my UNetTestModel
- Unable to extend FSDPStrategy to HPU accelerator HOT 7
- SaveConfigCallback.save_config is conflict with DDP HOT 1
- Logging Documentation Does not Detail How to Access the Logged Values during the fit loop
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.