diff options
| author | Jonas Knobloch <jonas.knobloch@t-online.de> | 2026-04-08 22:24:10 +0200 |
|---|---|---|
| committer | Jonas Knobloch <jonas.knobloch@t-online.de> | 2026-04-08 23:46:10 +0200 |
| commit | 4386784c1006321c5cf0e1e005b19e0a7d7563ae (patch) | |
| tree | 3d22360aaac8e4d64ca90e39b7247942073582d1 /gpt2/config.go | |
| parent | a006507a24b93a6af7e3cff8833fb96b48b159d7 (diff) | |
Refactor model options
* Add options struct
Diffstat (limited to 'gpt2/config.go')
| -rw-r--r-- | gpt2/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpt2/config.go b/gpt2/config.go index b77578d..cd3984d 100644 --- a/gpt2/config.go +++ b/gpt2/config.go @@ -8,6 +8,12 @@ type Config struct { NumPositions int } +type Options struct { + WithCache bool + WithLogits bool + WithLogProbs bool +} + func DefaultConfig() Config { return Config{ VocabSize: 50257, |
