Skip to content

Instantly share code, notes, and snippets.

View GallagherCommaJack's full-sized avatar

Jack Gallagher GallagherCommaJack

View GitHub Profile
@GallagherCommaJack
GallagherCommaJack / claude_6
Created February 28, 2025 23:45
Claude prompt set 6
A Pueblo cliff dwelling reimagined as a data center
A Pueblo kiva reimagined as a quantum computing center
A Pueblo pottery design representing quantum physics
A Pueblo pottery design representing the architecture of the cloud
A Puerto Rican vejigante mask representing digital tricksters
A Qatari pearl diving scene reimagined with underwater data centers
A Qing dynasty scroll painting of interplanetary colonization
A Rachel Whiteread cast of a server room
A Rachel Whiteread cast of the negative space inside a quantum computer
A Rajasthani miniature painting of quantum entanglement
@GallagherCommaJack
GallagherCommaJack / claude_5
Created February 28, 2025 23:45
Claude prompt set 5
A Native American ledger drawing depicting human-robot cooperation
A Nauruan frigate bird motif representing data transmission
A Navajo Yeibichai dance depicting the birth of quantum intelligence
A Navajo sand painting depicting artificial neural networks
A Navajo sand painting of computer viruses
A Navajo sand painting of the digital healing ceremony
A Navajo sandpainting of the digital healing ceremony
A Nazca geoglyph visible only from satellite imagery
A Nazca line drawing visible only to orbital AI systems
A Ndebele house painting pattern representing computer code
@GallagherCommaJack
GallagherCommaJack / claude_4
Created February 28, 2025 23:45
Claude prompt set 4
A Malagasy funeral pole representing digital afterlife
A Malawian wood carving depicting the history of human-machine relationships
A Maldivian lacquer work design representing coral data networks
A Malevich-inspired representation of the void between digital and physical
A Malian Dogon mask representing facial recognition
A Maltese lace pattern representing network connections
A Mamluk brass tray engraved with the history of quantum physics
A Mamluk carpet pattern representing the structure of the internet
A Maori meeting house carved with the history of human-AI cooperation
A Maori pounamu carving of a digital taniwha
@GallagherCommaJack
GallagherCommaJack / claude_3
Created February 28, 2025 23:45
Claude prompt set 3
A Han dynasty bronze vessel containing digital memories
A Hilma af Klint-inspired diagram of the quantum structure of artificial consciousness
A Himba body painting pattern representing digital identity
A Hindu mandala made of circuit boards
A Hmong story cloth depicting human-AI coexistence
A Hmong story cloth depicting the history of human-computer interaction
A Hokusai-style wave made of fiber optic cables
A Hopi Kachina doll representing social media addiction
A Hopi petroglyph depicting quantum computing
A Huichol yarn painting depicting the web of global communication
@GallagherCommaJack
GallagherCommaJack / claude_2
Created February 28, 2025 23:45
Claude prompt set 2
A Congolese Kuba cloth pattern representing Big Data
A Constructivist poster for the revolution of machines
A Coptic textile pattern representing digital communication
A Cornelia Parker exploded view of a quantum computer
A Cornelia Parker suspended explosion of a quantum computer's components
A Croatian interlace pattern representing blockchain structure
A Cuban Santería altar for the digital orisha
A Cubist interpretation of blockchain technology
A Cubist portrait of the collective digital identity
A Cycladic figurine representing the essence of artificial consciousness
@GallagherCommaJack
GallagherCommaJack / claude_1
Created February 28, 2025 23:45
Claude prompt set 1
A Babylonian astronomical tablet predicting the technological singularity
A Babylonian star map representing digital constellations
A Bahraini pearl diving scene reimagined with underwater data centers
A Balinese kris handle depicting the spirit of technology
A Balinese shadow puppet show about artificial consciousness
A Balinese shadow puppet show about the singularity
A Balinese temple carving of humans uploading to the cloud
A Bamana Chi Wara headdress representing the spirit of digital farming
A Bangladeshi rickshaw painting depicting technological utopia
A Banksy street art depicting robots rebelling against surveillance
import torch
import torch.nn.functional as F
from einops import reduce, rearrange
class DepthwiseRematConvFn(torch.autograd.Function):
@staticmethod
def forward(
ctx,
input,
k1,
class CrossAttentionModConv2d(nn.Module):
def __init__(self, state, ch, d_context, ch_q=None, d_v=None, n_head=1):
super().__init__()
assert ch % n_head == 0
self.state = state
self.n_head = n_head
self.ch = ch
self.d_context = d_context
self.ch_q = ch_q or self.ch
self.d_v = d_v or self.d_context
from math import sqrt
import torch
from fast_transformers.attention_registry import (
AttentionRegistry, EventDispatcherInstance, Float, Optional,
RecurrentAttentionRegistry, RecurrentCrossAttentionRegistry)
from fast_transformers.builders import (RecurrentDecoderBuilder,
RecurrentEncoderBuilder,
TransformerDecoderBuilder,
TransformerEncoderBuilder)
import torch
import torch.nn as nn
import torch.nn.functional as TF
import torch.utils.data as D
import torchvision as Tv
import pytorch_lightning as pl
def init_weights(m):
if type(m) == nn.Conv2d or type(m) == nn.ConvTranspose2d: