Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
bb71654e
Commit
bb71654e
authored
Aug 13, 2025
by
youzichuan
Committed by
Jesse Gross
Aug 13, 2025
Browse files
chore: fix some inconsistent function name in comment
Signed-off-by:
youzichuan
<
youzichuan6@outlook.com
>
parent
a343ae53
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ml/backend/ggml/quantization.go
ml/backend/ggml/quantization.go
+1
-1
ml/nn/rope/rope.go
ml/nn/rope/rope.go
+1
-1
runner/common/stop.go
runner/common/stop.go
+1
-1
server/internal/client/ollama/registry_test.go
server/internal/client/ollama/registry_test.go
+1
-1
No files found.
ml/backend/ggml/quantization.go
View file @
bb71654e
...
@@ -15,7 +15,7 @@ import (
...
@@ -15,7 +15,7 @@ import (
fsggml
"github.com/ollama/ollama/fs/ggml"
fsggml
"github.com/ollama/ollama/fs/ggml"
)
)
//
c
onvertToF32 converts (dequantizes) the raw data to F32 so we can then quantize it
//
C
onvertToF32 converts (dequantizes) the raw data to F32 so we can then quantize it
func
ConvertToF32
(
data
[]
byte
,
dtype
uint32
,
nelements
uint64
)
[]
float32
{
func
ConvertToF32
(
data
[]
byte
,
dtype
uint32
,
nelements
uint64
)
[]
float32
{
f32s
:=
make
([]
float32
,
nelements
)
f32s
:=
make
([]
float32
,
nelements
)
elems
:=
C
.
int64_t
(
nelements
)
elems
:=
C
.
int64_t
(
nelements
)
...
...
ml/nn/rope/rope.go
View file @
bb71654e
...
@@ -22,7 +22,7 @@ func WithOriginalContextLength(n int) func(*Options) {
...
@@ -22,7 +22,7 @@ func WithOriginalContextLength(n int) func(*Options) {
}
}
}
}
// WithType sets RoPE type to NeoX
// WithType
NeoX
sets RoPE type to NeoX
func
WithTypeNeoX
()
func
(
*
Options
)
{
func
WithTypeNeoX
()
func
(
*
Options
)
{
return
func
(
opts
*
Options
)
{
return
func
(
opts
*
Options
)
{
opts
.
Type
=
2
opts
.
Type
=
2
...
...
runner/common/stop.go
View file @
bb71654e
...
@@ -26,7 +26,7 @@ func ContainsStopSuffix(sequence string, stops []string) bool {
...
@@ -26,7 +26,7 @@ func ContainsStopSuffix(sequence string, stops []string) bool {
return
false
return
false
}
}
//
t
runcateStop removes the provided stop string from pieces,
//
T
runcateStop removes the provided stop string from pieces,
// returning the partial pieces with stop removed, including truncating
// returning the partial pieces with stop removed, including truncating
// the last piece if required (and signalling if this was the case)
// the last piece if required (and signalling if this was the case)
func
TruncateStop
(
pieces
[]
string
,
stop
string
)
([]
string
,
bool
)
{
func
TruncateStop
(
pieces
[]
string
,
stop
string
)
([]
string
,
bool
)
{
...
...
server/internal/client/ollama/registry_test.go
View file @
bb71654e
...
@@ -468,7 +468,7 @@ func TestErrorUnmarshal(t *testing.T) {
...
@@ -468,7 +468,7 @@ func TestErrorUnmarshal(t *testing.T) {
}
}
}
}
// TestParseNameErrors tests that parseName returns errors messages with enough
// TestParseNameE
xtendedE
rrors tests that parseName returns errors messages with enough
// detail for users to debug naming issues they may encounter. Previous to this
// detail for users to debug naming issues they may encounter. Previous to this
// test, the error messages were not very helpful and each problem was reported
// test, the error messages were not very helpful and each problem was reported
// as the same message.
// as the same message.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment