none commited on
Commit
7971fe4
·
1 Parent(s): f0a6209
Files changed (2) hide show
  1. Dockerfile +10 -4
  2. start.sh +1 -1
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- # build with: docker build . --tag sctg/roco-idefics3:0.0.7 --tag sctg/roco-idefics3:latest --push
2
  # run with
3
- # docker run --gpus all --user=42420:42420 -p 8080:8080 -e HF_TOKEN=hf_TOKEN -it sctg/roco-idefics3:0.0.7 bash -i /start.sh sleep infinity hf_TOKEN
4
- # docker run --gpus all --user=42420:42420 -p 8080:8080 -it sctg/roco-idefics3:0.0.7 bash -i /start.sh python /learn.py hf_...
5
  FROM nvidia/cuda:11.6.1-devel-ubuntu20.04
6
  ARG NODE_MAJOR="20"
7
  RUN /usr/sbin/addgroup --gid 42420 ovh
@@ -23,12 +23,18 @@ RUN /bin/bash /workspace/miniconda.sh -b -p /workspace/.miniconda3
23
  RUN . /workspace/.miniconda3/bin/activate && conda init --all
24
  RUN . /workspace/.miniconda3/bin/activate \
25
  && pip install -U "safetensors>=0.4.5" \
 
26
  && pip install -U "https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-0.44.2.dev0-py3-none-manylinux_2_24_x86_64.whl" \
27
  && pip install -U git+https://github.com/huggingface/transformers.git\
28
  && pip install huggingface_hub[cli] accelerate datasets peft\
29
  && pip install -U Pillow \
30
  && pip install -U torchvision torchaudio \
31
- && pip install jupyter_copilot
 
 
 
 
 
32
  RUN . /workspace/.miniconda3/bin/activate && conda install -y jupyter
33
  RUN rm -f /workspace/miniconda.sh
34
  # Mandatory to run the jobs in rootless mode
 
1
+ # build with: docker build . --tag sctg/roco-idefics3:0.0.9 --tag sctg/roco-idefics3:latest --push
2
  # run with
3
+ # docker run --gpus all --user=42420:42420 -p 8080:8080 -e HF_TOKEN=hf_TOKEN -it sctg/roco-idefics3:0.0.9 bash -i /start.sh sleep infinity
4
+ # docker run --gpus all --user=42420:42420 -p 8080:8080 -it sctg/roco-idefics3:0.0.9 bash -i /start.sh python /learn.py hf_...
5
  FROM nvidia/cuda:11.6.1-devel-ubuntu20.04
6
  ARG NODE_MAJOR="20"
7
  RUN /usr/sbin/addgroup --gid 42420 ovh
 
23
  RUN . /workspace/.miniconda3/bin/activate && conda init --all
24
  RUN . /workspace/.miniconda3/bin/activate \
25
  && pip install -U "safetensors>=0.4.5" \
26
+ && pip install -U tensorflow \
27
  && pip install -U "https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-0.44.2.dev0-py3-none-manylinux_2_24_x86_64.whl" \
28
  && pip install -U git+https://github.com/huggingface/transformers.git\
29
  && pip install huggingface_hub[cli] accelerate datasets peft\
30
  && pip install -U Pillow \
31
  && pip install -U torchvision torchaudio \
32
+ && pip install jupyter_copilot \
33
+ && pip install unsloth\
34
+ && pip uninstall unsloth -y \
35
+ && pip install --upgrade --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git
36
+
37
+
38
  RUN . /workspace/.miniconda3/bin/activate && conda install -y jupyter
39
  RUN rm -f /workspace/miniconda.sh
40
  # Mandatory to run the jobs in rootless mode
start.sh CHANGED
@@ -23,7 +23,7 @@ git config --global credential.helper store
23
  huggingface-cli login --add-to-git-credential --token $HF_TOKEN
24
 
25
 
26
- screen -dmS jupyter bash -c 'jupyter lab --ip=0.0.0.0 --port=8080 --no-browser --allow-root \
27
  --notebook-dir=/workspace \
28
  --LabApp.token="" \
29
  --LabApp.custom_display_url=${JOB_URL_SCHEME}${JOB_ID}-8080.${JOB_HOST} \
 
23
  huggingface-cli login --add-to-git-credential --token $HF_TOKEN
24
 
25
 
26
+ screen -dmS jupyter bash -c 'SHELL=/bin/bash jupyter lab --ip=0.0.0.0 --port=8080 --no-browser --allow-root \
27
  --notebook-dir=/workspace \
28
  --LabApp.token="" \
29
  --LabApp.custom_display_url=${JOB_URL_SCHEME}${JOB_ID}-8080.${JOB_HOST} \