dotnet / dotnet/machinelearning-modelbuilder
"cuda is not available, please confirm you have a cuda-support gpu" on a pc that is compatible "GPU is CUDA compatible"
- Lingua principale
- Dockerfile
- Stelle
- 285
- Fork
- 66
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**System Information (please complete the following information):**
- Model Builder Version (available in Manage Extensions dialog): 17.15.0.2337001
- Visual Studio Version : 17.8.3
**Describe the bug**
- On which step of the process did you run into an issue:
- During Training
- Clear description of the problem:
I initially tried to use in code to instruct the program to use cuda but had an error
torch.InitializeDeviceType(DeviceType.CUDA);
So tried to use the model builder to check if it works there. But it failed in model builder as well
**To Reproduce**
Steps to reproduce the behavior:
1) Go to Model Builder
2) Choose Text classification under Natural Language Processing
3) Choose Local GPU in Select Training environment( Ensure GPU compatibility confirms "GPU is CUDA compatible")
4) Choose either SQL server/ Text file( either will lead to the same error)
5) Click train. You will see the error "cuda is not available, please confirm you have a cuda-support gpu"
StackTrace
at Microsoft.ML.ModelBuilder.AutoMLService.TextClassificationExperiment.d__13.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/TextClassificationExperiment.cs:line 66
--- 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 161
in ouptut window
start text classification
restore "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.gpu.csproj" --configfile "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\obj"
publish "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.gpu.csproj" -r win-x64 -c Release --no-self-contained -o C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3 --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\bin\\" /p:BaseIntermediateOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\obj\\"
start installing runtime in C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3
Determining projects to restore...
All projects are up-to-date for restore.
MSBuild version 17.8.3+195e7f5a3 for .NET
torchsharp.gpu -> C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\bin\Release\netstandard2.0\win-x64\torchsharp.gpu.dll
torchsharp.gpu -> C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\
install runtime successfully
**Expected behavior**
The training should complete with CUDA as it is compatible
**Screenshots**
If applicable, add screenshots to help explain your problem.


**Additional context**
Add any other context about the problem here.
This problem is not isolated to model builder. I have the issue if i try this in code as well
using TorchSharp;
torch.InitializeDeviceType(DeviceType.CUDA);
Package references
Game Ready Driver
This is the latest. There is no driver updates there after.


This is a old machine i am trying out GPU as my surface pro 7 takes ages to train using cpu
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo l'addestramento locale della classificazione del testo su GPU con il runtime CUDA di TorchSharp segnalato e il controllo di compatibilità. Leggi TextClassificationExperiment.cs alla riga 66 e AutoMLEngine.cs alla riga 161, quindi verifica il percorso di inizializzazione del dispositivo CUDA. Il lavoro è completato quando l'addestramento termina con CUDA su una GPU compatibile invece di segnalare che CUDA non è disponibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100