Spaces:
Paused
Paused
Commit
·
8ea7361
1
Parent(s):
f255eb9
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -21,8 +21,8 @@ RUN git clone https://github.com/emscripten-core/emsdk.git && \
|
|
| 21 |
./emsdk activate latest
|
| 22 |
|
| 23 |
# Add Emscripten to PATH
|
| 24 |
-
ENV PATH="/
|
| 25 |
-
ENV PATH="/
|
| 26 |
|
| 27 |
RUN git clone https://github.com/ggerganov/ggml && cd ggml && mkdir build && cd build && cmake ..
|
| 28 |
RUN git clone https://huggingface.co/bigcode/gpt_bigcode-santacoder
|
|
@@ -30,7 +30,7 @@ RUN python ggml/examples/starcoder/convert-hf-to-ggml.py ./gpt_bigcode-santacode
|
|
| 30 |
RUN cd ggml/build && make -j4 starcoder starcoder-quantize
|
| 31 |
|
| 32 |
RUN ggml/build/bin/starcoder-quantize models/./gpt_bigcode-santacoder/-ggml.bin ggml-model-q4_0.bin 2
|
| 33 |
-
RUN
|
| 34 |
|
| 35 |
COPY . .
|
| 36 |
|
|
|
|
| 21 |
./emsdk activate latest
|
| 22 |
|
| 23 |
# Add Emscripten to PATH
|
| 24 |
+
ENV PATH="/app/emsdk:${PATH}"
|
| 25 |
+
ENV PATH="/app/emsdk/upstream/emscripten:${PATH}"
|
| 26 |
|
| 27 |
RUN git clone https://github.com/ggerganov/ggml && cd ggml && mkdir build && cd build && cmake ..
|
| 28 |
RUN git clone https://huggingface.co/bigcode/gpt_bigcode-santacoder
|
|
|
|
| 30 |
RUN cd ggml/build && make -j4 starcoder starcoder-quantize
|
| 31 |
|
| 32 |
RUN ggml/build/bin/starcoder-quantize models/./gpt_bigcode-santacoder/-ggml.bin ggml-model-q4_0.bin 2
|
| 33 |
+
RUN emcc -I../../include -I../../include/ggml -I../../examples ../../src/ggml.c main.cpp -o web/santacoder.js -s EXPORTED_FUNCTIONS='["_wasm_eval","_wasm_random_digit","_malloc","_free"]' -s EXPORTED_RUNTIME_METHODS='["ccall"]' -s ALLOW_MEMORY_GROWTH=1 --preload-file ggml-model-q4_0.bin
|
| 34 |
|
| 35 |
COPY . .
|
| 36 |
|