Documentation
¶
Index ¶
- Constants
- func TokenLoadScorerFactory(name string, params *json.Decoder, _ fwkplugin.Handle) (fwkplugin.Plugin, error)
- type Config
- type TokenLoadScorer
- func (s *TokenLoadScorer) Category() fwksched.ScorerCategory
- func (s *TokenLoadScorer) Consumes() fwkplugin.DataDependencies
- func (s *TokenLoadScorer) Score(ctx context.Context, _ *fwksched.InferenceRequest, ...) map[fwksched.Endpoint]float64
- func (s *TokenLoadScorer) TypedName() fwkplugin.TypedName
Constants ¶
View Source
const (
TokenLoadScorerType = "token-load-scorer"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// QueueThresholdTokens defines the maximum number of in-flight tokens used for scoring normalization.
// Defaults to 4194304 if unset.
QueueThresholdTokens int64 `json:"queueThresholdTokens"`
InFlightLoadProducerName string `json:"inFlightLoadProducerName,omitempty"`
}
Config holds the configuration for the TokenLoadScorer.
type TokenLoadScorer ¶
type TokenLoadScorer struct {
// contains filtered or unexported fields
}
func (*TokenLoadScorer) Category ¶
func (s *TokenLoadScorer) Category() fwksched.ScorerCategory
func (*TokenLoadScorer) Consumes ¶
func (s *TokenLoadScorer) Consumes() fwkplugin.DataDependencies
func (*TokenLoadScorer) Score ¶
func (s *TokenLoadScorer) Score(ctx context.Context, _ *fwksched.InferenceRequest, endpoints []fwksched.Endpoint) map[fwksched.Endpoint]float64
func (*TokenLoadScorer) TypedName ¶
func (s *TokenLoadScorer) TypedName() fwkplugin.TypedName
Click to show internal directories.
Click to hide internal directories.