Git Product home page Git Product logo

Comments (4)

shenlei1020 avatar shenlei1020 commented on July 23, 2024

麻烦提供复现代码,这么描述没法帮忙解决。

from bcembedding.

zsinba avatar zsinba commented on July 23, 2024

代码如下, 通过api调用重排.

在gpu模型下正常运行;
在gpu下面必现崩溃.
reranker_api.py.zip
代码可以直接运行, 我是打成镜像运行的. 结果一样.

镜像运行命令:
docker run -itd --privileged --restart=unless-stopped --name bce-reranker -p 8080:6006 imagename

from bcembedding.

zsinba avatar zsinba commented on July 23, 2024

请问有进展吗?

from bcembedding.

zsinba avatar zsinba commented on July 23, 2024

猜测原因:
打Docker镜像使用的Pytorch+CUDA版本跟宿主有差异,造成的CUDA调用时, Docker内和宿主不同.出现内存越界.

机器是Ubuntu20.04 , 按官方安装的CUDA版本比较低. 不太好升级.
制作镜像时,太低的CUDA版本配置的Pytorch又较低, 所以综合原因,应该就是镜像+Cuda版本造成的.

from bcembedding.

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.