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 datasets import Dataset, load_from_disk | |
from transformers import TrainingArguments | |
from transformers.trainer_utils import EvalLoopOutput | |
from unsloth import FastLanguageModel | |
import random | |
from huggingface_hub import create_repo | |
from scipy.spatial.distance import cosine | |
from sentence_transformers import SentenceTransformer | |
import statistics |
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
# Huge Pattern | |
`0(0(0([1235679]-(0(2-(0[1-9]|1\\d|2[0-8])|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d)))|[48]-(0(2-(0[1-9]|[12]\\d)|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d))))|[13579]([01345789]-(0(2-(0[1-9]|1\\d|2[0-8])|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d)))|[26]-(0(2-(0[1-9]|[12]\\d)|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d))))|[2468]([048]-(0(2-(0[1-9]|[12]\\d)|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d)))|[1235679]-(0(2-(0[1-9]|1\\d|2[0-8])|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30|[12]\\d)|[02]-(0[1-9]|3[01]|[12]\\d)))))|[1235679](0([0-35679]-(0(2-(0[1-9]|1\\d|2[0-8])|[13578]-(0[1-9]|3[01]|[12]\\d)|[469]-(0[1-9]|30|[12]\\d))|1(1-(0[1-9]|30 |
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
2024-01-19T13:51:10.557605895-08:00 (RayWorkerVllm pid=3381) (28750, 28725, 28770, 28725, 28782, 28725, 28787, 28725, 28740, 28740, 28725, 28740, 28770, 28725, 28740, 28787, 28725, 28740, 28774, 28725, 28750, 28770, 28725, 28750, 28774, 13, 13, 13, 13) | |
2024-01-19T13:51:10.557632935-08:00 (RayWorkerVllm pid=3381) (28750, 28725, 28770, 28725, 28782, 28725, 28787, 28725, 28740, 28740, 28725, 28740, 28770, 28725, 28740, 28787, 28725, 28740, 28774, 28725, 28750, 28770, 28725, 28750, 28774, 13, 13, 13) | |
2024-01-19T13:51:10.557642055-08:00 (RayWorkerVllm pid=3381) (28750, 28725, 28770, 28725, 28782, 28725, 28787, 28725, 28740, 28740, 28725, 28740, 28770, 28725, 28740, 28787, 28725, 28740, 28774, 28725, 28750, 28770, 28725, 28750, 28774, 13, 13) | |
2024-01-19T13:51:10.557645405-08:00 (RayWorkerVllm pid=3381) (28750, 28725, 28770, 28725, 28782, 28725, 28787, 28725, 28740, 28740, 28725, 28740, 28770, 28725, 28740, 28787, 28725, 28740, 28774, 28725, 28750, 28770, 28725, 28750, 28774, 13) | |
2024-01-19T13:51:10.557681445-08:00 |
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 ray | |
import torch | |
import time | |
import random | |
import numpy as np | |
import os | |
# Initialize Ray | |
ray.init() |
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 |
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="; | |
}; |