Comments (2)
calling python instead also results in error, but later
python3 scripts/lmql-serve-docker.py
> docker image ls --format '{{.Tag}}' lmql-serve
> docker build -t lmql-serve -f scripts/Dockerfile.serve .
[+] Building 0.9s (17/20) docker:default
=> [internal] load build definition from Dockerfile.serve 0.0s
=> => transferring dockerfile: 1.93kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2.92kB 0.0s
=> [internal] load metadata for docker.io/nvidia/cuda:11.8.0-devel-ubuntu22.04 0.4s
=> [ 1/16] FROM docker.io/nvidia/cuda:11.8.0-devel-ubuntu22.04@sha256:7f34d0a2eeacd942 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 28.00kB 0.0s
=> CACHED [ 2/16] RUN apt-get update --yes --quiet && DEBIAN_FRONTEND=noninteractive a 0.0s
=> CACHED [ 3/16] RUN add-apt-repository --yes ppa:deadsnakes/ppa && apt-get update -- 0.0s
=> CACHED [ 4/16] RUN DEBIAN_FRONTEND=noninteractive apt-get install --yes --quiet --n 0.0s
=> CACHED [ 5/16] RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/ 0.0s
=> CACHED [ 6/16] RUN pip install --upgrade pip 0.0s
=> CACHED [ 7/16] WORKDIR lmql 0.0s
=> CACHED [ 8/16] RUN apt-get update 0.0s
=> CACHED [ 9/16] RUN pip install "lmql[hf]" 0.0s
=> CACHED [10/16] COPY . /lmql 0.0s
=> CACHED [11/16] WORKDIR /lmql 0.0s
=> CACHED [12/16] RUN pip install -e ".[hf]" 0.0s
=> ERROR [13/16] RUN ls /transformers 0.4s
------
> [13/16] RUN ls /transformers:
0.314 ls: cannot access '/transformers': No such file or directory
------
Dockerfile.serve:47
--------------------
45 |
46 | VOLUME /transformers
47 | >>> RUN ls /transformers
48 |
49 | ENV LMQL_VERSION="latest"
--------------------
ERROR: failed to solve: process "/bin/sh -c ls /transformers" did not complete successfully: exit code: 2
Traceback (most recent call last):
File "/home/jp/dev/lmql/scripts/lmql-serve-docker.py", line 40, in <module>
build_docker_image()
File "/home/jp/dev/lmql/scripts/lmql-serve-docker.py", line 16, in build_docker_image
subprocess.run(cmd, check=True)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'build', '-t', 'lmql-serve', '-f', 'scripts/Dockerfile.serve', '.']' returned non-zero exit status 1.
from lmql.
Hi there, I haven't gotten around to document that, sorry about that. There is actually also a script that makes running Dockerfile.serve behave just like a local lmql serve-model
command (https://github.com/eth-sri/lmql/blob/main/scripts/lmql-serve-docker.py).
If you want to build/run the image yourself, you can also check the scripts for the environment variables it expects. Basically TRANSFORMERS_CACHE is a mounted volume, to avoid re-downloading cached models in each container instance.
from lmql.
Related Issues (20)
- How to load in-process model from my local folder? HOT 1
- Add standalone example of running LMQL from within Python
- [support Qwen models] AssertionError: Cannot intersect further patterns if '*' has already been handled. HOT 3
- LMQL fails to use llama-cpp-python to load models HOT 3
- Lmql playground crashes with: [WinError 2] The system cannot find the specified file HOT 2
- OpenAI Chat 'choices' ("where")
- Support for Phi-2 HOT 1
- Broken Doc Links HOT 3
- [Question] Support constraining via context free grammar for dsls HOT 2
- does Azure really work ? HOT 8
- OpenAIStreamError: logprobs, best_of and echo parameters are not available on gpt-35-turbo model.
- [Question] SSLCertVerificationError when Using lmql with llamaindex HOT 1
- LMQL distribution: `NameError: name 'CLASSIFICATION' is not defined` HOT 2
- Do any of the playground examples work ? HOT 6
- Dolphin models doesn't run HOT 2
- Allow specifying model path for hf models HOT 1
- Is it possible to run LMQL with LMStudio locally ? HOT 2
- Is there any way to replicate function calling like in openai assistants api? HOT 1
- lmql.runtime.tokenizer.TokenizerNotAvailableError
- Add support for OpenAI tools/function-calling API HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lmql.