Skip to content

Instantly share code, notes, and snippets.

@cat-state
cat-state / README.md
Created April 28, 2023 19:42
gradio + cluster inference

to use

HF_API_TOKEN=<token> sbatch hf-infer.sbatch

then run

HF_API_TOKEN=<token> HOSTNAME=<hostname of infernce server> python gradio-tgl.py

setup env following hf inference server instructions but chance /usr/local to path to conda env instead.

@cat-state
cat-state / trlx-nemo.sh
Last active January 16, 2023 19:20
`sbatch trlx-nemo.sh`. Note that you have to edit `num_nodes` in the model yml to match the number set in the this file
#!/bin/bash
#SBATCH --job-name=nemo-trlx
#SBATCH --partition=a100-cu117
#SBATCH --nodes=4
#SBATCH --gres=gpu:8
#SBATCH --ntasks-per-node=8
#SBATCH --output="%x.out"
#SBATCH --signal=B:INT@60
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cat-state
cat-state / optical-nn.md
Created September 8, 2022 18:56
optical nn

optical-nn

This repository for organising information as pertaining to the DIY construction of a non-linear optical neural network.

Module

          +------------SINGLE LAYER+--------------------------+
          |                                                   |
          |     +-----+ +--------------+ +-----+ +-------+    |
 +-----&gt; | W1 | | NON | | W2 | | μLENS | |