"""VBQ: the decoder-only architecture of MP-01, by the Manprot team.""" import os # Flash / mem-efficient SDPA kernels on RDNA3 are gated behind this flag in PyTorch's ROCm build. # They are ~10x faster than the math fallback here, so enable them before torch is imported. os.environ.setdefault("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL", "1") os.environ.setdefault("PYTORCH_HIP_ALLOC_CONF", "expandable_segments:True")