dotnet / dotnet/machinelearning-modelbuilder
Sentence Similarity GPU error for VS 2019
- Dominant language
- Dockerfile
- Stars
- 285
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Sentence similarity is getting an error for me in VS 2019 with GPU. I am not seeing this problem with the 2022 build.
External component has thrown an exception.
at TorchSharp.PInvoke.LibTorchSharp.THSTensor_matmul(IntPtr tensor, IntPtr target)
at TorchSharp.torch.Tensor.matmul(Tensor target)
at Microsoft.ML.TorchSharp.NasBert.Modules.MultiHeadAttention.forward(Tensor query, Tensor key, Tensor value, Tensor& outAttentionWeights, Tensor keyPaddingMask, Dictionary`2 incrementalState, Boolean needWeights, Boolean staticKv, Tensor attentionMask)
at Microsoft.ML.TorchSharp.NasBert.Modules.Layers.SelfAttentionLayer.forward(Tensor x, Dictionary`2 param)
at Microsoft.ML.TorchSharp.NasBert.Models.TransformerEncoder.ForwardOneLayer(Tensor input, Tensor paddingMask, Int32 i, Int32 blockPerLayer, Int32& blockIndex)
at Microsoft.ML.TorchSharp.NasBert.Models.TransformerEncoder.forward(Tensor tokens, Tensor segmentLabels, Tensor positions)
at Microsoft.ML.TorchSharp.NasBert.Models.NasBertModel.forward(Tensor srcTokens, Tensor mask)
at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.TrainerBase.TrainStep(IHost host, DataViewRowCursor cursor, ValueGetter`1 sentence1Getter, ValueGetter`1 sentence2Getter, ValueGetter`1 labelGetter, List`1& inputTensors, List`1& targets)
at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.TrainerBase.Train(IHost host, IDataView input)
at Microsoft.ML.TorchSharp.NasBert.NasBertTrainer`2.Fit(IDataView input)
at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.AutoML.SweepablePipelineRunner.Run(TrialSettings settings)
at Microsoft.ML.AutoML.SweepablePipelineRunner.RunAsync(TrialSettings settings, CancellationToken ct)
at Microsoft.ML.AutoML.AutoMLExperiment.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.SentenceSimilarityExperiment.d__13.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/SentenceSimilarityExperiment.cs:line 103
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 145
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.