[GH-ISSUE #290] Compatibility report: RTX 4070 12 GB (AD104, 10de:2786), Ubuntu 24.04 / kernel 6.8.0-90 - unlocked clean, 0% on quantized llama.cpp #263

Open
opened 2026-11-07 17:54:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @rodi4eg on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/290

Result

The unlock works cleanly on this card: claim, DMA, four write passes and handoff all return
ret=0, then gpu_unlock: unlocked, and the NVIDIA driver binds the card normally afterwards.

There was no measurable speed change for our workload. Block-quantized GGUF in llama.cpp moved
between -0.2% and +0.3%, which is inside the run-to-run noise of the harness. Decode did not
move at all, as expected. This report is a null result for quantized inference, not a failure
report.

Card

NVIDIA GeForce RTX 4070, AD104, 12 GB (12282 MiB reported by nvidia-smi), compute capability 8.9.

PCI IDs

0000:05:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070] (rev a1)

Device id 10de:2786. The kernel log line is pci 0000:05:00.0: gpu_unlock: stage=claim device=0x2786.

VBIOS version

95.04.3E.08.BE, read from nvidia-smi -q (VBIOS Version field).

Is the card modified?

No. Stock VBIOS, no flash, no patched driver. The card is a plain retail 4070 in a desktop box.

Distribution

Ubuntu 24.04.4 LTS (desktop, blackbox).

Kernel

6.8.0-90-generic. Secure Boot is disabled (Setup Mode), so the unsigned out-of-tree module loads
with the usual "tainting kernel" notices and nothing else in the way.

NVIDIA driver

580.126.09. The firmware this tool generates is extracted from 610.43.03, and README states there
is no driver-version dependency. Our driver worked unchanged after the unlock.

Initramfs generator

initramfs-tools. The package's init-top/gpu-unlock hook plus its modules.d conf were present,
and the built initramfs contained usr/lib/modules/6.8.0-90-generic/dkms/gpu_unlock.ko.zst and all
16 firmware files before the reboot.

gpu-unlock version and install method

v2.0.0, git HEAD 7eb51bc, built from source on this box:

make inputs && make deb
sudo dpkg -i gpu-unlock-dkms_2.0.0_all.deb gpu-unlock-firmware_2.0.0_all.deb

dkms status afterwards: gpu-unlock/2.0.0, 6.8.0-90-generic, x86_64: installed.

Kernel command line

BOOT_IMAGE=/vmlinuz-6.8.0-90-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro gpu_unlock.targets=0000:05:00.0

The full PCI name is required. gpu_unlock.targets=05:00.0 matches nothing, because the module's
listed() compares by exact length against pci_name(). It also silences the useful diagnostic:
the "no supported card at ..." line is only printed when the target list was not matched at all.

Setup

  1. Built the packages, then took dated copies of /etc/default/grub and /boot/grub/grub.cfg.
  2. Installed both packages, update-grub, rebooted once into the unlocked boot.
  3. Checked journalctl -k -b | grep gpu_unlock before touching anything else.
  4. Measured two boots with the same llama.cpp binaries (sha256 identical in both arms), the same
    model file (T-lite-it-2.1-Q6_K.gguf, 6,725,604,992 bytes, dense qwen3 architecture) and the
    same flags: ctx=32768 ngl=99 flash_attn=1 threads=8, three passes each, pp sweep
    4096/8192/16384/32768.

Kernel log

gpu_unlock: loading out-of-tree module taints kernel.
gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel
pci 0000:05:00.0: gpu_unlock: stage=claim device=0x2786 family=AD102/AD103/AD104/AD106/AD107 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0
pci 0000:05:00.0: gpu_unlock: stage=layout fb=0x2ffa00000 vga=0x2ff900000 frts=0x100000 wpr=0x2f4e00000..0x2ff900000 boot=0x2ff7f7000 gsp=0x2fa7a0000 heap=0x2f4f00000
pci 0000:05:00.0: gpu_unlock: stage=dma booter=56832 payload=0xfa00 pages=20606 meta=0xbdfff000 sig=0xa220000 stock=0xa20e000 boot=0xa250000
pci 0000:05:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x54661172 ss1=0x7 wpr2_hi=0x0
pci 0000:05:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x1 ver=1 scratch=0x0 wpr2_raw=0x2ff8000:0x2ff8e00 frts=0x2ff8000:0x2ff8e00
pci 0000:05:00.0: gpu_unlock: stage=publish meta=0xbdfff000 sig=0xa220000 size=0xfa00 radix=0xa20f000
pci 0000:05:00.0: gpu_unlock: pass=1/4 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0
pci 0000:05:00.0: gpu_unlock: pass=2/4 attempt=1 target=0x9a0148 value=0xffffffff before=0x4cb8f after=0xffffff0f wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0
pci 0000:05:00.0: gpu_unlock: pass=3/4 attempt=1 target=0x1fa7c4 value=0xffffffff before=0x4cb8f after=0xffffffff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0
pci 0000:05:00.0: gpu_unlock: pass=4/4 attempt=1 target=0x823804 value=0xffffffff before=0x4cb8f after=0xffffffff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0
pci 0000:05:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff
pci 0000:05:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0x194000a1
pci 0000:05:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0
gpu_unlock: unlocked

Benchmark before and after

llama.cpp, T-lite-it-2.1-Q6_K.gguf (Q6_K block quant), three passes per boot, passes 2 and 3
averaged, same binaries in both boots.

Input Before (stock boot) After (unlocked boot) Change
pp4096 3769.78 t/s 3767.08 t/s -0.1%
pp8192 3512.53 t/s 3507.15 t/s -0.2%
pp16384 3019.44 t/s 3014.56 t/s -0.2%
pp32768 2347.93 t/s 2345.54 t/s -0.1%

Server path, same corpus in both boots:

Prompt pp before -> after tg before -> after
agent 3470.84 -> 3449.04 (-0.6%) 67.89 -> 67.91 (+0.0%)
code 2953.82 -> 2963.02 (+0.3%) 67.78 -> 67.78 ( 0.0%)
docs 3770.22 -> 3723.41 (-1.2%) 67.33 -> 67.31 (-0.0%)
english 3390.36 -> 3361.86 (-0.8%) 68.47 -> 68.44 (-0.0%)
multilingual 3658.71 -> 3622.97 (-1.0%) 67.24 -> 67.23 (-0.0%)

Greedy sampling produced identical text in both boots for all five prompts, which matches the
README claim that outputs are bit-identical and only speed changes.

Not measured here: raw BF16/FP16 GEMM throughput. There is no PyTorch install on this box, so I
have no TFLOPS figure to add for the 4070. That is the missing number this report cannot fill.

Suspend and resume

Not tested. This is a desktop box; it is rebooted, not suspended.

Anything else

  • Why the null result is expected: every model on this box is block-quantized. I read the tensor
    types out of all 15 GGUF files with gguf-py. No LLM body contains an F16 or BF16 weight tensor;
    the F32 tensors are norms and state vectors (attn_norm, ffn_gate_inp, ssm_a), and the only
    F16 tensors in the whole set are three small vision projectors. So nothing here runs through the
    path this unlock accelerates, which is consistent with README's own table: "llama.cpp / Ollama with
    quantized GGUF | 0-15%, mostly at long context" and "INT8, FP8 and INT4 models | No change".
  • The long-context region where other reporters see quantized gains (128k and 250k context) is
    unreachable on a 12 GB card with 6.7 GB of weights: the KV cache does not fit past about 32k.
  • Power draw moved slightly up under the same load (173.4 W -> 176.5 W and 38.0 W -> 39.1 W),
    sampled once per pass, so it is a weak signal at best.
  • One operational note for anyone repeating this on a single-kernel Ubuntu box: editing
    /etc/default/grub puts the argument on every generated menuentry, so there is no stock fallback
    entry to boot into. Recovery is restoring the dated copy of /etc/default/grub and running
    update-grub, not picking another GRUB entry.
  • I reverted afterwards, since a boot-level kernel module with an unsigned module needs a payoff, and
    this box has none: dpkg -l now shows only a config-file stub for gpu-unlock-dkms, /var/lib/dkms
    contains only nvidia, and GRUB_CMDLINE_LINUX_DEFAULT is empty again. The boot I measured stayed
    unlocked until the next reboot.
Originally created by @rodi4eg on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/290 ### Result The unlock works cleanly on this card: claim, DMA, four write passes and handoff all return `ret=0`, then `gpu_unlock: unlocked`, and the NVIDIA driver binds the card normally afterwards. There was no measurable speed change for our workload. Block-quantized GGUF in llama.cpp moved between -0.2% and +0.3%, which is inside the run-to-run noise of the harness. Decode did not move at all, as expected. This report is a null result for quantized inference, not a failure report. ### Card NVIDIA GeForce RTX 4070, AD104, 12 GB (12282 MiB reported by nvidia-smi), compute capability 8.9. ### PCI IDs ``` 0000:05:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070] (rev a1) ``` Device id `10de:2786`. The kernel log line is `pci 0000:05:00.0: gpu_unlock: stage=claim device=0x2786`. ### VBIOS version `95.04.3E.08.BE`, read from `nvidia-smi -q` (VBIOS Version field). ### Is the card modified? No. Stock VBIOS, no flash, no patched driver. The card is a plain retail 4070 in a desktop box. ### Distribution Ubuntu 24.04.4 LTS (desktop, `blackbox`). ### Kernel `6.8.0-90-generic`. Secure Boot is disabled (Setup Mode), so the unsigned out-of-tree module loads with the usual "tainting kernel" notices and nothing else in the way. ### NVIDIA driver `580.126.09`. The firmware this tool generates is extracted from `610.43.03`, and README states there is no driver-version dependency. Our driver worked unchanged after the unlock. ### Initramfs generator `initramfs-tools`. The package's `init-top/gpu-unlock` hook plus its `modules.d` conf were present, and the built initramfs contained `usr/lib/modules/6.8.0-90-generic/dkms/gpu_unlock.ko.zst` and all 16 firmware files before the reboot. ### gpu-unlock version and install method v2.0.0, git HEAD `7eb51bc`, built from source on this box: ``` make inputs && make deb sudo dpkg -i gpu-unlock-dkms_2.0.0_all.deb gpu-unlock-firmware_2.0.0_all.deb ``` `dkms status` afterwards: `gpu-unlock/2.0.0, 6.8.0-90-generic, x86_64: installed`. ### Kernel command line ``` BOOT_IMAGE=/vmlinuz-6.8.0-90-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro gpu_unlock.targets=0000:05:00.0 ``` The full PCI name is required. `gpu_unlock.targets=05:00.0` matches nothing, because the module's `listed()` compares by exact length against `pci_name()`. It also silences the useful diagnostic: the "no supported card at ..." line is only printed when the target list was not matched at all. ### Setup 1. Built the packages, then took dated copies of `/etc/default/grub` and `/boot/grub/grub.cfg`. 2. Installed both packages, `update-grub`, rebooted once into the unlocked boot. 3. Checked `journalctl -k -b | grep gpu_unlock` before touching anything else. 4. Measured two boots with the same llama.cpp binaries (sha256 identical in both arms), the same model file (`T-lite-it-2.1-Q6_K.gguf`, 6,725,604,992 bytes, dense qwen3 architecture) and the same flags: `ctx=32768 ngl=99 flash_attn=1 threads=8`, three passes each, `pp` sweep 4096/8192/16384/32768. ### Kernel log ``` gpu_unlock: loading out-of-tree module taints kernel. gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel pci 0000:05:00.0: gpu_unlock: stage=claim device=0x2786 family=AD102/AD103/AD104/AD106/AD107 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0 pci 0000:05:00.0: gpu_unlock: stage=layout fb=0x2ffa00000 vga=0x2ff900000 frts=0x100000 wpr=0x2f4e00000..0x2ff900000 boot=0x2ff7f7000 gsp=0x2fa7a0000 heap=0x2f4f00000 pci 0000:05:00.0: gpu_unlock: stage=dma booter=56832 payload=0xfa00 pages=20606 meta=0xbdfff000 sig=0xa220000 stock=0xa20e000 boot=0xa250000 pci 0000:05:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x54661172 ss1=0x7 wpr2_hi=0x0 pci 0000:05:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x1 ver=1 scratch=0x0 wpr2_raw=0x2ff8000:0x2ff8e00 frts=0x2ff8000:0x2ff8e00 pci 0000:05:00.0: gpu_unlock: stage=publish meta=0xbdfff000 sig=0xa220000 size=0xfa00 radix=0xa20f000 pci 0000:05:00.0: gpu_unlock: pass=1/4 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0 pci 0000:05:00.0: gpu_unlock: pass=2/4 attempt=1 target=0x9a0148 value=0xffffffff before=0x4cb8f after=0xffffff0f wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0 pci 0000:05:00.0: gpu_unlock: pass=3/4 attempt=1 target=0x1fa7c4 value=0xffffffff before=0x4cb8f after=0xffffffff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0 pci 0000:05:00.0: gpu_unlock: pass=4/4 attempt=1 target=0x823804 value=0xffffffff before=0x4cb8f after=0xffffffff wpr2=0x2f4e000:0x2ff8e00 reset_plm=0xffffffff mbox=0x0:0x67b00001 ret=0 pci 0000:05:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff pci 0000:05:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0x194000a1 pci 0000:05:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0 gpu_unlock: unlocked ``` ### Benchmark before and after llama.cpp, `T-lite-it-2.1-Q6_K.gguf` (Q6_K block quant), three passes per boot, passes 2 and 3 averaged, same binaries in both boots. | Input | Before (stock boot) | After (unlocked boot) | Change | | ----- | -------------------: | -------------------: | -----: | | pp4096 | 3769.78 t/s | 3767.08 t/s | -0.1% | | pp8192 | 3512.53 t/s | 3507.15 t/s | -0.2% | | pp16384 | 3019.44 t/s | 3014.56 t/s | -0.2% | | pp32768 | 2347.93 t/s | 2345.54 t/s | -0.1% | Server path, same corpus in both boots: | Prompt | pp before -> after | tg before -> after | | ------ | -----------------: | -----------------: | | agent | 3470.84 -> 3449.04 (-0.6%) | 67.89 -> 67.91 (+0.0%) | | code | 2953.82 -> 2963.02 (+0.3%) | 67.78 -> 67.78 ( 0.0%) | | docs | 3770.22 -> 3723.41 (-1.2%) | 67.33 -> 67.31 (-0.0%) | | english | 3390.36 -> 3361.86 (-0.8%) | 68.47 -> 68.44 (-0.0%) | | multilingual | 3658.71 -> 3622.97 (-1.0%) | 67.24 -> 67.23 (-0.0%) | Greedy sampling produced identical text in both boots for all five prompts, which matches the README claim that outputs are bit-identical and only speed changes. Not measured here: raw BF16/FP16 GEMM throughput. There is no PyTorch install on this box, so I have no TFLOPS figure to add for the 4070. That is the missing number this report cannot fill. ### Suspend and resume Not tested. This is a desktop box; it is rebooted, not suspended. ### Anything else - Why the null result is expected: every model on this box is block-quantized. I read the tensor types out of all 15 GGUF files with `gguf-py`. No LLM body contains an F16 or BF16 weight tensor; the F32 tensors are norms and state vectors (`attn_norm`, `ffn_gate_inp`, `ssm_a`), and the only F16 tensors in the whole set are three small vision projectors. So nothing here runs through the path this unlock accelerates, which is consistent with README's own table: "llama.cpp / Ollama with quantized GGUF | 0-15%, mostly at long context" and "INT8, FP8 and INT4 models | No change". - The long-context region where other reporters see quantized gains (128k and 250k context) is unreachable on a 12 GB card with 6.7 GB of weights: the KV cache does not fit past about 32k. - Power draw moved slightly up under the same load (173.4 W -> 176.5 W and 38.0 W -> 39.1 W), sampled once per pass, so it is a weak signal at best. - One operational note for anyone repeating this on a single-kernel Ubuntu box: editing `/etc/default/grub` puts the argument on every generated menuentry, so there is no stock fallback entry to boot into. Recovery is restoring the dated copy of `/etc/default/grub` and running `update-grub`, not picking another GRUB entry. - I reverted afterwards, since a boot-level kernel module with an unsigned module needs a payoff, and this box has none: `dpkg -l` now shows only a config-file stub for `gpu-unlock-dkms`, `/var/lib/dkms` contains only `nvidia`, and `GRUB_CMDLINE_LINUX_DEFAULT` is empty again. The boot I measured stayed unlocked until the next reboot.
Author
Owner

@rodi4eg commented on GitHub (Nov 2, 2026):

Context for the null result: the AD104 family itself is already confirmed working on siblings — #87 (Inno3D RTX 4070 Ti, 10de:2782) and #136 (MSI RTX 4070 SUPER, 10de:2783) both report large BF16 GEMM gains. This card is the plain 4070 device id 10de:2786, which needs no extra device ID at v2.0.0 (recipes.c AD104 entry lists 0x2786). So the 0% here is a workload difference: every model on this box is block-quantized, and no LLM body carries an F16 or BF16 weight tensor. The missing figure for maintainers remains a raw GEMM number for 10de:2786 — this box has no PyTorch, so I could not supply one.

<!-- gh-comment-id:6575539801 --> @rodi4eg commented on GitHub (Nov 2, 2026): Context for the null result: the AD104 family itself is already confirmed working on siblings — #87 (Inno3D RTX 4070 Ti, 10de:2782) and #136 (MSI RTX 4070 SUPER, 10de:2783) both report large BF16 GEMM gains. This card is the plain 4070 device id `10de:2786`, which needs no extra device ID at v2.0.0 (`recipes.c` AD104 entry lists 0x2786). So the 0% here is a workload difference: every model on this box is block-quantized, and no LLM body carries an F16 or BF16 weight tensor. The missing figure for maintainers remains a raw GEMM number for `10de:2786` — this box has no PyTorch, so I could not supply one.
Sign in to join this conversation.
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
Zagitta/gpu-unlock#263
No description provided.