Skip to content

Instantly share code, notes, and snippets.

View hwvs's full-sized avatar
:shipit:
Ship it

Hunter W. Watson hwvs

:shipit:
Ship it
View GitHub Profile
@hwvs
hwvs / fix_cudaHostRegister.py
Last active January 17, 2025 02:55
[PyTorch] Fix cudaHostRegister->pinned_use_cuda_host_register:False on Windows with Nvidia GTX 1070/1080
import torch
import re
# ....
# Fix for cudaHostRegister on Windows with Nvidia GTX 1070/1080 ( Hunter Watson | github.com/hwvs )
# Resolves: "RuntimeError: Host and device pointer dont match with cudaHostRegister. Please dont use this feature by setting PYTORCH_CUDA_ALLOC_CONF=use_cuda_host_register:False (default)"
# Tested on:
# -- Unsloth 2025.1.1: Fast Qwen2 patching. Transformers: 4.46.3.
# -- GPU: NVIDIA GeForce GTX 1070. Max memory: 8.0 GB. Platform: Windows.
@adamloving
adamloving / temporary-email-address-domains
Last active October 9, 2025 06:47
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com