Skip to content

update torchsharp to 0.105.0

6145645
Select commit
Loading
Failed to load commit list.
Open

update torchsharp to 0.105.0 #7416

update torchsharp to 0.105.0
6145645
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Build Analysis / Build Analysis failed Mar 31, 2025 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Build Failures

MachineLearning-CI / Centos_x64 / Centos_x64 Debug_Build / Run Helix Tests

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌Bash exited with code '1'.

MachineLearning-CI / Centos_x64 / Centos_x64 Release_Build / Run Helix Tests

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌Bash exited with code '1'.

MachineLearning-CI / Ubuntu_x64 / Ubuntu_x64 Debug_Build / Run Helix Tests

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌Bash exited with code '1'.

14 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [MachineLearning-CI] [MachineLearning-CodeCoverage]

Known test errors

Test Failures (24 tests failed)

🔹 [All failing tests from MachineLearning-CI]

    ⚠️ 20 failing tests not displayed for this pipeline due to space limitations

    Microsoft.ML.TorchSharp.Tests.NerTests.TestSimpleNer [Console] [Details] [Artifacts] [0.90% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configurations (4)

    Exception Message
    System.ArgumentException : Mismatched state_dict sizes: expected 60, but found 126 entries.
    CallStack
       at TorchSharp.torch.nn.Module.load(BinaryReader reader, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at TorchSharp.torch.nn.Module.load(String location, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase.CreateModule(IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 211
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.TrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 156
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 185
       at Microsoft.ML.TorchSharp.NasBert.NerTrainer.Trainer..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NerTrainer.cs:line 121
       at Microsoft.ML.TorchSharp.NasBert.NerTrainer.CreateTrainer(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NerTrainer.cs:line 106
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 107
       at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs:line 68
       at Microsoft.ML.TorchSharp.Tests.NerTests.TestSimpleNer() in /__w/1/s/test/Microsoft.ML.TorchSharp.Tests/NerTests.cs:line 79
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    Microsoft.ML.TorchSharp.Tests.NerTests.TestSimpleNerOptions [Console] [Details] [Artifacts] [0.90% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configurations (4)

    Exception Message
    System.ArgumentException : Mismatched state_dict sizes: expected 60, but found 126 entries.
    CallStack
       at TorchSharp.torch.nn.Module.load(BinaryReader reader, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at TorchSharp.torch.nn.Module.load(String location, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase.CreateModule(IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 211
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.TrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 156
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 185
       at Microsoft.ML.TorchSharp.NasBert.NerTrainer.Trainer..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NerTrainer.cs:line 121
       at Microsoft.ML.TorchSharp.NasBert.NerTrainer.CreateTrainer(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NerTrainer.cs:line 106
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 107
       at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs:line 68
       at Microsoft.ML.TorchSharp.Tests.NerTests.TestSimpleNerOptions() in /__w/1/s/test/Microsoft.ML.TorchSharp.Tests/NerTests.cs:line 158
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    Microsoft.ML.TorchSharp.Tests.TextClassificationTests.TestDoubleSentence2Classes [Console] [Details] [Artifacts] [0.90% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configurations (4)

    Exception Message
    System.ArgumentException : Mismatched state_dict sizes: expected 60, but found 142 entries.
    CallStack
       at TorchSharp.torch.nn.Module.load(BinaryReader reader, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at TorchSharp.torch.nn.Module.load(String location, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase.CreateModule(IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 211
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.TrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 156
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 185
       at Microsoft.ML.TorchSharp.NasBert.TextClassificationTrainer.Trainer..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/TextClassificationTrainer.cs:line 117
       at Microsoft.ML.TorchSharp.NasBert.TextClassificationTrainer.CreateTrainer(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/TextClassificationTrainer.cs:line 105
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 107
       at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs:line 68
       at Microsoft.ML.RunTests.TestDataPipeBase.TestEstimatorCore(IEstimator`1 estimator, IDataView validFitInput, IDataView validTransformInput, IDataView invalidInput, IDataView validForFitNotValidForTransformInput, Boolean shouldDispose) in /__w/1/s/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs:line 80
       at Microsoft.ML.TorchSharp.Tests.TextClassificationTests.TestDoubleSentence2Classes() in /__w/1/s/test/Microsoft.ML.TorchSharp.Tests/TextClassificationTests.cs:line 323
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    Microsoft.ML.TorchSharp.Tests.TextClassificationTests.TestSentenceSimilarity [Console] [Details] [Artifacts] [0.90% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configurations (4)

    Exception Message
    System.ArgumentException : Mismatched state_dict sizes: expected 60, but found 142 entries.
    CallStack
       at TorchSharp.torch.nn.Module.load(BinaryReader reader, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at TorchSharp.torch.nn.Module.load(String location, Boolean strict, IList`1 skip, Dictionary`2 loadedParameters)
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase.CreateModule(IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 211
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.TrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 156
       at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.NasBertTrainerBase..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input, String modelUrl) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/NasBertTrainer.cs:line 185
       at Microsoft.ML.TorchSharp.NasBert.SentenceSimilarityTrainer.Trainer..ctor(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/SentenceSimilarityTrainer.cs:line 117
       at Microsoft.ML.TorchSharp.NasBert.SentenceSimilarityTrainer.CreateTrainer(TorchSharpBaseTrainer`2 parent, IChannel ch, IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/NasBert/SentenceSimilarityTrainer.cs:line 105
       at Microsoft.ML.TorchSharp.TorchSharpBaseTrainer`2.Fit(IDataView input) in /__w/1/s/src/Microsoft.ML.TorchSharp/TorchSharpBaseTrainer.cs:line 107
       at Microsoft.ML.RunTests.TestDataPipeBase.TestEstimatorCore(IEstimator`1 estimator, IDataView validFitInput, IDataView validTransformInput, IDataView invalidInput, IDataView validForFitNotValidForTransformInput, Boolean shouldDispose) in /__w/1/s/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs:line 80
       at Microsoft.ML.TorchSharp.Tests.TextClassificationTests.TestSentenceSimilarity() in /__w/1/s/test/Microsoft.ML.TorchSharp.Tests/TextClassificationTests.cs:line 389
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Was this helpful? Yes No