Code Monkey home page Code Monkey logo

Comments (6)

Ghiad avatar Ghiad commented on June 3, 2024

it says we compiled for one device but ran on another.CUDA_VISIBLE_DEVICES=0 fixes this problem for me.However,when i run this command CUDA_VISIBLE_DEVICES=0,1,2 python3 -m alpa.test_install, another error occured , there was a AssertionError,how can i fix that?
image

from alpa.

caixiiaoyang avatar caixiiaoyang commented on June 3, 2024

你有几张卡,num_stages默认是2,你的num_devices不能整除num_satges就会出现这个问题,最好保证num_devices为偶数

from alpa.

Ghiad avatar Ghiad commented on June 3, 2024

你有几张卡,num_stages默认是2,你的num_devices不能整除num_satges就会出现这个问题,最好保证num_devices为偶数

我的服务器上有5张卡,如下图
image

我应该怎么修改num_devices的数量,当我尝试输入CUDA_VISIBLE_DEVICES=0,1 python3 -m alpa.test_install,还是会有相同的问题

from alpa.

caixiiaoyang avatar caixiiaoyang commented on June 3, 2024

你有几张卡,num_stages默认是2,你的num_devices不能整除num_satges就会出现这个问题,最好保证num_devices为偶数

我的服务器上有5张卡,如下图 image

我应该怎么修改num_devices的数量,当我尝试输入CUDA_VISIBLE_DEVICES=0,1 python3 -m alpa.test_install,还是会有相同的问题

我不知道怎么修改卡的数目,你有五张卡,并且卡的型号也不一样,你在a100上编译的,在3090上运行可能会出问题

from alpa.

Ghiad avatar Ghiad commented on June 3, 2024

你有几张卡,num_stages默认是2,你的num_devices不能整除num_satges就会出现这个问题,最好保证num_devices为偶数

我的服务器上有5张卡,如下图 image
我应该怎么修改num_devices的数量,当我尝试输入CUDA_VISIBLE_DEVICES=0,1 python3 -m alpa.test_install,还是会有相同的问题

我不知道怎么修改卡的数目,你有五张卡,并且卡的型号也不一样,你在a100上编译的,在3090上运行可能会出问题

我已经解决了这个error,通过在启动ray的时候限制gpu数量ray start --head --num-gpus=2,然后当我继续运行CUDA_VISIBLE_DEVICES=0,1 python3 -m alpa.test_install 另一个error报错了,另外通过CUDA_VISIBLE_DEVICES=0,1可以限定运行的设备,让代码在同一种设备上运行
image

image

from alpa.

Ghiad avatar Ghiad commented on June 3, 2024

一个愚蠢的错误,一张显卡被其他用户占用了,换另外的显卡就能顺利执行,十分感谢

from alpa.

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.