Kotensor
Toggle table of contents
1.2.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Kotensor
Kotensor
/
io.kotensor.core
/
Sampling
Sampling
class
Sampling
@
JvmOverloads
constructor
(
val
temperature
:
Float
=
0.7f
,
val
topK
:
Int
=
40
,
val
topP
:
Float
=
0.9f
,
val
repetitionPenalty
:
Float
=
1.1f
,
val
repetitionWindow
:
Int
=
64
,
val
seed
:
Long
?
=
null
)
(
source
)
Members
Constructors
Sampling
Link copied to clipboard
@
JvmOverloads
constructor
(
temperature
:
Float
=
0.7f
,
topK
:
Int
=
40
,
topP
:
Float
=
0.9f
,
repetitionPenalty
:
Float
=
1.1f
,
repetitionWindow
:
Int
=
64
,
seed
:
Long
?
=
null
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
is
Greedy
Link copied to clipboard
val
isGreedy
:
Boolean
repetition
Penalty
Link copied to clipboard
val
repetitionPenalty
:
Float
repetition
Window
Link copied to clipboard
val
repetitionWindow
:
Int
seed
Link copied to clipboard
val
seed
:
Long
?
temperature
Link copied to clipboard
val
temperature
:
Float
top
K
Link copied to clipboard
val
topK
:
Int
top
P
Link copied to clipboard
val
topP
:
Float
Functions
new
Sampler
Link copied to clipboard
fun
newSampler
(
vocabularySize
:
Int
)
:
Sampler
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String