-
Notifications
You must be signed in to change notification settings - Fork 18
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
matatonic
committed
Apr 8, 2024
1 parent
6a24f4f
commit c203ab3
Showing
18 changed files
with
322 additions
and
117 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# | ||
hf_home/ | ||
model_zoo/ | ||
YanweiLi/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
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 |
---|---|---|
@@ -1,15 +1,24 @@ | ||
FROM python:3.11-slim | ||
|
||
RUN apt-get update && apt-get install -y git | ||
RUN pip install --no-cache-dir --upgrade pip | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
RUN pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.6/flash_attn-2.5.6+cu122torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl | ||
RUN pip install --no-cache-dir -U https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.6/flash_attn-2.5.6+cu122torch2.2cxx11abiFALSE-cp311-cp311-linux_x86_64.whl | ||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache-dir -U -r requirements.txt | ||
|
||
RUN git clone https://github.com/dvlab-research/MiniGemini.git --single-branch /app/MiniGemini | ||
|
||
WORKDIR /app/MiniGemini | ||
RUN pip install --no-cache-dir --no-deps -e . | ||
|
||
WORKDIR /app | ||
COPY requirements.*.txt . | ||
RUN for r in requirements.*.txt ; do pip install --no-cache-dir -r $r; done | ||
RUN for r in requirements.*.txt ; do pip install -U --no-cache-dir -r $r; done | ||
|
||
COPY *.py . | ||
COPY backend /app/backend | ||
CMD python vision.py | ||
|
||
CMD python vision.py |
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 @@ | ||
FROM python:3.11-slim | ||
|
||
RUN mkdir -p /app | ||
|
||
RUN apt-get update && apt-get install -y git | ||
|
||
RUN git clone https://github.com/dvlab-research/MiniGemini.git --single-branch /app/MiniGemini | ||
WORKDIR /app/MiniGemini | ||
RUN pip install --no-cache-dir --upgrade pip | ||
RUN pip install --no-cache-dir --no-deps -e . | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.minigemini.txt . | ||
RUN pip install --no-cache-dir -r requirements.minigemini.txt | ||
|
||
COPY *.py . | ||
COPY backend /app/backend | ||
|
||
RUN pip show torch | ||
RUN pip show torchvision | ||
RUN pip show transformers | ||
RUN pip show accelerate | ||
CMD python vision.py | ||
|
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
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
Oops, something went wrong.