mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[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
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, thengpu_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
Device id
10de:2786. The kernel log line ispci 0000:05:00.0: gpu_unlock: stage=claim device=0x2786.VBIOS version
95.04.3E.08.BE, read fromnvidia-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 loadswith the usual "tainting kernel" notices and nothing else in the way.
NVIDIA driver
580.126.09. The firmware this tool generates is extracted from610.43.03, and README states thereis no driver-version dependency. Our driver worked unchanged after the unlock.
Initramfs generator
initramfs-tools. The package'sinit-top/gpu-unlockhook plus itsmodules.dconf were present,and the built initramfs contained
usr/lib/modules/6.8.0-90-generic/dkms/gpu_unlock.ko.zstand all16 firmware files before the reboot.
gpu-unlock version and install method
v2.0.0, git HEAD
7eb51bc, built from source on this box:dkms statusafterwards:gpu-unlock/2.0.0, 6.8.0-90-generic, x86_64: installed.Kernel command line
The full PCI name is required.
gpu_unlock.targets=05:00.0matches nothing, because the module'slisted()compares by exact length againstpci_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
/etc/default/gruband/boot/grub/grub.cfg.update-grub, rebooted once into the unlocked boot.journalctl -k -b | grep gpu_unlockbefore touching anything else.model file (
T-lite-it-2.1-Q6_K.gguf, 6,725,604,992 bytes, dense qwen3 architecture) and thesame flags:
ctx=32768 ngl=99 flash_attn=1 threads=8, three passes each,ppsweep4096/8192/16384/32768.
Kernel log
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 3averaged, same binaries in both boots.
Server path, same corpus in both boots:
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
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 onlyF16 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".
unreachable on a 12 GB card with 6.7 GB of weights: the KV cache does not fit past about 32k.
sampled once per pass, so it is a weak signal at best.
/etc/default/grubputs the argument on every generated menuentry, so there is no stock fallbackentry to boot into. Recovery is restoring the dated copy of
/etc/default/gruband runningupdate-grub, not picking another GRUB entry.this box has none:
dpkg -lnow shows only a config-file stub forgpu-unlock-dkms,/var/lib/dkmscontains only
nvidia, andGRUB_CMDLINE_LINUX_DEFAULTis empty again. The boot I measured stayedunlocked until the next reboot.
@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.cAD104 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 for10de:2786— this box has no PyTorch, so I could not supply one.