Skip to content

Instantly share code, notes, and snippets.

View patchy631's full-sized avatar
🏠
Working from home

patchy631

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
os.environ["HF_HOME"] = "/teamspace/studios/this_studio/weights"
os.environ["TORCH_HOME"] = "/teamspace/studios/this_studio/weights"
import gc
import re
import uuid
import textwrap
import nest_asyncio