File tree 5 files changed +11
-8
lines changed
5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
# --- dockerfile to test hugot ---
2
2
3
3
ARG GO_VERSION=1.24.1
4
- ARG ONNXRUNTIME_VERSION=1.20.1
4
+ ARG ONNXRUNTIME_VERSION=1.21.0
5
5
ARG BUILD_PLATFORM=linux/amd64
6
6
7
7
# --- runtime layer with all hugot dependencies for cpu ---
Original file line number Diff line number Diff line change 1
1
# --- dockerfile to test hugot ---
2
2
3
3
ARG GO_VERSION=1.24.1
4
- ARG ONNXRUNTIME_VERSION=1.20.1
4
+ ARG ONNXRUNTIME_VERSION=1.21.0
5
5
ARG BUILD_PLATFORM=linux/amd64
6
6
7
7
# --- 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 (
14
14
github.com/stretchr/testify v1.10.0
15
15
github.com/urfave/cli/v2 v2.27.6
16
16
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
18
18
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
19
19
)
20
20
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
63
63
github.com/x448/float16 v0.8.4 /go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg =
64
64
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4 =
65
65
github.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 =
68
68
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34 =
69
69
golang.org/x/crypto v0.36.0 /go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc =
70
70
golang.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 (
15
15
"github.com/knights-analytics/hugot/datasets"
16
16
"github.com/knights-analytics/hugot/options"
17
17
"github.com/knights-analytics/hugot/pipelines"
18
+ "github.com/knights-analytics/hugot/util"
18
19
)
19
20
20
21
func cosineSimilarityTester (x []float32 , y []float32 ) float64 {
@@ -243,13 +244,15 @@ func TestSemanticSimilarityCuda(t *testing.T) {
243
244
}
244
245
245
246
// 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 {
247
248
t .Fatal (e )
248
249
}
249
- if _ , err := os . Stat ("./models/testTrain.onnx " ); err != nil {
250
+ if exists , existsErr := util . FileExists ("./models/testTrain" ); existsErr != nil {
250
251
t .Fatal (err )
252
+ } else if ! exists {
253
+ t .Fatal ("model file ./models/testTrain does not exist" )
251
254
}
252
- if err = os . Remove ("./models/testTrain.onnx " ); err != nil {
255
+ if err = util . DeleteFile ("./models/testTrain" ); err != nil {
253
256
t .Fatal (err )
254
257
}
255
258
}
You can’t perform that action at this time.
0 commit comments