Giter Club home page Giter Club logo

Comments (7)

SHEN2BAIYI avatar SHEN2BAIYI commented on June 2, 2024 1

Why are we combining accelerate then? I'm not sure those two can exist at the same time. This feels like a torchkeras issue more than accelerate.

Thanks, I find the solution...This is a bug of Pytorch. In 'torch.utils.data.sampler', we must use "torch.randperm" method, which does not work in a multiprocess environment when passed a value greater than 2**15. So I reduce the size of my dataset, and it works!!!

from accelerate.

SHEN2BAIYI avatar SHEN2BAIYI commented on June 2, 2024

When I use debug mode of Pycharm, I find that the procedure will stuck in the dataloader loop.

微信图片_20240513190551

from accelerate.

muellerzr avatar muellerzr commented on June 2, 2024

You may need to set the env variable inside the training function. Can you share your full notebook code?

from accelerate.

SHEN2BAIYI avatar SHEN2BAIYI commented on June 2, 2024

You may need to set the env variable inside the training function. Can you share your full notebook code?

Thank you for your prompt reply, it doesn't work as well. And the code above is all I have. I'm trying to standardize my code with torchkeras.

from accelerate.

muellerzr avatar muellerzr commented on June 2, 2024

Not sure if we support TorchKeras models. Does isinstance(model, torch.nn.Module) return True?

from accelerate.

SHEN2BAIYI avatar SHEN2BAIYI commented on June 2, 2024

isinstance(model, torch.nn.Module)

yes, it returns Ture. And I think we can think of torchkeras as a normal training program.

from accelerate.

muellerzr avatar muellerzr commented on June 2, 2024

Why are we combining accelerate then? I'm not sure those two can exist at the same time. This feels like a torchkeras issue more than accelerate.

from accelerate.

Related Issues (20)

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.