Comments (1)
@jakub-dyno If the epoch size is not evenly divisible by the gradient accumulation size, the optimizer will step anyway on the last iterations. The partial accumulation can't be kept around in memory and continued in the next epoch.
The loss over the accumulation window is scaled regardless of whether it is the full window or not:
If you'd like to change it, a PR for this would be welcome. But it could be a bit involved.
from lightning.
Related Issues (20)
- How to config WandbLogger with LightingCLI ? HOT 1
- enable loading `universal checkpointing` checkpoint in `DeepSpeedStrategy` HOT 1
- PowerSGD to FSDP Strategy
- Installing lightning 2.3.3 also installs numpy<3 HOT 6
- Using Stochastic Weight Averaging (SWA) and LearningRateFinder simultaneously can cause issues:
- Cannot pass `schedule` for `PyTorchProfiler` using `LightningCLI` HOT 6
- ModelCheckpoint save ckpts at the end of every epoch even in step-saving strategy
- training time increase epoch by epoch HOT 1
- `pkg_resources` Deprecation Warnings on import HOT 2
- module statistics has no attribute mean HOT 3
- Improve error message when object is passed to Trainer callbacks HOT 2
- Sometimes I get Dataset Errors when using the lightning module in a distributed manor
- Checkpoint silently not correctly restored. HOT 3
- dirpath isn't updated when logger chages dir after first run
- wandblogger : File handles cannot be properly released HOT 1
- Please allow automatic optimization for multiple optimizers again. HOT 2
- Sometimes error when logging model graph with `functional.interpolate` and `deterministic=True`
- Adding support for Python 12? HOT 2
- Pytorch FSDPStrategy saving checkpoint behavior work correctly?
- pl.TrainResult not found in 2.3.3 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.