File size: 420 Bytes
0afe019
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""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")