-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU is not working when running the ResNet18 example #1003
Comments
Hi, Did you wait for the whole execution? The script runs in this order:
|
Yes, I saw that the program returns “Running FHE execution” and I’ve been waiting for several hours. However, the process is utilizing all CPU resources for the FHE computations. I’m using a GTX 4090, and the pip packages I installed are shown below. If there is any additional information you need, please let me know, and I will provide it soon. pip packages
|
You seem to have the expected libraries. Could you share what's the cuda version on your machine? If you could provide the full logs from the run until you see the |
I'm using CUDA 12.6 with Nvidia driver 560.35.03. Full logs are shown below: % python3 run_resnet18_fhe.py --use_gpu --run_fhe
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 1024/1024 [00:00<00:00, 1801.00it/s]
Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 64/64 [00:00<00:00, 771366.25it/s]
Accuracy of the ResNet18 model on the images: 67.00%
Top-5 Accuracy of the ResNet18 model on the images: 87.00%
Compiling the model with compile_torch_model...
Model compiled successfully.
Quantized Model Accuracy of the FHEResNet18 on the images: 67.00%
Quantized Model Top-5 Accuracy of the FHEResNet18 on the images: 87.00%
FHE simulation Accuracy of the FHEResNet18 on the images: 57.00%
FHE simulation Top-5 Accuracy of the FHEResNet18 on the images: 81.00%
Processing 1 image(s)...
Image 1:
Running FHE execution... |
Summary
I am trying to run the ResNet18 inference with a GPU. First, I followed the GPU acceleration guide to set up the running environment, and the checking progress passed successfully.
However, when I actually run the ResNet18 example, I do not see that the program utilizes any GPU resources for FHE computations.
My running command is
python3 run_resnet18_fhe.py --use_gpu --run_fhe
.Description
Step by step procedure someone should follow to trigger the bug:
minimal POC to trigger the bug
The text was updated successfully, but these errors were encountered: