package
Version:
v0.0.0-...-6e6905b
Opens a new window with list of versions in this module.
Published: Sep 22, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func WithExtrapolationFactor(extrapolationFactor float32) func(*Options)
WithFactors sets custom rope factors
func WithOriginalContextLength(n int) func(*Options)
WithOriginalContextLength sets a custom context length
WithTypeNeoX sets RoPE type to NeoX
type Options struct {
Type int
Factors ml.Tensor
OriginalContextLength int
AttentionFactor,
BetaFast,
BetaSlow float32
}
Options contains optional parameters for RoPE function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.