File size: 1,308 Bytes
1218cbb
 
 
 
9a02b98
acc0a44
73f0e10
 
 
 
 
 
 
 
1560df7
73f0e10
 
 
 
5ca05cc
 
e7a2014
 
 
 
 
 
 
 
 
 
 
 
 
 
628e543
 
73f0e10
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
#!/bin/bash
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"
git config --global credential.helper store

# Create the target directory if it doesn't already exist
mkdir -p $HOME/app/notebooks

# Clone the repository into a temporary directory
git clone https://huggingface.co/derek-thomas/tgi-benchmark-notebooks /tmp/tgi-benchmark-notebooks

# Move the contents to $HOME/app/notebooks
mv /tmp/tgi-benchmark-notebooks/0*.ipynb $HOME/app/notebooks

# Remove the temporary clone directory
rm -rf /tmp/tgi-benchmark-notebooks

# Add dark theme
mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
    echo '{ "theme": "JupyterLab Dark" }' > ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings

mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/codemirror-extension && \
    echo '{
    "keyMaps": {
        "vim": true,
        "keyMapConfig": {
            "inoremap": [
                ["jk", "<Esc>"]
            ]
        }
    }
}' > ~/.jupyter/lab/user-settings/@jupyterlab/codemirror-extension/keymap.jupyterlab-settings



echo "All right on the HF site"