ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://parisneo.github.io/lollms-webui/
Apache License 2.0
4.07k stars 515 forks source link

[Bug] Docker build not working #503

Open short-circuit opened 4 months ago

short-circuit commented 4 months ago

Expected Behavior

I expect to use the Dockerfile from the repository and that the image builds and runs correctly

Current Behavior

Requirements are not installed correctly.

Steps to Reproduce

  1. Clone repo
  2. Docker build
  3. Docker run
  4. app.py crashes
    lollms-1  | Traceback (most recent call last):
    lollms-1  |   File "/srv/app.py", line 16, in <module>
    lollms-1  |     from lollms_webui import LOLLMSWebUI
    lollms-1  | ModuleNotFoundError: No module named 'lollms_webui'
    lollms-1 exited with code 1

Possible Solution

Fix Dockerfile with correct requirements

ParisNeo commented 4 months ago

hi. The docker needs a refreshing :(

phatgeek commented 2 months ago

At this point, the Docker build fails. The Dockerfile references a directory "static" and a directory "templates" that don't appear in the context (i.e. in the git pulled directory, where the Dockerfile resides). Did those directories used to exist but are now obsolete?

COPY ./static /srv/static

COPY ./templates /srv/templates

shuther commented 1 month ago

the error is still present:

docker compose build
...
 => CACHED [webui  5/10] COPY ./api /srv/api                                                                                                                             0.0s
 => ERROR [webui  6/10] COPY ./static /srv/static                                                                                                                        0.0s
 => ERROR [webui  7/10] COPY ./templates /srv/templates                                                                                                                  0.0s
------
 > [webui  6/10] COPY ./static /srv/static:
------
------
 > [webui  7/10] COPY ./templates /srv/templates:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref XT5Z:RCE6:UGTN:DFHA:FGIA:T6JW:DS54:AJRU:EMHT:P4VY:WIUY:TFWH::o9ze5jido9zq9o856ntw6bj3m: "/templates": not found
Niskeletor commented 1 month ago

Any solution? I am experiencing the same problem after installing with linux_install.sh and after configuring to enable remote access it fails at the same point trying to do Docker compose.

phatgeek commented 1 month ago

The answer to your question probably lies in the status: Assignment: No one Assigned Labels: None yet Projects: None yet Milestone: No milestone Development: No branches or pull requests

My heart is willing to contribute, but I can't afford the time to try to understand dependencies, and reverse engineer this application, so we wait for the developer to fix it, and I'm sure he has competing priorities in life as well.

For now, these are not the droids I'm looking for. I did find koboldcpp to work for me, with the caveat that it requires GGML or GGUF models only. It does allow me to split my models between CPU/SystemRAM and GPU/VRAM, which is nice since I can only afford a consumer grade GPU. AFAIK, this is a feature only available with GGML/GGUF format models anyway.

ParisNeo commented 2 weeks ago

Hi everyone,

I am really sorry for this. I did not have time to upgrade the docker. It is waaaay out of sync compared to the new version of lollms and basically needs to be rewritten.

Unfortunately, these days I have alot of work and can't afford enough time to fix this. Lollms is a big project and I only work on it in my spare time. By now it is already taking alot of my time so I can queue this into my already long todo list.

Any contribution is ofcourse welcome.

Best regards