structs

package
v0.0.0-...-8abfa7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BiasString    BiasType = 0
	BiasTokens             = 1
	BiasLitString          = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BiasGroup

type BiasGroup struct {
	YamlPhrases          *[]string        `json:"-" yaml:"phrases"`
	Phrases              *[]BiasSequences `json:"phrases,omitempty" yaml:"-"`
	Bias                 *float64         `json:"bias,omitempty" yaml:"bias"`
	EnsureSequenceFinish *bool            `json:"ensure_sequence_finish,omitempty" yaml:"ensureSequenceFinish"`
	GenerateOnce         *bool            `json:"generate_once,omitempty" yaml:"generateOnce"`
	Enabled              *bool            `json:"enabled,omitempty" yaml:"enabled"`
	WhenInactive         *bool            `json:"whenInactive,omitempty" yaml:"whenInactive"`
}

type BiasGroups

type BiasGroups []BiasGroup

func (*BiasGroups) RealizeBiases

func (biasGroups *BiasGroups) RealizeBiases()

type BiasSequences

type BiasSequences struct {
	Sequences []gpt_bpe.Tokens `json:"sequences"`
	Type      BiasType         `json:"type"`
}

type BiasType

type BiasType uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL