Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/train_nougat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ resume_from_checkpoint_path: null
result_path: "result"
model_path: null
dataset_paths: ["path/to/train.jsonl"]
datasets_root: "paired/output"
tokenizer: "dataset/tokenizer.json"
exp_name: "nougat"
train_batch_sizes: [1]
Expand Down
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def train(config):
nougat_model=model_module.model,
max_length=config.max_length,
split=split,
root_name=config.datasets_root
)
)
data_module.train_datasets = datasets["train"]
Expand Down