Skip to content

Instantly share code, notes, and snippets.

View ai2ys's full-sized avatar
🎯
Focusing

Sylvia Schmitt ai2ys

🎯
Focusing
View GitHub Profile
@ai2ys
ai2ys / python-libraries.rst
Last active March 10, 2023 09:24
Useful (Python) Libraries
Useful (Python) Libraries
Library Description Links
JAX High-performance array computing  
@ai2ys
ai2ys / Linux_disk_space_file_folder_sizes.md
Created November 10, 2022 10:25
Linux disk usage, file sizes and folder sizes

Retrieving disk usage information

Retrieving the disk space/usage

df -H

Retrieving file and folder sizes

Sorted by file/folder size

@ai2ys
ai2ys / TF-best-practices.md
Created February 16, 2022 07:53
TensorFlow - Best Practices
@ai2ys
ai2ys / create-docker-context.md
Last active April 1, 2022 08:42
Create Docker Context for Remote Machine (Access via SSH)

Docker Context

Create a Docker context for remote Machine (access via SSH).

Create Docker context

# specifiy remote user, remote IP address, context name, and the description
remote_user=<user name>
remote_ip_address=<ip address of remote system>
context_name=<name for the context>
@ai2ys
ai2ys / ubuntu20.04-install-docker-compose.md
Last active October 21, 2022 13:36
Ubuntu 20.04 - Install docker-compose

Install docker-compose on Ubuntu 20.04

I tried different installation methods via

  1. curl which failed because of a non existing URL
  2. apt-get which worked but the installed version does not GPU access
  3. pip which worked and the installed version does GPU access

Below the tried methods in detail.

❌ Installing via curl - failed because of URL (404)

Following the instructions from https://docs.docker.com/compose/install/ resulted in the following error when trying to run docker-compose afterwards.

@ai2ys
ai2ys / tf-docker-images-with-cuda11.md
Last active January 10, 2022 21:19
TensorFlow Docker Images supporting CUDA 11

Pre-Built TensorFlow Docker Images Supporting CUDA 11

Newer NVIDA GPUs like the GeForce RTX 3090 require CUDA 11.

Pre-build Docker images provided by TensorFlow

TensorFlow provides pre-built Docker images on dockerhub - tensorflow/tensorflow. The underlying Docker files are availble in the TensorFlow GitHub repository.

Currently latest TF version is 2.7. In table gives an overview of CUDA version used within the pre-built Docker images for the specified TF versions. Versions were retrieved from the TensorFlow GitHub repository (date 2022-01-10).

@ai2ys
ai2ys / apt-get-specify-package-version.md
Last active January 10, 2022 18:16
Specify Linux Package versions and Python Library Versions for Installation

Specify Package Version apt-get install

Installing a specific version

Install exactly the specified version, example:

# Installing exactly version '1.20.3-1ubuntu2' of wget
sudo apt-get install wget=1.20.3-1ubuntu2
@ai2ys
ai2ys / calc-num-interconnections-group-of-people.ipynb
Last active January 10, 2022 10:01
calc-num-interconnections-group-of-people.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ai2ys
ai2ys / docker-moving-data-directory.md
Last active January 9, 2022 16:33
Docker - moving Docker data directory to an other location
@ai2ys
ai2ys / nvidia-smi-examples.md
Last active April 29, 2022 08:58
Examples for nvidia-smi

Using nvidia-smi

Commands on local system

Running nvidia-smi every n seconds

nvidia-smi -l <n seconds>

Retrieving GPU index and name