Image-Text-to-Text
PEFT
Safetensors
English
File size: 763 Bytes
297cc58
1392114
 
 
 
297cc58
 
 
1392114
297cc58
1392114
297cc58
1392114
 
 
 
 
 
 
 
 
 
 
 
 
297cc58
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
#!/bin/bash
JOB_URL_SCHEME=${JOB_URL_SCHEME:-"http://"}
JOB_ID=${JOB_ID:-'localhost'}
JOB_HOST=${JOB_HOST:-'local'}
export HOME=/workspace
cd /workspace
git lfs install
export HF_TOKEN=$1
unset $1
echo "HF_TOKEN: $HF_TOKEN"
. /workspace/.bashrc
. /workspace/.miniconda3/bin/activate
git clone https://huggingface.co./eltorio/IDEFICS3_ROCO
git config --global credential.helper store

huggingface-cli login --add-to-git-credential --token $HF_TOKEN


jupyter lab --ip=0.0.0.0 --port=8080 --no-browser --allow-root \
  --notebook-dir=/workspace \
  --LabApp.token='' \
  --LabApp.custom_display_url=${JOB_URL_SCHEME}${JOB_ID}-8080.${JOB_HOST} \
  --LabApp.allow_remote_access=True \
  --LabApp.allow_origin='*' \
  --LabApp.disable_check_xsrf=True &
python /learn.py