File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# --- dockerfile to test hugot ---
22
33ARG GO_VERSION=1.24.1
4- ARG ONNXRUNTIME_VERSION=1.20.1
4+ ARG ONNXRUNTIME_VERSION=1.21.0
55ARG BUILD_PLATFORM=linux/amd64
66
77# --- runtime layer with all hugot dependencies for cpu ---
Original file line number Diff line number Diff line change 11# --- dockerfile to test hugot ---
22
33ARG GO_VERSION=1.24.1
4- ARG ONNXRUNTIME_VERSION=1.20.1
4+ ARG ONNXRUNTIME_VERSION=1.21.0
55ARG BUILD_PLATFORM=linux/amd64
66
77# --- runtime layer with all hugot dependencies for cpu and gpu ---
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ require (
1414 github.com/stretchr/testify v1.10.0
1515 github.com/urfave/cli/v2 v2.27.6
1616 github.com/viant/afs v1.25.1
17- github.com/yalue/onnxruntime_go v1.17 .0
17+ github.com/yalue/onnxruntime_go v1.18 .0
1818 golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
1919)
2020
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
6363github.com/x448/float16 v0.8.4 /go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg =
6464github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4 =
6565github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 /go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM =
66- github.com/yalue/onnxruntime_go v1.17 .0 h1:nC8AFbmaq9E2gxtxutGPzK/LGCrtnnu7LTGl82YuQzw =
67- github.com/yalue/onnxruntime_go v1.17 .0 /go.mod h1:b4X26A8pekNb1ACJ58wAXgNKeUCGEAQ9dmACut9Sm/4 =
66+ github.com/yalue/onnxruntime_go v1.18 .0 h1:9/NZjgFeS4kOX8/kG5nMw1AxrLaREyvHRh7gTrred8Q =
67+ github.com/yalue/onnxruntime_go v1.18 .0 /go.mod h1:b4X26A8pekNb1ACJ58wAXgNKeUCGEAQ9dmACut9Sm/4 =
6868golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34 =
6969golang.org/x/crypto v0.36.0 /go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc =
7070golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw =
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515 "github.com/knights-analytics/hugot/datasets"
1616 "github.com/knights-analytics/hugot/options"
1717 "github.com/knights-analytics/hugot/pipelines"
18+ "github.com/knights-analytics/hugot/util"
1819)
1920
2021func cosineSimilarityTester (x []float32 , y []float32 ) float64 {
@@ -243,13 +244,15 @@ func TestSemanticSimilarityCuda(t *testing.T) {
243244 }
244245
245246 // we now write the fine-tuned pipeline back to disk as an onnx model
246- if e := session .Save ("./models/testTrain.onnx " ); e != nil {
247+ if e := session .Save ("./models/testTrain" ); e != nil {
247248 t .Fatal (e )
248249 }
249- if _ , err := os . Stat ("./models/testTrain.onnx " ); err != nil {
250+ if exists , existsErr := util . FileExists ("./models/testTrain" ); existsErr != nil {
250251 t .Fatal (err )
252+ } else if ! exists {
253+ t .Fatal ("model file ./models/testTrain does not exist" )
251254 }
252- if err = os . Remove ("./models/testTrain.onnx " ); err != nil {
255+ if err = util . DeleteFile ("./models/testTrain" ); err != nil {
253256 t .Fatal (err )
254257 }
255258}
You can’t perform that action at this time.
0 commit comments