Skip to content

Commit

Permalink
Add missing flags for pretrain experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxploter committed Jul 22, 2024
1 parent 569a3c3 commit 2f878be
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tapas/experiments/tapas_pretraining_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@

FLAGS = flags.FLAGS

flags.DEFINE_integer(
"restrict_attention_bucket_size", 0, "For sparse attention modes, further "
"restrict attention to consecutive buckets of uniform size.")

flags.DEFINE_integer(
"restrict_attention_header_size", None, "For sparse attention modes, size "
"of the first section that will attend to/from everything else.")

flags.DEFINE_float(
"restrict_attention_row_heads_ratio", 0.5, "For sparse attention modes, "
"proportion of heads that should focus on rows vs columns.")

flags.DEFINE_string("data_format", "tfrecord", "The input data format.")

flags.DEFINE_string(
Expand Down

0 comments on commit 2f878be

Please sign in to comment.