Skip to content

Docker “--all-in-one” fails with ModuleNotFoundError: No module named ‘tqdm’ #289

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

Closed
cmdicely opened this issue Mar 19, 2023 · 7 comments · Fixed by #293
Closed
Labels
bug Something isn't working build Compilation issues duplicate This issue or pull request already exists

Comments

@cmdicely
Copy link

On Win 10

>  docker run -v /llama/models:/models ghcr.io/ggerganov/llama.cpp:full –all-in-one “/models/” 7B
Downloading model…
Traceback (most recent call last):
  File “/app/./download-pth.py”, line 3, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named ‘tqdm’
@bvajk
Copy link

bvajk commented Mar 19, 2023

My guess is putting tqdm at the end of .devops/full.Dockerfile might solve the issue but I don't how to rebuild the image ;/

sw added a commit that referenced this issue Mar 19, 2023
@gjmulder gjmulder added bug Something isn't working duplicate This issue or pull request already exists build Compilation issues labels Mar 19, 2023
@gjmulder
Copy link
Collaborator

Please confirm that the problem is fixed after the pull request is merged

@bvajk
Copy link

bvajk commented Mar 19, 2023

Why would you merge before knowing it fixes the problem in the first place?

@domifi
Copy link

domifi commented Mar 19, 2023

I have the same problem and am happy to test. I'm just not sure how to build the docker image locally

@bvajk
Copy link

bvajk commented Mar 19, 2023

I have the same problem and am happy to test. I'm just not sure how to build the docker image locally

Me too, the actions on the PR suggest that the change has been pushed to docker, but I can't figure out how to pull it

@domifi
Copy link

domifi commented Mar 19, 2023

Ok, I think I got it and it seems to be working.
I believe the action doesn't actually push the image anywhere and is only for testing whether the build even succeeds. Just after the build command the log says WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load

I was able to build the image locally with: docker build -f .devops/full.Dockerfile .

@bvajk
Copy link

bvajk commented Mar 19, 2023

Nice one, it seems to fix the issue for me, it is now downloading consolidated.00.pth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Compilation issues duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants