Skip to content

Commit 947c24f

Browse files
youzichuanrick-github
authored andcommitted
chore: fix some inconsistent function name in comment
Signed-off-by: youzichuan <youzichuan6@outlook.com>
1 parent aa63205 commit 947c24f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ml/backend/ggml/quantization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
fsggml "github.com/ollama/ollama/fs/ggml"
1616
)
1717

18-
// convertToF32 converts (dequantizes) the raw data to F32 so we can then quantize it
18+
// ConvertToF32 converts (dequantizes) the raw data to F32 so we can then quantize it
1919
func ConvertToF32(data []byte, dtype uint32, nelements uint64) []float32 {
2020
f32s := make([]float32, nelements)
2121
elems := C.int64_t(nelements)

ml/nn/rope/rope.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func WithOriginalContextLength(n int) func(*Options) {
2222
}
2323
}
2424

25-
// WithType sets RoPE type to NeoX
25+
// WithTypeNeoX sets RoPE type to NeoX
2626
func WithTypeNeoX() func(*Options) {
2727
return func(opts *Options) {
2828
opts.Type = 2

runner/common/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func ContainsStopSuffix(sequence string, stops []string) bool {
2626
return false
2727
}
2828

29-
// truncateStop removes the provided stop string from pieces,
29+
// TruncateStop removes the provided stop string from pieces,
3030
// returning the partial pieces with stop removed, including truncating
3131
// the last piece if required (and signalling if this was the case)
3232
func TruncateStop(pieces []string, stop string) ([]string, bool) {

server/internal/client/ollama/registry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func TestErrorUnmarshal(t *testing.T) {
468468
}
469469
}
470470

471-
// TestParseNameErrors tests that parseName returns errors messages with enough
471+
// TestParseNameExtendedErrors tests that parseName returns errors messages with enough
472472
// detail for users to debug naming issues they may encounter. Previous to this
473473
// test, the error messages were not very helpful and each problem was reported
474474
// as the same message.

0 commit comments

Comments
 (0)