File size: 1,628 Bytes
e1715de | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git wget curl vim ca-certificates \
build-essential python3 python3-pip python3-dev \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip install --upgrade pip
RUN pip install --index-url https://download.pytorch.org/whl/cu117 \
torch==2.0.1 torchvision==0.15.2
RUN pip install \
transformers==4.31.0 tokenizers==0.13.3 sentencepiece==0.1.99 \
accelerate==0.21.0 peft==0.4.0 bitsandbytes==0.41.0 \
einops==0.6.1 einops-exts==0.0.4 timm==0.6.13 \
gradio==3.35.2 gradio_client==0.2.9 httpx==0.24.0 \
scikit-learn==1.2.2 supervision==0.10.0 pydantic==1.10.12 \
shortuuid==1.0.11 markdown2==2.4.10 requests==2.31.0 \
uvicorn==0.23.2 fastapi==0.100.1 pillow==10.0.0 tqdm==4.66.1 \
datasets==2.14.4 deepspeed==0.9.5 wandb==0.15.8
RUN pip install numpy==1.24.4 pyarrow==12.0.1 packaging==23.1 wheel==0.41.2 setuptools==68.0.0 ninja==1.11.1 psutil==5.9.5 \
&& pip install "flash-attn==2.3.6" --no-build-isolation
WORKDIR /workspace
# Install additional dependencies for Project_FinMM
RUN pip install \
mplfinance>=0.12.0 \
yfinance>=0.2.0 \
scienceplots>=2.1.0 \
jsonlines>=3.1.0
CMD ["/bin/bash"]
# Build: docker build -t llava -f Dockerfile.llava .
# Run: docker run --shm-size=16g --gpus all -it --rm -v /path/to/Finance:/workspace/Finance --name llava llava:latest
# Setup: cd /workspace/Finance/fin-mm/code/LLaVA-Plus && pip install --no-deps -e . && pip install --no-deps -e ".[train]"
|