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
absl-py==1.1.0 | |
astroid==2.12.13 | |
astunparse==1.6.3 | |
attrs==21.4.0 | |
blis==0.7.8 | |
cachetools==5.2.0 | |
catalogue==2.0.7 | |
certifi==2022.6.15 | |
chardet==5.0.0 | |
charset-normalizer==2.1.0 |
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
#!/bin/bash | |
#SBATCH -p p100 | |
#SBATCH --gres=gpu:1 | |
#SBATCH -c 4 | |
#SBATCH --mem=16G | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks=1 | |
##SBATCH --ntasks-per-node=1 | |
#SBATCH --time=04:00:00 | |
#SBATCH --job-name=jupyter-notebook |
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
## For general architecture see: https://silverweed.github.io/assets/docs/distributed_rendering_in_vulkan.pdf | |
import Xlib.display | |
import glob | |
import warnings | |
import os | |
import ctypes.util | |
import xml.etree.ElementTree | |
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
#!/bin/bash | |
# Install NVIDIA driver: | |
sudo apt-get update | |
sudo apt-get install nvidia-driver-460 | |
sudo reboot now | |
# Wait 3 minutes and reconnect | |
sleep 3m | |
# Check that nvidia driver is loaded: |
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
astroid==2.7.3 | |
attrs==20.3.0 | |
certifi==2020.12.5 | |
chardet==4.0.0 | |
click==8.0.1 | |
colorama==0.4.4 | |
conllu==4.4.1 | |
filelock==3.0.12 | |
funcparserlib==0.3.6 | |
huggingface-hub==0.0.17 |
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
#!/bin/bash | |
# Author: Raeid Saqur | |
# Email: raeidsaqur@cs.toronto.edu | |
# Install NVIDIA driver: | |
sudo apt-get update | |
sudo apt-get install nvidia-driver-460 | |
sudo reboot now | |
# Wait 3 minutes and reconnect |
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
#!/bin/bash | |
# Author: Raeid Saqur | |
# Email: raeidsaqur@cs.toronto.edu | |
LOCAL_KEY=id_rsa | |
REMOTE_USER=raeidsaqur | |
REMOTE_SERVER="vdm1.vectorinstitute.ai" # use dedicated data mover server networked to Vaughan | |
PROJ_PATH="<SOME/PROJ/PATH>" | |
LOCAL_PROJ_DIR="$HOME/Research/projects/${PROJ_PATH}" |
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
#!/bin/bash | |
# Create virtual env in Conda | |
conda create -n aenv python=3.8 | |
conda activate aenv | |
# To [list|remove] | |
#conda env [list|remove] [-n aenv] | |
# Add Conda env to Jupyter Notebook | |
pip install --user ipykernel |
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
from functools import TopologicalSorter | |
graph = {"A": {"D"}, "B": {"D"}, "C": {"E", "H"}, "D": {"F", "G", "H"}, "E": {"G"}} | |
ts = TopologicalSorter(graph) | |
list(ts.static_order()) | |
# ['H', 'F', 'G', 'D', 'E', 'A', 'B', 'C'] |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import time, logging, platform | |
import wandb | |
def wandb_init(opt, *args, **kwargs): | |
"""A quick naive example """ | |
wandb_identifier = get_run_identifier(opt, *args, **kwargs) | |
wandb.init(project="aProj", name=wandb_identifier, notes="<Intriguing notes>") |
NewerOlder