mirror of
https://github.com/ollama/ollama.git
synced 2026-03-27 02:58:43 +07:00
model: add rnj-1 inference support (#13354)
This commit is contained in:
@@ -58,6 +58,18 @@ func WithAttentionFactor(attentionFactor float32) func(*Options) {
|
||||
}
|
||||
}
|
||||
|
||||
func WithBetaFast(betaFast float32) func(*Options) {
|
||||
return func(opts *Options) {
|
||||
opts.YaRN.BetaFast = betaFast
|
||||
}
|
||||
}
|
||||
|
||||
func WithBetaSlow(betaSlow float32) func(*Options) {
|
||||
return func(opts *Options) {
|
||||
opts.YaRN.BetaSlow = betaSlow
|
||||
}
|
||||
}
|
||||
|
||||
func WithMRoPE(sections []int) func(*Options) {
|
||||
return func(opts *Options) {
|
||||
opts.Type |= 1 << 3
|
||||
|
||||
Reference in New Issue
Block a user