LocalAI/examples/rwkv/Dockerfile.build

12 lines
323 B
Docker
Raw Normal View History

2023-05-04 15:32:23 +00:00
FROM python
RUN apt-get update && apt-get -y install cmake
2023-05-04 15:32:23 +00:00
# convert the model (one-off)
RUN pip3 install torch numpy
WORKDIR /build
COPY ./scripts/ .
RUN git clone --recurse-submodules https://github.com/saharNooby/rwkv.cpp && cd rwkv.cpp && cmake . && cmake --build . --config Release
ENTRYPOINT [ "/build/build.sh" ]