Fine tuning KnowBert for downstream tasks
- 主要言語
- Python
- スター
- 372
- フォーク
- 50
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi, I am trying to run the below code for fine-tuning KnowBert for Tcred dataset:
allennlp train --file-friendly-logging --include-package kb.include_all \
training_config/downstream/tacred.jsonnet -s OUTPUT_DIRECTORY
I met several errors, I was able to resolve some of them. But not sure how to deal with the below error:
Traceback (most recent call last):
File "/home/xu_lu/.local/bin/allennlp", line 10, in
sys.exit(run())
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/run.py", line 18, in run
main(prog="allennlp")
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/commands/__init__.py", line 102, in main
args.func(args)
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/commands/train.py", line 116, in train_model_from_args
args.cache_prefix)
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/commands/train.py", line 160, in train_model_from_file
cache_directory, cache_prefix)
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/commands/train.py", line 226, in train_model
validation_iterator=pieces.validation_iterator)
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/training/trainer.py", line 725, in from_params
params.assert_empty(cls.__name__)
File "/home/xu_lu/.local/lib/python3.7/site-packages/allennlp/common/params.py", line 405, in assert_empty
raise ConfigurationError("Extra parameters passed to {}: {}".format(class_name, self.params))
allennlp.common.checks.ConfigurationError: "Extra parameters passed to Trainer: {'gradient_accumulation_batch_size': 32}"
2020-08-20 15:59:20,126 - INFO - allennlp.models.archival - removing temporary unarchived model dir at /tmp/tmprz5qhl43
My current environment has passed the tests and I am able to run the example to embed the sentences.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。