Skip to content
Open
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
5 changes: 4 additions & 1 deletion scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def process_batch(batch):
del batch["dataset_name"]
return batch

# copy the original config before we modify it
model_config = FLAGS.config.to_dict()

# load datasets
if "oxe_kwargs" in FLAGS.config.dataset_kwargs:
# create dataset_kwargs_list from oxe_kwargs
Expand Down Expand Up @@ -180,7 +183,7 @@ def process_batch(batch):
rng = jax.random.PRNGKey(FLAGS.config.seed)
rng, init_rng = jax.random.split(rng)
model = OctoModel.from_config(
FLAGS.config.to_dict(),
model_config,
example_batch,
text_processor,
verbose=True,
Expand Down