Skip to content

Instantly share code, notes, and snippets.

View un1tz3r0's full-sized avatar
😵
Distracted

Victor Condino un1tz3r0

😵
Distracted
View GitHub Profile
@un1tz3r0
un1tz3r0 / refusal_demo.ipynb
Last active June 21, 2024 07:17
refusal_demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@regiellis
regiellis / iterative_upscale.json
Last active May 1, 2024 12:01
Iterative Upscale Images Workflow
{
"last_node_id": 25,
"last_link_id": 41,
"nodes": [
{
"id": 4,
"type": "Width/Height Literal",
"pos": [
-209,
451
@sbusso
sbusso / youtubemusicdownloader.py
Created August 19, 2023 22:46 — forked from un1tz3r0/youtubemusicdownloader.py
This script uses ytmusicapi and pytube together to download your playlists, history or 'liked' songs as high-quality audio-only streams from Youtube Music.
''' This script uses ytmusicapi and pytube together to download your playlists, history or 'liked' songs as
high-quality audio-only streams from Youtube Music, which are protected by a "signatureCipher" obfuscation scheme.
To use it, first install [ytmusicapi] and [pytube] using pip, then follow the instructions for creating the auth
file from the response in an authenticated session to a watch-page request as found in your browser's dev-tools.
The downloaded files are placed in ~/Music, named with the artist and track metadata, and will be skipped instead
of downloaded again next time it is run, based on the videoIds of the downloaded songs.
Merry Xmas - V.
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@shawwn
shawwn / example.sh
Created March 6, 2023 05:17
How I run 65B using my fork of llama at https://github.com/shawwn/llama
mp=1; size=7B; # to run 7B
mp=8; size=65B; # to run 65B
for seed in $(randint 1000000)
do
export TARGET_FOLDER=~/ml/data/llama/LLaMA
time python3 -m torch.distributed.run --nproc_per_node $mp example.py --ckpt_dir $TARGET_FOLDER/$size --tokenizer_path $TARGET_FOLDER/tokenizer.model --seed $seed --max_seq_len 2048 --max_gen_len 2048 --count 0 | tee -a ${size}_startrek.txt
done
@sbusso
sbusso / resume.json
Last active October 26, 2023 15:24
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Stéphane BUSSO",
"label": "Tech Leader | Architect | Developer | Web3 | Blockchain | SaaS",
"image": "",
"email": "stephane.busso@gmail.com",
"phone": "+642108923834",
"summary": "As an experienced engineering manager and technical leader, I enjoy helping companies grow their teams, design and develop better software solutions, be agile, and deliver quality products and services faster.",
"location": {
@un1tz3r0
un1tz3r0 / clipfetch.py
Last active August 15, 2022 01:53
clipfetch
#!/usr/bin/python3
#%pip install click clip-retrieval img2dataset aiomultiprocess aiohttp aiofile
from clip_retrieval.clip_client import ClipClient, Modality
import json, pathlib, functools
import aiomultiprocess, asyncio, aiohttp, aiofile
from aiohttp import request, ClientTimeout
from aiomultiprocess import Pool
import click
@un1tz3r0
un1tz3r0 / stylegan3_fine_tuning_with_colab_2022_01_01.ipynb
Last active April 21, 2022 14:21
stylegan3_training_and_inference_2022_02_11.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shawwn
shawwn / since2010.md
Created May 11, 2021 09:46
"What happened after 2010?"

This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.

--

What happened after 2010?

@un1tz3r0
un1tz3r0 / kmeans_elbow.py
Last active July 27, 2021 04:13
kmeans in pure python
# -------------------------------------------------------------------------------
# a very basic k-means/elbow clustering
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# "wrote this up one day while sitting on the terlet. i do some of my best
# thinking there" - Author - Victor M. Condino - Wednesday, Feb. 3rd, 2020
#
# this is some code to find the optimal clustering of points in a n-dimensional
# dataset, when the number of clusters is not known uses the elbow-method.
#
# (I'd like to dedicate this to my mom, Martha, who knows way more about