Skip to content

Commit f576318

Browse files
committed
fix default flush threshold
1 parent f549569 commit f576318

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ still integrate LogIX into their existing training code similarly to any traditi
5353

5454
### 🤗 HuggingFace Integration
5555

56+
A full example can be found [here](https://github.com/logix-project/logix/tree/main/examples/huggingface).
57+
5658
```python
5759
from transformers import Trainer, Seq2SeqTrainer
5860
from logix.huggingface import patch_trainer, LogIXArguments
@@ -82,6 +84,8 @@ trainer.self_influence()
8284

8385
### ⚡ PyTorch Lightning Integration
8486

87+
A full example can be found [here](https://github.com/logix-project/logix/tree/main/examples/lightning).
88+
8589
```python
8690
from lightning import LightningModule, Trainer
8791
from logix.lightning import patch, LogIXArguments

logix/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class LoggingConfig:
5757

5858
log_dir: str = field(init=False)
5959
flush_threshold: int = field(
60-
default=-1, metadata={"help": "Flush threshold for the log buffer."}
60+
default=1000000000, metadata={"help": "Flush threshold for the log buffer."}
6161
)
6262
num_workers: int = field(
6363
default=1, metadata={"help": "Number of workers used for logging."}

0 commit comments

Comments
 (0)