Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building docker image throws error #926

Open
pasa13142 opened this issue Jul 28, 2023 · 5 comments
Open

Building docker image throws error #926

pasa13142 opened this issue Jul 28, 2023 · 5 comments

Comments

@pasa13142
Copy link

pasa13142 commented Jul 28, 2023

Hello,

Do you know how can I get "jinaai/clip-server:latest-onnx"'s dockerfile?

Building&Running from repo with PIP_TAG=onnx maybe 3 months ago works well but vector values are different with latest-onnx.

Also, I tried today

git clone https://github.com/jina-ai/clip-as-service.git
docker build . -f Dockerfiles/server.Dockerfile  --build-arg GROUP_ID=$(id -g ${USER}) --build-arg USER_ID=$(id -u ${USER}) -t jinaai/clip-server

As I said it was working but it is not working anymore. It throws:
manifest for nvidia/cuda:11.6.0-devel-ubuntu20.04 not found: manifest unknown: manifest unknown

I was talked also in : issue

In short, Is there any chance can we have "jinaai/clip-server:latest-onnx"'s dockerfile?

@kindziora
Copy link

Problem seems the cuda image version.
change it to ARG CUDA_VERSION=11.6.2 that did work for me... kind regards

@pasa13142
Copy link
Author

Thanks for the answer! I reported it also to fix for new users.

docker run -p 51009:51000 -v $HOME/.cache:/home/cas/.cache --gpus all jinaai/clip-server:master-onnx onnx-flow.yml

the encodes extracted from above server and when you remove --gpus all parameter (CPU) encodes are different. How can I avoid it?

@kindziora
Copy link

Hi pasa, i'am just guessing because i just started using this project. I think there could be several reasons for that:

  • maybe the order of your input data is changing
  • maybe cpu mode does some different preprocessing on your input(fp16 vs fp32).

but i wonder if you even get the same results on 2 different instances both running with gpu.

kind regards

@ZiniuYu
Copy link
Member

ZiniuYu commented Jul 31, 2023

Yes the base image from Nvidia with cuda == 11.6.0 was deleted, please use 11.6.2 instead

Problem seems the cuda image version.
change it to ARG CUDA_VERSION=11.6.2 that did work for me... kind regards

@ZiniuYu
Copy link
Member

ZiniuYu commented Jul 31, 2023

Thanks for the answer! I reported it also to fix for new users.

docker run -p 51009:51000 -v $HOME/.cache:/home/cas/.cache --gpus all jinaai/clip-server:master-onnx onnx-flow.yml

the encodes extracted from above server and when you remove --gpus all parameter (CPU) encodes are different. How can I avoid it?

What do you mean the encodes are different? Can you show some examples?
The fp16 will lose some precisions by natural, some slight differences would be expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants