Code Monkey home page Code Monkey logo

pytorch_lightning.utilities.exceptions.MisconfigurationException: The provided lr scheduler `CosineAnnealingLR` doesn't follow PyTorch's LRScheduler API. You should override the `LightningModule.lr_scheduler_step` hook with your own logic if you are using a custom LR scheduler. about mobiler2l HOT 2 CLOSED

dhgras avatar dhgras commented on June 16, 2024
pytorch_lightning.utilities.exceptions.MisconfigurationException: The provided lr scheduler `CosineAnnealingLR` doesn't follow PyTorch's LRScheduler API. You should override the `LightningModule.lr_scheduler_step` hook with your own logic if you are using a custom LR scheduler.

from mobiler2l.

Comments (2)

dhgras avatar dhgras commented on June 16, 2024

I can roughly confirm that there is a compatibility issue between versions pytorch, cuda, and pytorch-lighting.
image

So how should I configure the ngp_pl environment on my device, which is cuda=11.8?

from mobiler2l.

galalalala avatar galalalala commented on June 16, 2024

Hi, ngp_pl environment is bit tricky to setup as its dependecies such as torch-scatter and apex needs a specific cuda version. That's why we recommend to use a sepertate conda environment with cuda=11.6 for ngp_pl. I remember apex will throw some building errors if using torch=2.0 + cuda=11.7 back then. That being said, it would be easier to use the recommended configurations to setup ngp_pl instead of modifying the codebase.

from mobiler2l.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.