Enable activation checkpointing by default and set ce_chunk=128 for rock-solid 7.5GB VRAM
Browse files15 unmodified lines1617181920212215 unmodified linesattn_dropout: float = 0.0 # 0.0 for pretraining and SFT (preserves dense factual memory)resid_dropout: float = 0.0 # 0.0 for pretraining and SFTneftune_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)max_seq_len: int = None # Compatibility alias for context_lengthdef __post_init__(self):15 unmodified lines1617181920212215 unmodified linesattn_dropout: float = 0.0 # 0.0 for pretraining and SFT (preserves dense factual memory)resid_dropout: float = 0.0 # 0.0 for pretraining and SFTneftune_alpha: float = 0.0 # 0.0 for stable special token boundaries (64000-64002)ce_chunk: int = 128 # 128 tokens per chunk keeps intermediate logits <= 260MB (Zero OOM Guarantee)max_seq_len: int = None # Compatibility alias for context_lengthdef __post_init__(self):
code/config.py+1-1