Fedora 40 cuda toolkit installation

hello , for an app to train Loras on my computer i need to install cuda toolkit on my fedora 40 system .
Things are if i go to the Nvidia Page
or
to the rpm Page

both propose me to install cuda toolkit for fedora 39 which ends in package conflicts .
I did found this
but don’t know how to install it , so if someone could give me the right instruction to how to do it that will be great !!!
thanks in advance

Added cuda, f40, nvidia

is it possible to resolve those conflicts and still use fedora 40 with xorg

sudo dnf update -y --best
Last metadata expiration check: 1:33:51 ago on Mon 18 Nov 2024 10:14:28 PM CET.
Error: 
 Problem 1: package nvidia-settings-3:565.57.01-1.fc40.x86_64 from cuda-fedora40-x86_64 requires nvidia-driver(x86-64) = 3:565.57.01, but none of the providers can be installed
  - package nvidia-driver-3:565.57.01-1.fc40.x86_64 from cuda-fedora40-x86_64 conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:560.35.03-5.fc40.x86_64 from @System
  - cannot install the best update candidate for package nvidia-settings-3:560.35.03-1.fc40.x86_64
  - problem with installed package xorg-x11-drv-nvidia-3:560.35.03-5.fc40.x86_64
 Problem 2: package xorg-x11-drv-nvidia-cuda-3:560.35.03-5.fc40.x86_64 from @System requires nvidia-modprobe(x86-64) = 3:560.35.03, but none of the providers can be installed
  - cannot install both nvidia-modprobe-3:565.57.01-1.fc40.x86_64 from cuda-fedora40-x86_64 and nvidia-modprobe-3:560.35.03-1.fc40.x86_64 from @System
  - cannot install both nvidia-modprobe-3:565.57.01-1.fc40.x86_64 from cuda-fedora40-x86_64 and nvidia-modprobe-3:560.35.03-1.fc39.x86_64 from cuda-fedora39-x86_64
  - cannot install the best update candidate for package nvidia-modprobe-3:560.35.03-1.fc40.x86_64
  - problem with installed package xorg-x11-drv-nvidia-cuda-3:560.35.03-5.fc40.x86_64
  - package nvidia-modprobe-3:560.35.03-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
  - package nvidia-modprobe-3:560.35.03-1.fc40.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

The 560 and 565 drivers can not both be installed. You would need to have one or the other in its entirety but not parts of each.

It is known that packages, even the same version, from rpmfusion and cuda-fedora40 will often have conflicts. You probably need to use one or the other of those repos exclusively.

ok and how do i do to install properly nvidia-driver-3:565.57.01-1.fc40.x86_64 from cuda-fedora40-x86_64 ?