Skip to content

Commit

Permalink
Merge pull request #63 from thomas-chong/main
Browse files Browse the repository at this point in the history
Add support for PEGASUS model
  • Loading branch information
jalammar authored Jan 18, 2022
2 parents 0968c9f + fbc5ea9 commit 0ef61c5
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions src/ecco/model-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,99 @@ facebook/bart-large-mnli:
token_prefix: ''
partial_token_prefix: '##'

# PEGASUS
google/pegasus-large:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-xsum:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-gigaword:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-cnn_dailymail:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-wikihow:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-reddit_tifu:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-pubmed:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-newsroom:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-multi_news:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-billsum:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-big_patent:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-arxiv:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''
google/pegasus-aeslc:
embedding: 'model.shared.weight'
type: 'enc-dec'
activations:
- 'fc1'
token_prefix: ''
partial_token_prefix: ''

# DUMMY MODELS
'sshleifer/tiny-gpt2':
embedding: "transformer.wte.weight"
Expand Down

0 comments on commit 0ef61c5

Please sign in to comment.