-
Notifications
You must be signed in to change notification settings - Fork 1
/
predict.yaml
43 lines (31 loc) · 1.09 KB
/
predict.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# @package _global_
# specify here default prediction configuration
defaults:
- _self_
- dataset: conll2003
- pipeline: from_pretrained
- serializer: json
- paths: default.yaml
- extras: default.yaml
- hydra: default.yaml
pipeline_type: "prediction"
print_config: True
ignore_warnings: True
seed: null
name: "default"
# This should be the value of save_dir from the train config
# or the url to huggingface hub where the taskmodule and model was pushed to.
# It is used in the pipeline config.
model_name_or_path: pie/example-ner-spanclf-conll03
# to override model weights with content of a checkpoint
ckpt_path: null
# which split from the loaded dataset will be used
dataset_split: test
## enable this to predict on the first GPU with batch size 32
# pipeline:
# device: 0
# batch_size: 32
# predefined path that can be used as output path for the serializer
prediction_save_dir: ${paths.save_dir}/predictions/${name}/${now:%Y-%m-%d_%H-%M-%S}
# if set, the final config including resolved paths etc. will be written to this location
config_out_path: ${prediction_save_dir}/config.yaml