Code Monkey home page Code Monkey logo

Comments (4)

r4victor avatar r4victor commented on September 15, 2024

@yixiaoer, are you running a spot or on-demand TPU? INTERRUPTED_BY_NO_CAPACITY means the instance became unavailable and this usually happens with spot instances when they get interrupted by the cloud provider.

If the task can handle interruptions, you can specify a retry policy to resubmit the run when it gets interrupted.

If the task cannot handle interruptions, consider using on-demand instances: pass --on-demand to dstack run.

from dstack.

yixiaoer avatar yixiaoer commented on September 15, 2024

I was running on a spot TPU. After specifying the retry option with interruption, it retried, but later still lost connection.
And also tried using the --on-demand option with dstack run, but the problem persists.

Can this be related to the TPU memory capacity? The dataset downloaded is quite large (approximately 22GB, specified to download in /dev/shm). However, no errors were reported for the code running; I also specified in .dstack.yml:

resources:
  memory: 100GB
  shm_size: 50GB

Is this the correct way to specify resources for TPUs? Given the situation, is there anything else I can do to resolve this issue?

from dstack.

peterschmidt85 avatar peterschmidt85 commented on September 15, 2024

@yixiaoer, it's quite strange that the problem persists with --on-demand. Could you please double-check it? Also, show dstack ps once you try it to see whether it used spot or not.

Also, to ensure on-demand is used, you can set in the YAML spot_policy to on-demand then to ensure it doesn't use spot instances.

Please let me know if you can check it.

Yes, the resources looks OK to me!

Also, in case it doesn't work again, could you please share the repo with train.dstack.yml and scripts so we can try to reproduce it?

from dstack.

yixiaoer avatar yixiaoer commented on September 15, 2024

thanks! I double-checked and tried running with --on-demand again. This time, it ran successfully.

from dstack.

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.