Skip to content

Instantly share code, notes, and snippets.

View Mohan-Zhang-u's full-sized avatar

Mohan Zhang Mohan-Zhang-u

View GitHub Profile
@Mohan-Zhang-u
Mohan-Zhang-u / audio2midi.md
Created November 29, 2021 10:10 — forked from natowi/audio2midi.md
List of open source audio to midi packages
@Mohan-Zhang-u
Mohan-Zhang-u / normcore-llm.md
Created September 14, 2023 19:09 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
#!/bin/bash
set -e
# Usage:
# ./privatefork.sh <public-repository-url> [-p <personal-access-token>] [-n]
### Environment Variables
# - Public repository URL
# -p: `PAT` (Personal Access Token), optionally provided and will override the default PAT.
# -n: Skip cleanup of the local repository clone.