Skip to content

Instantly share code, notes, and snippets.

View h-lunah's full-sized avatar
📜
https://lunah.is-a.dev

luna h-lunah

📜
https://lunah.is-a.dev
View GitHub Profile
@h-lunah
h-lunah / distributed_training.py
Last active January 18, 2025 14:37
Distributed Hugging Face Training
import os
import json
import random
import torch
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
DataCollatorForLanguageModeling,
BitsAndBytesConfig,
@h-lunah
h-lunah / untitled3.ipynb
Created August 10, 2024 17:58
Untitled3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@h-lunah
h-lunah / yt-captions-fixer.userscript.js
Last active December 3, 2024 17:11
YouTube Captions Fixer
// ==UserScript==
// @name YouTube Captions Fix
// @namespace http://tampermonkey.net/
// @version 2024-12-03
// @description Blank out all instances of YouTube's censorship/sound detection in auto-generated captions
// @author luna (h-lunah)
// @match https://www.youtube.com/*
// @match https://www.youtube-nocookie.com/*
// @match https://m.youtube.com/*
// @match https://music.youtube.com/*
@h-lunah
h-lunah / rtfm.py
Last active April 4, 2024 09:52 — forked from AnotherTwinkle/rtfm.py
"""This extension implents a rtfm support with discord.py"""
import discord
from discord.ext import commands
import inspect
import re
import zlib
import io
import os
from operator import attrgetter