Enable activation checkpointing by default and set ce_chunk=128 for rock-solid 7.5GB VRAM
Browse files15 unmodified lines161718191920212215 unmodified lines attn_dropout: float = 0.0 # 0.0 for pretraining and SFT (preserves dense factual memory) resid_dropout: float = 0.0 # 0.0 for pretraining and SFT neftune_alpha: float = 0.0 # 0.0 for stable special token boundaries (64000-64002) ce_chunk: int = 512 # 512 saturates Tensor Cores (4x fewer GEMM launches than 128) ce_chunk: int = 128 # 128 tokens per chunk keeps intermediate logits <= 260MB (Zero OOM Guarantee) max_seq_len: int = None # Compatibility alias for context_length
def __post_init__(self):code/config.py+1-1