Skip to content

Sentence similarity: Project debug failed with error "Two TorchSharp runtime packages have been referenced (both libtorch-cpu and libtorch-cuda)". #2606

@v-Hailishi

Description

@v-Hailishi

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 17.15.0.2322401 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.5.2)
.Net: 6.0

Describe the bug

  • On which step of the process did you run into an issue:
    Project running failed with error "Two TorchSharp runtime packages have been referenced (both libtorch-cpu and libtorch-cuda)".

TestMatrix
home-depot-sentence-similarity-small.csv

To Reproduce
Steps to reproduce the behavior:

  1. Select Create a new project from the Visual Studio start window.
  2. Choose the C# Console App (.NET Core) project template.
  3. Add model builder by right click on the project.
  4. Select "Sentence similarity" scenario.
  5. On Data page, choose the attached .csv data source and set the three options like below.
    image
  6. On the Train page, click "Start training" button to complete the training.
  7. Press "F5" to debug the project.

Expected behavior
Project debug successful.

Screenshot
image

Additional context

  1. There are many errors in "consumption.cs" and "training.cs" files.
    image
    image

  2. The issue is not repro in the generated Console App and Web API projects.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions