View calc_vram.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request | |
import json | |
def bits_to_gb(bits): | |
return bits / (8 * 1024**3) | |
def calculate_train_vram_requirements( | |
batch_size, seq_len, params, precision, num_layers, num_attn_heads, hidden_size, **ignored |
View libfreenect2 and freenect2-python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libfreenect2 = with pkgs; stdenv.mkDerivation rec { | |
pname = "freenect2"; | |
version = "0.2.1"; | |
src = fetchFromGitHub { | |
owner = "OpenKinect"; | |
repo = "libfreenect2"; | |
rev = "v${version}"; | |
sha256 = "sha256-v+NQiR9LTQOwr1kgVpGmFSSemiPw4rmdQE/B6ycoLpU="; | |
}; |