forked from mlc-ai/mlc-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV TZ=America/Recife | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y build-essential cmake neovim nano wget curl tar git python3-pip | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
RUN echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc && \ | ||
echo "export MLC_LLM_HOME=/volume" >> ~/.bashrc && \ | ||
echo "export PYTHONPATH=/volume/python:$PYTHONPATH" >> ~/.bashrc | ||
|
||
CMD ["/bin/bash"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
rm -rf ${MLC_LLM_HOME}/build/ | ||
mkdir -p ${MLC_LLM_HOME}/build/ | ||
cd ${MLC_LLM_HOME}/build/ | ||
|
||
python3 ../cmake/gen_cmake_config.py | ||
|
||
cmake .. && cmake --build . --parallel $(nproc) && cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
services: | ||
|
||
mlc_image: | ||
|
||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
|
||
volumes: | ||
- type: bind | ||
source: ./ | ||
target: /volume | ||
bind: | ||
propagation: shared | ||
|
||
container_name: mlc_container | ||
|
||
|
||
##################################################################### | ||
# To run the docker compose FOR THE FIRST TIME use these commands | ||
# docker compose up --build | ||
# | ||
# To run the docker compose AFTER THE FIRST TIME use these commands | ||
# docker compose run --rm mlc_image /bin/bash | ||
##################################################################### |