summaryrefslogtreecommitdiff
path: root/gpt2/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'gpt2/config.go')
-rw-r--r--gpt2/config.go6
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,