Code Monkey home page Code Monkey logo

Comments (5)

rnyak avatar rnyak commented on June 6, 2024

@fahadullahshah261 how do you installl merlin-models? we recommend to use merlin-tensorflow:23.06 docker image.

from models.

fahadullahshah261 avatar fahadullahshah261 commented on June 6, 2024

@rnyak, I was using Merlin to train my recommender model and it worked initially when I installed it as follows:
pip install merlin-models
import merlin.models.tf

But, recently I had an issue while importing it as mentioned above. Moreover, it is cumbersome to deal with docker in Google Colab. So, what do I need to do to be able to use Merlin in Colab as I used earlier? Thanks.

from models.

rnyak avatar rnyak commented on June 6, 2024

@fahadullahshah261 you can follow these steps here to run it on colab:

https://medium.com/nvidia-merlin/how-to-run-merlin-on-google-colab-83b5805c63e0

note that you need other Merlin libraries to be installed as well to be able to use merlin-models. Besides, you need to install tensorflow-gpu. you can use TF 2.19 or TF 2.10

from models.

fahadullahshah261 avatar fahadullahshah261 commented on June 6, 2024

Thanks, @rnyak! I tried it and it worked.

from models.

dking21st avatar dking21st commented on June 6, 2024

@fahadullahshah261 how do you installl merlin-models? we recommend to use merlin-tensorflow:23.06 docker image.

@rnyak, can you help me figuring out what am I doing wrong with my docker image?
I'm new to airflow / docker, but I'm trying to use those to deploy my merlin model training & uploading job. I built docker image with following dockerfile:

FROM --platform=linux/amd64 nvcr.io/nvidia/merlin/merlin-tensorflow:23.06 as prod

WORKDIR /ads_content

COPY ./data-airflow .
COPY ./ads/images/requirements.txt .

WORKDIR /root

#RAPIDs
RUN pip install tf2onnx==1.15.1
RUN pip install -r /ads_content/requirements.txt
RUN pip install requests "urllib3<2"

WORKDIR /ads_content

ENTRYPOINT ["python3"]

but when I try to run my Python file with this image, I'm always seeing this error message.

tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

I searched on Google and this error is occurring when the graphic driver is outdated / not updated. Should I install / add steps to dockerfile separately?

from models.

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.