Skip to content

Commit

Permalink
moved
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed Oct 27, 2024
1 parent 04d3000 commit 437ad32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/cosine/simd/simd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var pool = sync.Pool{
},
}

// Matmul multiplies matrix M by N and writes the result into dst
// Cosine calculates the cosine similarity between two vectors
func Cosine(a, b []float32) float64 {
if len(a) != len(b) {
panic("vectors must be of same length")
Expand All @@ -37,7 +37,7 @@ func Cosine(a, b []float32) float64 {
pool.Put(out)
return result
default:
return float64(cosine(a, b))
return cosine(a, b)
}
}

Expand Down
4 changes: 2 additions & 2 deletions eval/main.go → internal/eval/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func loadModel() *search.Vectorizer {
model := "../dist/MiniLM-L6-v2.Q8_0.gguf"
model := "../../dist/MiniLM-L6-v2.Q8_0.gguf"
fmt.Printf("Loading model: %s\n", model)

mod, _ := filepath.Abs(model)
Expand Down Expand Up @@ -83,7 +83,7 @@ type entry struct {

// loadSICK parses the SICK CSV dataset and returns sentence pairs with their relatedness scores
func loadSICK() ([]entry, error) {
file, err := os.Open("../dist/dataset.txt")
file, err := os.Open("../../dist/dataset.txt")
if err != nil {
return nil, err
}
Expand Down
File renamed without changes.

0 comments on commit 437ad32

Please sign in to comment.