[GH-ISSUE #124] GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04 #125

Open
opened 2026-11-07 14:32:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ElorionaS on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/124

Title: GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04


Another data point for AD104 2786, on a board not covered by docs/ada-2786-report.md (#11): Gigabyte subsystem 1458:416C, a compact single-8-pin card with a 200 W hard power limit. This run also covers the warm-reboot case, which that report listed as untested.

Card and host

GPU RTX 4070, AD104, 10de:2786, subsystem 1458:416C (Gigabyte), 12 GB, single 8-pin
VBIOS 95.04.72.00.6D
Power power.limit 200 W = default = max (min 100 W): cannot be raised on this SKU
Distro / kernel Ubuntu 26.04.1 LTS (server, headless), 7.0.0-42-generic (gcc), GRUB (UEFI), Secure Boot off
Driver NVIDIA open kernel modules 615.71.09 (Ubuntu prebuilt linux-modules-nvidia-615-open-generic + nvidia-headless-no-dkms-615-open), unmodified
Unlock gpu-unlock-ada v1.1.1 @ d28c485, make install-deb, kargs gpu_unlock.targets=0000:01:00.0 gpu_unlock.ad104_experimental=1
Host Gigabyte B450M DS3H-CF, BIOS F68c, Ryzen 5 3400G (APU), 8 GB RAM. ⚠ PCIe trains at Gen3 x1 on this board/APU (root port LnkCap x8, the CPU-to-chipset link is also x1). Host limitation, same in every round

Journal on both unlocked boots: pci 0000:01:00.0: gpu_unlock: unlocked. No Xid or NVRM errors in any boot.

Result: stock boot vs cold unlock vs warm-reboot unlock

Cold = clean poweroff, PSU off ~30 s, power restored. Warm = grub-reboot to the unlock entry, then systemctl reboot from the running unlocked system (no power cut). The unlock applied again on the warm reboot.

torch matmul 8192^3, default PyTorch precision settings, clocks free-running (not locked, see note 3), 5 warm-up + 50 timed iterations (fp32: 10), mean:

Test stock (TFLOPS) cold unlock warm unlock ratio
BF16, FP32 acc 61.1 / 61.4 88.3 88.3 1.44x
FP16, FP32 acc 60.9 / 60.8 83.7 84.0 1.38x
TF32 30.7 / 30.7 45.2 45.3 1.47x
FP32 scalar (negative control) 20.2 / 20.4 20.4 20.4 1.00x

Application: Z-Image diffusion (diffusers, unsloth Q6_K GGUF transformer, bf16 compute, 768x768)

Prompt embeddings are encoded once and reused, so every round gets identical inputs. 1 warm-up, then 10 images per model with fixed seeds. Timings are per image (GPU path: denoising + VAE decode).

Model stock cold unlock warm unlock speedup
Turbo, 9 steps, cfg 0 9.445 s ± 0.008 7.564 s ± 0.006 7.564 s ± 0.011 1.25x
Base, 32 steps, cfg 4 54.070 s ± 0.032 41.379 s ± 0.019 41.384 s ± 0.014 1.31x
per step (turbo / base) 1027.6 / 1683.4 ms 823.1 / 1288.1 ms 823.2 / 1288.2 ms
VAE decode 0.184 s 0.143 s 0.144 s 1.29x

All 40 unlocked images are bit-identical to the stock images (PNG SHA-256, 10/10 per model per round), so the unlock changes rate, not results.

Things that may help others

  1. The 200 W SKU is power-bound. During the diffusion runs, clocks_event_reasons.active showed 0x4 (SW power cap) in ~107 of ~170 samples, with the SM clock averaging ~2666 MHz (max 3120). With free-running clocks the gain is much lower than the 2x issue rate (1.38-1.47x on GEMM). This SKU cannot raise its limit (max = 200 W). A locked-clock A/B like #120's would isolate the unlock from the power budget; I did not run one before returning the card to its normal machine.
  2. Ubuntu 26.04: the nvidia-*-610-open packages are now transitional to 615. make install-deb worked as-is: DKMS built the module for both installed kernels, and initramfs-tools placed gpu_unlock.ko plus the 11 firmware files in the initramfs, with nvidia.ko not in the initramfs, so the order is correct.
  3. One-shot GRUB entry: a 40_custom entry with the two kargs, GRUB_DEFAULT=saved, default kept stock, armed per test with grub-reboot <id>. next_entry survives a full AC power-off, and the default stays stock afterwards.
  4. Unrelated warning to ignore: every boot, including all stock boots, logs WARNING: Unpatched return thunk in use from nvidia_modeset (nv_vasprintf). It comes from Ubuntu's prebuilt NVIDIA module and kernel mitigations, not from gpu_unlock.
  5. The unlocked cold and warm numbers are identical within noise (GEMM and diffusion). On this board, the warm reboot did not leave the card in a state the module refused.
  6. Diffusion with GGUF weights: part of each step is dequantisation in plain PyTorch ops, which the unlock does not touch. So 1.25-1.31x is a lower bound for unquantised bf16 diffusion on this card.

Not verified

  • A cold A/B/A return to stock.
  • Long-duration stability or a soak test.
  • Locked-clock strict-mode GEMM.
  • Other drivers.
  • Other 2786 boards.
  • Secure Boot.
  • PCIe at full width. This host only trains x1, so the effect of the unlock on transfer-heavy workloads is untested here.

Measurements and the notes above were produced with the help of an AI coding agent (Claude Code) working under my supervision. I can attach the raw JSON reports, kernel logs and 1 s nvidia-smi telemetry if useful.

Originally created by @ElorionaS on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/124 Title: GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04 --- Another data point for AD104 `2786`, on a board not covered by docs/ada-2786-report.md (#11): **Gigabyte subsystem `1458:416C`**, a compact single-8-pin card with a **200 W hard power limit**. This run also covers the **warm-reboot** case, which that report listed as untested. ## Card and host | | | |---|---| | GPU | RTX 4070, AD104, `10de:2786`, subsystem `1458:416C` (Gigabyte), 12 GB, single 8-pin | | VBIOS | `95.04.72.00.6D` | | Power | `power.limit` 200 W = default = **max** (min 100 W): cannot be raised on this SKU | | Distro / kernel | Ubuntu 26.04.1 LTS (server, headless), `7.0.0-42-generic` (gcc), GRUB (UEFI), Secure Boot off | | Driver | NVIDIA open kernel modules **615.71.09** (Ubuntu prebuilt `linux-modules-nvidia-615-open-generic` + `nvidia-headless-no-dkms-615-open`), unmodified | | Unlock | `gpu-unlock-ada` v1.1.1 @ `d28c485`, `make install-deb`, kargs `gpu_unlock.targets=0000:01:00.0 gpu_unlock.ad104_experimental=1` | | Host | Gigabyte B450M DS3H-CF, BIOS F68c, Ryzen 5 3400G (APU), 8 GB RAM. ⚠ **PCIe trains at Gen3 x1 on this board/APU** (root port LnkCap x8, the CPU-to-chipset link is also x1). Host limitation, same in every round | Journal on both unlocked boots: `pci 0000:01:00.0: gpu_unlock: unlocked`. No Xid or NVRM errors in any boot. ## Result: stock boot vs cold unlock vs warm-reboot unlock **Cold** = clean poweroff, PSU off ~30 s, power restored. **Warm** = `grub-reboot` to the unlock entry, then `systemctl reboot` from the running *unlocked* system (no power cut). The unlock applied again on the warm reboot. `torch` matmul 8192^3, default PyTorch precision settings, **clocks free-running** (not locked, see note 3), 5 warm-up + 50 timed iterations (fp32: 10), mean: | Test | stock (TFLOPS) | cold unlock | warm unlock | ratio | |---|---:|---:|---:|---:| | BF16, FP32 acc | 61.1 / 61.4 | 88.3 | 88.3 | **1.44x** | | FP16, FP32 acc | 60.9 / 60.8 | 83.7 | 84.0 | **1.38x** | | TF32 | 30.7 / 30.7 | 45.2 | 45.3 | **1.47x** | | FP32 scalar (negative control) | 20.2 / 20.4 | 20.4 | 20.4 | 1.00x | ### Application: Z-Image diffusion (diffusers, unsloth Q6_K GGUF transformer, bf16 compute, 768x768) Prompt embeddings are encoded once and reused, so every round gets identical inputs. 1 warm-up, then 10 images per model with fixed seeds. Timings are per image (GPU path: denoising + VAE decode). | Model | stock | cold unlock | warm unlock | speedup | |---|---:|---:|---:|---:| | Turbo, 9 steps, cfg 0 | 9.445 s ± 0.008 | 7.564 s ± 0.006 | 7.564 s ± 0.011 | **1.25x** | | Base, 32 steps, cfg 4 | 54.070 s ± 0.032 | 41.379 s ± 0.019 | 41.384 s ± 0.014 | **1.31x** | | per step (turbo / base) | 1027.6 / 1683.4 ms | 823.1 / 1288.1 ms | 823.2 / 1288.2 ms | | | VAE decode | 0.184 s | 0.143 s | 0.144 s | 1.29x | **All 40 unlocked images are bit-identical to the stock images** (PNG SHA-256, 10/10 per model per round), so the unlock changes rate, not results. ## Things that may help others 1. **The 200 W SKU is power-bound.** During the diffusion runs, `clocks_event_reasons.active` showed `0x4` (SW power cap) in ~107 of ~170 samples, with the SM clock averaging ~2666 MHz (max 3120). With free-running clocks the gain is much lower than the 2x issue rate (1.38-1.47x on GEMM). This SKU cannot raise its limit (max = 200 W). A locked-clock A/B like #120's would isolate the unlock from the power budget; I did not run one before returning the card to its normal machine. 2. **Ubuntu 26.04:** the `nvidia-*-610-open` packages are now transitional to **615**. `make install-deb` worked as-is: DKMS built the module for both installed kernels, and `initramfs-tools` placed `gpu_unlock.ko` plus the 11 firmware files in the initramfs, with `nvidia.ko` *not* in the initramfs, so the order is correct. 3. **One-shot GRUB entry:** a `40_custom` entry with the two kargs, `GRUB_DEFAULT=saved`, default kept stock, armed per test with `grub-reboot <id>`. `next_entry` survives a full AC power-off, and the default stays stock afterwards. 4. **Unrelated warning to ignore:** every boot, **including all stock boots**, logs `WARNING: Unpatched return thunk in use` from `nvidia_modeset` (`nv_vasprintf`). It comes from Ubuntu's prebuilt NVIDIA module and kernel mitigations, not from gpu_unlock. 5. **The unlocked cold and warm numbers are identical within noise** (GEMM and diffusion). On this board, the warm reboot did not leave the card in a state the module refused. 6. **Diffusion with GGUF weights:** part of each step is dequantisation in plain PyTorch ops, which the unlock does not touch. So 1.25-1.31x is a lower bound for unquantised bf16 diffusion on this card. ## Not verified - A cold A/B/A return to stock. - Long-duration stability or a soak test. - Locked-clock strict-mode GEMM. - Other drivers. - Other 2786 boards. - Secure Boot. - PCIe at full width. This host only trains x1, so the effect of the unlock on transfer-heavy workloads is untested here. Measurements and the notes above were produced with the help of an AI coding agent (Claude Code) working under my supervision. I can attach the raw JSON reports, kernel logs and 1 s nvidia-smi telemetry if useful.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JustAResearcher/gpu-unlock-ada#125
No description provided.