openvino_genai.AggregationMode#
- class openvino_genai.AggregationMode#
Bases:
pybind11_object
- Represents the mode of per-token score aggregation when determining least important tokens for eviction from cache
- param AggregationMode.SUM:
In this mode the importance scores of each token will be summed after each step of generation
- param AggregationMode.NORM_SUM:
Same as SUM, but the importance scores are additionally divided by the lifetime (in tokens generated) of a given token in cache
Members:
SUM
NORM_SUM
- __init__(self: openvino_genai.py_openvino_genai.AggregationMode, value: int) None #
Methods
__delattr__
(name, /)Implement delattr(self, name).
__dir__
()Default dir() implementation.
__eq__
(self, other)__format__
(format_spec, /)Default object formatter.
__ge__
(value, /)Return self>=value.
__getattribute__
(name, /)Return getattr(self, name).
__getstate__
(self)__gt__
(value, /)Return self>value.
__hash__
(self)__index__
(self)__init__
(self, value)This method is called when a class is subclassed.
__int__
(self)__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(self, other)__new__
(**kwargs)Helper for pickle.
__reduce_ex__
(protocol, /)Helper for pickle.
__repr__
(self)__setattr__
(name, value, /)Implement setattr(self, name, value).
__setstate__
(self, state)Size of object in memory, in bytes.
__str__
(self)Abstract classes can override this to customize issubclass().
Attributes
__entries
- NORM_SUM = <AggregationMode.NORM_SUM: 1>#
- SUM = <AggregationMode.SUM: 0>#
- __class__#
alias of
pybind11_type
- __delattr__(name, /)#
Implement delattr(self, name).
- __dir__()#
Default dir() implementation.
- __eq__(self: object, other: object) bool #
- __format__(format_spec, /)#
Default object formatter.
- __ge__(value, /)#
Return self>=value.
- __getattribute__(name, /)#
Return getattr(self, name).
- __getstate__(self: object) int #
- __gt__(value, /)#
Return self>value.
- __hash__(self: object) int #
- __index__(self: openvino_genai.py_openvino_genai.AggregationMode) int #
- __init__(self: openvino_genai.py_openvino_genai.AggregationMode, value: int) None #
- __init_subclass__()#
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __int__(self: openvino_genai.py_openvino_genai.AggregationMode) int #
- __le__(value, /)#
Return self<=value.
- __lt__(value, /)#
Return self<value.
- __members__ = {'NORM_SUM': <AggregationMode.NORM_SUM: 1>, 'SUM': <AggregationMode.SUM: 0>}#
- __ne__(self: object, other: object) bool #
- __new__(**kwargs)#
- __reduce__()#
Helper for pickle.
- __reduce_ex__(protocol, /)#
Helper for pickle.
- __repr__(self: object) str #
- __setattr__(name, value, /)#
Implement setattr(self, name, value).
- __setstate__(self: openvino_genai.py_openvino_genai.AggregationMode, state: int) None #
- __sizeof__()#
Size of object in memory, in bytes.
- __str__(self: object) str #
- __subclasshook__()#
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- property name#
- property value#