Skip to content

Commit

Permalink
fix default flush threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
sangkeun00 committed Jun 7, 2024
1 parent f549569 commit f576318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ still integrate LogIX into their existing training code similarly to any traditi

### 🤗 HuggingFace Integration

A full example can be found [here](https://github.com/logix-project/logix/tree/main/examples/huggingface).

```python
from transformers import Trainer, Seq2SeqTrainer
from logix.huggingface import patch_trainer, LogIXArguments
Expand Down Expand Up @@ -82,6 +84,8 @@ trainer.self_influence()

### ⚡ PyTorch Lightning Integration

A full example can be found [here](https://github.com/logix-project/logix/tree/main/examples/lightning).

```python
from lightning import LightningModule, Trainer
from logix.lightning import patch, LogIXArguments
Expand Down
2 changes: 1 addition & 1 deletion logix/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LoggingConfig:

log_dir: str = field(init=False)
flush_threshold: int = field(
default=-1, metadata={"help": "Flush threshold for the log buffer."}
default=1000000000, metadata={"help": "Flush threshold for the log buffer."}
)
num_workers: int = field(
default=1, metadata={"help": "Number of workers used for logging."}
Expand Down

0 comments on commit f576318

Please sign in to comment.