Changes between Version 5 and Version 6 of en/UsingGPU


Ignore:
Timestamp:
Oct 16, 2024, 1:46:27 PM (9 months ago)
Author:
Ales Horak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • en/UsingGPU

    v5 v6  
    1212Follow these actions:
    1313
    14 1. `ssh ...` to one of the servers (e.g. `ssh apollo`). If you are not currently inside the faculty network, you must [#vpn connect to the FI MUNI VPN] first.
     141. `ssh ...` to one of the servers (e.g. `ssh apollo`). If you are not currently inside the faculty network, you must [#ConnectingtoFIMUNIVPN connect to the FI MUNI VPN] first.
    15151. `cd /nlp/projekty/...` to your project directory
    16 1. setup !HuggingFace cache as detailed [#cache below]
     161. setup !HuggingFace cache as detailed [#ChangethecachelocationofHuggingFaceDatasets below]
    17171. find available GPUs: run `gpustat` or `nvidia-smi`
    18182. `export CUDA_DEVICE_ORDER=PCI_BUS_ID`
     
    2222
    2323== Connecting to a GPU server ==
    24 ==== [#vpn  Connecting to FI MUNI VPN ] ====
     24==== Connecting to FI MUNI VPN ====
    2525- Download the VPN configuration for FI MUNI from here: https://www.fi.muni.cz/tech/unix/vpn.html
    2626- Use your faculty login `x.....` with your secondary password as the credentials
     
    3333* Type in the secondary password again
    3434
    35 == [#cache Change the cache location of HuggingFace Datasets] ==
     35== Change the cache location of HuggingFace Datasets ==
    3636* You need to change the download location of datasets. The default location is in your home and it can easily get full
    3737* prepare a cache directory in your project
     
    8989You will use it later, after setting up an SSH tunnel.
    9090
    91 ==== [#ssh Create SSH Tunnelling] ====
     91==== Create SSH Tunnelling ====
    9292* Open new second terminal and insert the following command
    9393{{{
     
    100100  http://localhost:2222?token=... [[br]]
    101101  If you have used the same port numbers, as we do, you do not need to change anything in the URL.
    102   Otherwise, the port must match the first port in the [#ssh ssh tunelling] step.
     102  Otherwise, the port must match the first port in the [#CreateSSHTunnelling ssh tunelling] step.
    103103* If you have correctly copied the `token`, then you are logged in.
    104104  Otherwise, to get the token again run: