Skip to content

Commit

Permalink
Fix wikidata starter test
Browse files Browse the repository at this point in the history
  • Loading branch information
sileix committed Oct 11, 2021
1 parent 8949a89 commit b5a0256
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions starter/wikidata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ maxdepth ?= 8
fewshot =
fewshot_size = 100

train_batch_tokens = 2000
val_batch_size = 4000

# options for training
model ?= 1
Expand All @@ -74,8 +76,8 @@ train_nlu_flags ?= \
--warmup 20 \
--gradient_accumulation_steps 20 \
--eval_set_name valid \
--train_batch_tokens 2000 \
--val_batch_size 4000 \
--train_batch_tokens $(train_batch_tokens) \
--val_batch_size $(val_batch_size) \
--preprocess_special_tokens \
--override_question=
custom_train_nlu_flags ?=
Expand Down Expand Up @@ -271,6 +273,7 @@ train: $(datadir)
-rm datadir/almond
ln -sf . datadir/almond
genienlp train \
--no_commit \
--data $(datadir) \
--save $(experiment)/models/$(model) \
--cache $(datadir)/.cache \
Expand Down
2 changes: 1 addition & 1 deletion test/wikidata-starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ wget --no-verbose https://almond-static.stanford.edu/research/csqa/kb-small/item

# generate & train
touch domains.tsv bootleg-types.json bootleg-type-canonicals.json
starter_gen_and_train wikidata city annotation=baseline wikidata_dir=raw/wikidata-small
starter_gen_and_train wikidata city annotation=baseline wikidata_dir=raw/wikidata-small train_batch_tokens=100 val_batch_size=500

# evaluate
make experiment=city model=small evaluate
Expand Down

0 comments on commit b5a0256

Please sign in to comment.