Skip to content

Commit

Permalink
remove deprecated attn_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Dec 20, 2024
1 parent 3387a27 commit 83b7d00
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
23 changes: 0 additions & 23 deletions configs/1B/H100_llama2_edu_no_feat.toml

This file was deleted.

1 change: 0 additions & 1 deletion scripts/export_dcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def main(config: ExportConfig):
config.type_model,
vocab_size=len(tokenizer),
seq_length=config.data.seq_length,
attn_fn=config.train.attn_fn,
)

# Convert ZeroBand config to HuggingFace config
Expand Down
9 changes: 0 additions & 9 deletions src/zeroband/train.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
from typing import Literal
import time
import warnings
import psutil
from pydantic import model_validator
from multiprocessing.process import _children
Expand Down Expand Up @@ -77,14 +76,6 @@ class TrainConfig(BaseConfig):
memory_profiler: MemoryProfilerConfig | None = None

sequence_packing: bool = True
attn_fn: Literal["flash", "sdpa"] | None = None

@model_validator(mode="after")
def validate_attn_fn(self):
if self.attn_fn is not None:
warnings.warn("attn_fn argument is deprecated")

return self


class MonitorConfig(BaseConfig):
Expand Down

0 comments on commit 83b7d00

Please sign in to comment.