Comments (3)
Fixed it. Thank you @rohitgr7
from mlops-basics.
@rohitgr7 we are logging in to the logger. No need to return the loss unless you want perform some operation on the overall loss in an epoch. I have done that in theweek1
for validation step. Refer here: https://github.com/graviraja/MLOps-Basics/blob/main/week_1_wandb_logging/model.py. If you are returning the loss you can access it in training_epoch_end
method.
from mlops-basics.
@graviraja I checked it doesn't look in logged_metrics to check for loss and perform backprop. Getting this warning when nothing is returned from training_step
: training_step returned None. If this was on purpose, ignore this warning...
Also in the docs it's mentioned that if nothing is returned then it will skip the corresponding training_step: https://pytorch-lightning.readthedocs.io/en/latest/common/lightning_module.html#training-step
A minimal example to reproduce: https://colab.research.google.com/drive/11qA_1RxcEcHkiY-Xn5EsOR8ZH0wG8O1j#scrollTo=AAtq1hwSmjKe
from mlops-basics.
Related Issues (18)
- [Bug] Getting an error related to colorlog during the training HOT 2
- Different module metrics for train/val HOT 2
- Advice how to deploy and run my docker image on my own local machine HOT 7
- Potential Error in Blog of Week 0 HOT 1
- Metric not matched between in `early_stopping_callbacks` (Week 1) HOT 1
- A question on week_0 HOT 5
- How to push a container to specific repository in GitHub Actions? HOT 2
- What is Postman? How to set it up? HOT 1
- Does it work on Windows? HOT 1
- AWS Lambda Function: Test error HOT 3
- Change Dimension of Softmax from 0 to 1 in modules from week 1 to 4
- Key error on Week1 HOT 2
- Cannot use `load_dataset('glue', 'cola')` in Week0 requirements.txt
- Error with numpy and transformers modules
- DVCFiles alternative not working
- Lambda Environent Support for SQLite3 Older Versions HOT 2
- Malformed URLs HOT 2
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 mlops-basics.