Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hydra Node Http
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Hydra Node Http
Commits
76356352
Commit
76356352
authored
Oct 08, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune dockerfile
parent
fe89462a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
30 deletions
+24
-30
Dockerfile
Dockerfile
+24
-30
No files found.
Dockerfile
View file @
76356352
...
...
@@ -8,49 +8,43 @@ RUN apt-get update && apt-get install -y \
python3-virtualenv python3-distutils python3-numpy tini
&&
\
update-alternatives
--install
/usr/bin/python python /usr/bin/python3 1
&&
\
update-alternatives
--install
/usr/bin/pip pip /usr/bin/pip3 1
&&
\
pip3
install
--no-cache-dir
--upgrade
pip
pip3
install
--no-cache-dir
--upgrade
pip
&&
\
#Install Torch(chonky!)
RUN
pip3
install
torch torchvision torchaudio
--extra-index-url
https://download.pytorch.org/whl/cu116
#Install Python deps
RUN
pip3
install
--no-cache-dir
dotmap icecream sentry-sdk numpy fastapi
"uvicorn[standard]"
gunicorn
RUN
pip3
install
omegaconf transformers einops
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116 && \
pip3 install --no-cache-dir dotmap icecream sentry-sdk numpy fastapi "uvicorn[standard]" gunicorn omegaconf transformers einops && \
#RUN git clone https://github.com/NovelAI/stable-diffusion
#RUN pip3 install -e stable-diffusion/.
RUN
pip3
install
pytorch_lightning
RUN
pip3
install
-e
git+https://github.com/CompVis/taming-transformers.git@master#egg
=
taming-transformers
pip3 install pytorch_lightning && \
pip3 install -e git+https://github.com/CompVis/taming-transformers.git@master
#egg=taming-transformers
#RUN wget -O stable-diffusion-private-hypernets.zip https://www.dropbox.com/s/lbxm6oijjawmeew/stable-diffusion-private-buckets.zip?dl=1
#RUN unzip stable-diffusion-private-hypernets.zip
ADD
stable-diffusion-private stable-diffusion-private
RUN
pip3
install
-e
stable-diffusion-private/
RUN
pip3
install
https://github.com/NovelAI/k-diffusion-multigen/archive/457560c53c344b16cf3dda5eb0ba44d83e0b7c46.zip
RUN
pip3
install
simplejpeg
RUN
pip3
install
min-dalle
RUN
pip3
install
-e
stable-diffusion-private/
&&
\
pip3
install
https://github.com/NovelAI/k-diffusion-multigen/archive/457560c53c344b16cf3dda5eb0ba44d83e0b7c46.zip
&&
\
pip3
install
simplejpeg min-dalle
&&
\
#RUN pip3 install https://github.com/microsoft/DeepSpeed/archive/55b7b9e008943b8b93d4903d90b255313bb9d82c.zip
#basedformer
RUN
pip3
install
https://www.dropbox.com/s/8ozhhbo1g7y5dsz/basedformer-f7c8c4fe12f8a0acf6588d8d09a8b9b0481895e3.zip?dl
=
1
pip3 install https://www.dropbox.com/s/8ozhhbo1g7y5dsz/basedformer-f7c8c4fe12f8a0acf6588d8d09a8b9b0481895e3.zip?dl=1 && \
#built DS
#RUN pip3 install https://www.dropbox.com/s/euzpgpfrs9isf1z/deepspeed-0.7.3%2B55b7b9e0-cp38-cp38-linux_x86_64.whl?dl=1
RUN
pip3
install
faiss-cpu sentence_transformers
RUN
wget https://f004.backblazeb2.com/file/naipublicbucketxyz/xformers.zip
RUN
unzip xformers.zip
WORKDIR
xformers
RUN
python3 setup.py develop
RUN
pip uninstall
-y
pillow
RUN
pip
install
pillow-simd
pip3 install faiss-cpu sentence_transformers && \
wget https://f004.backblazeb2.com/file/naipublicbucketxyz/xformers.zip && unzip xformers.zip && \
cd xformers && \
python3 setup.py develop && \
pip uninstall -y pillow && \
pip install pillow-simd
#Open ports
EXPOSE
8080
EXPOSE
80
EXPOSE
443
EXPOSE
4369
EXPOSE
5672
EXPOSE
25672
EXPOSE
15672
EXPOSE
15692
EXPOSE
50051
#
EXPOSE 8080
#
EXPOSE 80
#
EXPOSE 443
#
EXPOSE 4369
#
EXPOSE 5672
#
EXPOSE 25672
#
EXPOSE 15672
#
EXPOSE 15692
#
EXPOSE 50051
#Copy node src and run
WORKDIR
/usr/src/app
COPY
. .
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment