-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
6acba27
commit 4fa1d89
Showing
17 changed files
with
317 additions
and
122 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,17 +1,26 @@ | ||
FROM nvidia/cuda:12.1.0-base-ubuntu22.04 | ||
FROM nvidia/cuda:12.6.0-base-ubuntu22.04 | ||
|
||
# Install Python, Node.js, miniconda, dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3.10 \ | ||
python3.10-distutils \ | ||
python3.10-venv \ | ||
python3.10-dev \ | ||
python3-pip \ | ||
bash \ | ||
net-tools \ | ||
iputils-ping \ | ||
curl \ | ||
git \ | ||
wget \ | ||
gfortran \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Upgrade pip to the latest version | ||
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \ | ||
&& python3.10 -m pip install --upgrade pip | ||
RUN python3.10 --version | ||
|
||
# Install Conda | ||
RUN curl -sLo /miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
&& bash /miniconda.sh -b -p /miniconda \ | ||
|
@@ -28,7 +37,7 @@ WORKDIR /app | |
ARG LIB | ||
|
||
# Copy the backend application | ||
COPY src/requirements.txt /app/src/requirements.txt | ||
COPY requirements.txt /app/requirements.txt | ||
COPY src/LICENSE /app/src/LICENSE | ||
COPY src/Git2APP /app/src/Git2APP | ||
COPY src/R2APP /app/src/R2APP | ||
|
@@ -38,20 +47,24 @@ COPY src/deploy /app/src/deploy | |
COPY src/gpt /app/src/gpt | ||
COPY src/inference /app/src/inference | ||
COPY src/models /app/src/models | ||
COPY src/plot /app/src/plot | ||
COPY src/prompt /app/src/prompt | ||
COPY src/report /app/src/report | ||
COPY src/scripts /app/src/scripts | ||
COPY src/retrievers /app/src/retrievers | ||
COPY images /app/images | ||
#COPY src/tmp /app/src/tmp | ||
COPY src/data/standard_process/${LIB}/ /app/src/data/standard_process/${LIB}/ | ||
COPY src/hugging_models/retriever_model_finetuned/${LIB}/ /app/src/hugging_models/retriever_model_finetuned/${LIB}/ | ||
COPY data/standard_process/${LIB}/ /app/data/standard_process/${LIB}/ | ||
COPY data/autocoop/${LIB}/ /app/data/autocoop/${LIB}/ | ||
COPY data/conversations/ /app/data/conversations/ | ||
COPY data/others-data/ /app/data/others-data/ | ||
COPY hugging_models/retriever_model_finetuned/${LIB}/ /app/hugging_models/retriever_model_finetuned/${LIB}/ | ||
COPY docker_utils/ /app/docker_utils/ | ||
|
||
# mkdir tmp | ||
RUN mkdir -p /app/src/tmp | ||
|
||
# Install Python dependencies | ||
RUN pip3 install --no-cache-dir -r /app/docker_utils/${LIB}/requirements.txt | ||
RUN python3.10 -m pip install --no-cache-dir -r /app/docker_utils/${LIB}/requirements.txt | ||
|
||
# Install dependencies from environment.yml if it exists | ||
RUN if [ -f /app/docker_utils/${LIB}/environment.yml ]; then \ | ||
|
@@ -67,7 +80,11 @@ RUN if [ -f /app/docker_utils/${LIB}/requirements.sh ]; then \ | |
COPY chatbot_ui_biomania/ /app/chatbot_ui_biomania/ | ||
|
||
# Install node modules and build the front-end | ||
RUN cd /app/chatbot_ui_biomania && npm install && npm run build | ||
# RUN cd /app/chatbot_ui_biomania && npm install && npm run build | ||
RUN cd /app/chatbot_ui_biomania && \ | ||
npm install [email protected] [email protected] \ | ||
npm install && \ | ||
npm run build | ||
|
||
# run the start script | ||
RUN chmod +x /app/docker_utils/${LIB}/docker_start_script.sh | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cd /app/ | ||
python3.10 -m src.deploy.inference_dialog_server & | ||
backend_pid=$! | ||
|
||
cd /app/chatbot_ui_biomania/ | ||
npm start & | ||
frontend_pid=$! | ||
|
||
# Keep the script running to keep the processes alive | ||
wait $backend_pid | ||
wait $frontend_pid | ||
|
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,72 @@ | ||
astunparse==1.6.3 | ||
astor | ||
beautifulsoup4==4.12.2 | ||
bionty==0.36.0 | ||
#biotite==0.38.0 | ||
#biopython==1.81 | ||
bitsandbytes==0.41.1 | ||
#cellrank==2.0.4 | ||
colorama | ||
#deap==1.4.1 | ||
#deepspeed==0.12.0 | ||
docstring_parser==0.15 | ||
ehrapy==0.6.0 | ||
Flask==3.0.0 | ||
flask_cors==4.0.0 | ||
flask_socketio==5.3.6 | ||
#fpdf==1.7.2 | ||
gradio==3.14.0 | ||
#joblib==1.3.2 | ||
jsonargparse==4.27.0 | ||
langchain==0.0.330 | ||
#lightning==2.0.0 | ||
#lightning @ git+https://github.com/Lightning-AI/lightning@master | ||
loguru | ||
lxml==4.9.3 | ||
matplotlib | ||
medcat==1.10.0 | ||
mmtf_python==1.1.3 | ||
nbformat==5.9.2 | ||
#networkx==3.2.1 | ||
numpy | ||
ollama | ||
openai==1.10.0 | ||
pandas | ||
#peft==0.6.0 | ||
protobuf==3.20.0 | ||
pydantic==1.10.11 | ||
pydot==1.4.2 | ||
PyGithub==2.3.0 | ||
#pyopenms==3.1.0 | ||
#PyQt5 | ||
#pyteomics==4.6.3 | ||
python_dotenv | ||
rank_bm25==0.2.2 | ||
rdflib==7.0.0 | ||
ReportLab | ||
Requests | ||
#scikit_bio==0.5.9 | ||
#scikit_learn | ||
scipy==1.9.2 | ||
#scvi_tools==1.0.4 | ||
seaborn | ||
sentence_transformers==2.2.2 | ||
sentencepiece==0.1.99 | ||
scanpy==1.9.6 | ||
#scikit-learn-intelex | ||
scvelo==0.3.1 | ||
sphinx_rtd_theme | ||
squidpy==1.3.1 | ||
tenacity==8.2.3 | ||
tensorboard==2.15.1 | ||
timm==0.9.12 | ||
torch==2.1.0 | ||
torchsummary==1.5.1 | ||
trimap==1.1.4 | ||
tqdm | ||
transformers | ||
typing_extensions==4.8.0 | ||
# triton | ||
# scenicplus @ git+https://github.com/aertslab/scenicplus.git | ||
# https://github.com/etetoolkit/ete/archive/ete4.zip | ||
|
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.