Skip to content

Instantly share code, notes, and snippets.

View lucataco's full-sized avatar
🎯
Focusing

Luis Catacora lucataco

🎯
Focusing
View GitHub Profile
@lucataco
lucataco / run.py
Last active August 6, 2024 20:56
Flux-Schnell Optimum Quanto
from optimum.quanto import freeze, qfloat8, quantize
from diffusers import FluxPipeline
import torch
import time
seed=1337
generator = torch.Generator("cuda").manual_seed(seed)
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16).to("cuda")
@lucataco
lucataco / docker-compose.yaml
Created February 8, 2025 02:59
Coolify Pihole & Unbound script
services:
pihole-unbound:
image: 'bigbeartechworld/big-bear-pihole-unbound:2024.07.0'
environment:
- SERVICE_FQDN_PIHOLE_8080
- SERVICE_FQDN_PIHOLE_10443
- 'DNS1=127.0.0.1#5353'
- DNS2=no
- TZ=America/Chicago
- WEBPASSWORD=$SERVICE_PASSWORD_PIHOLE
@lucataco
lucataco / hf.py
Last active March 5, 2025 18:41
Run Wan2.1-T2V-1.3B-Diffusers on your Mac
# Setup:
# conda create -n wan python=3.10
# conda activate wan
# pip3 install torch torchvision torchaudio
# pip install git+https://github.com/huggingface/diffusers.git@3ee899fa0c0a443db371848a87582b2e2295852d
# pip install accelerate==1.4.0
# pip install transformers==4.49.0
# pip install ftfy==6.3.1