gpt2s-hf.yaml 543 Bytes
Newer Older
Tri Dao's avatar
Tri Dao committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# @package _global_
defaults:
  - /experiment/owt/base.yaml
  - override /model: gpt2-hf
  - override /model/gpt2model: gpt2-small
  - override /callbacks: [default, norm-monitor, flop-count]

datamodule:
  batch_size: 8

train:
  # Use the standard torch.nn.CrossEntropyLoss
  loss_fn: null

callbacks:
  flop_count:
    input_size:
      - ${datamodule.max_length}
    input_dtype:
      # It's surprisingly hard to get hydra to return torch.long since it's not a callable
      _target_: torch.__getattribute__
      _args_:
        - long