Skip to content

Commit cd67de2

Browse files
committed
fix(WO79): single-thread decode sessions (byte-exact contract across environments)
1 parent c968726 commit cd67de2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎lib/interscript/ml/byt5_onnx.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def id
3838
def build_session(graphs, name)
3939
path = File.join(@tmpdir, name)
4040
File.binwrite(path, graphs.fetch(name))
41-
OnnxRuntime::Model.new(path)
41+
# single-thread decode: the conformance contract is byte-exact
42+
# across environments (WO79); multi-thread fp16 ties flip rows
43+
OnnxRuntime::Model.new(path, intra_op_num_threads: 1)
4244
end
4345

4446
def zero_pasts

0 commit comments

Comments
 (0)