Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is
This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.
Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.
This file contains hidden or 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
| #!/bin/bash | |
| echo "Cleaning up Xcode files…" | |
| # Show current heavy folders | |
| du -sh ~/Library/Developer/Xcode/DerivedData \ | |
| ~/Library/Developer/Xcode/Archives \ | |
| ~/Library/Developer/Xcode/iOS\ DeviceSupport \ | |
| ~/Library/Developer/CoreSimulator/Devices \ | |
| ~/Library/Developer/Xcode/DocumentationCache 2>/dev/null || true |
This file contains hidden or 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 google import genai | |
| from google.genai import types | |
| import typing_extensions as typing | |
| from PIL import Image | |
| import requests | |
| import io | |
| import json | |
| import os | |
This file contains hidden or 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
| # /// script | |
| # dependencies = [ | |
| # "atproto" | |
| # ] | |
| # /// | |
| from atproto import Client | |
| import getpass | |
| import time |
This file contains hidden or 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 torch | |
| from diffusers import FluxTransformer2DModel | |
| import torch.utils.benchmark as benchmark | |
| from torchao.quantization import quantize_, int8_weight_only | |
| from torchao.utils import unwrap_tensor_subclass | |
| import torch._inductor | |
| torch._inductor.config.mixed_mm_choice = "triton" | |
This file contains hidden or 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
| # download FluxCFGPipline | |
| !wget https://raw.githubusercontent.com/linoytsaban/diffusers/refs/heads/dreambooth-lora-flux-exploration/examples/community/pipeline_flux_with_cfg.py | |
| # load pipeline | |
| import diffusers | |
| import torch | |
| from pipeline_flux_with_cfg import FluxCFGPipeline | |
| pipe = FluxCFGPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", | |
| torch_dtype=torch.bfloat16) |
Flux: https://blackforestlabs.ai/announcing-black-forest-labs/
- Run Flux with quantization by AmericanPresidentJimmyCarter.
- Run Flux on a 24GB 4090 by decoupling the different stages of the pipeline
- Running with
torchao - Running with NF4
The first resource even allows you to run the pipeline under 16GBs of GPU VRAM.
This file contains hidden or 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 argparse | |
| import numpy as np | |
| import torch | |
| import torch.nn as nn | |
| import coremltools as ct | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| # When using float16, all predicted logits are 0. To be debugged. | |
| compute_precision = ct.precision.FLOAT32 | |
| compute_units = ct.ComputeUnit.CPU_ONLY |
NewerOlder