Document and reproduce verified RTX 3060 GPU unlock
This commit is contained in:
1 parent
09f372f23a
commit
2397d3db98
23 files changed
+2057
No files matched your search
@@ -0,0 +1,2 @@
|
||||
# Preserve verbatim modinfo output, including its trailing spaces and hash.
|
||||
evidence/modinfo.txt whitespace=-blank-at-eol
|
||||
@@ -0,0 +1,242 @@
|
||||
# RTX 3060 GPU unlock: installed and boot-verified, 26 October 2026
|
||||
|
||||
## Current state after Michael's activation Go and manual cold start
|
||||
|
||||
The pinned module is installed through native DKMS for kernel
|
||||
`6.12.107+deb13-amd64`. Michael performed the physical shutdown/power-on.
|
||||
The new boot explicitly reports `pci 0000:04:00.0: gpu_unlock: unlocked`.
|
||||
Only the RTX 3060 is targeted, automatic resume unlocking is off; the RTX 5080,
|
||||
NVIDIA 615.71.09 and the existing 170 W / 360 W limits are unchanged. No NVIDIA
|
||||
Xid was found in the boot's kernel messages. The out-of-tree/untrusted-signature
|
||||
kernel taint is expected for this unofficial module; Secure Boot remains in its
|
||||
previous disabled state, with no security setting changed by this installation.
|
||||
|
||||
The existing initramfs-tools early hook, exact five firmware files and DKMS
|
||||
module are present in the current kernel's image. Normal GRUB entries include
|
||||
the exact PCI target; the recovery entry does not. A native installer is saved
|
||||
as `install-after-go.py`; it requires `--go` and never reboots or loads a module
|
||||
into a live GPU session. The firmware hook tolerates files already included by
|
||||
other initramfs hooks. No NVIDIA driver replacement or libcuda patch.
|
||||
|
||||
Deck is healthy. The previous Qwen Dual-Slot profile was not automatically loaded
|
||||
after reboot; Michael signed into Deck and a short regular Chat Test loaded that
|
||||
same profile. This warm-up ended at its small output limit (reasoning), so it is
|
||||
only evidence of loading/request completion, not of an explicit textual OK reply.
|
||||
The direct matched 256K measurement completed through the existing native worker;
|
||||
`after-unlock-256k.py` reused the saved request bytes and verified source revision
|
||||
and runtime parameters against the baseline. No new model worker, profile change
|
||||
or further restart. Qwen remains loaded and healthy.
|
||||
|
||||
### Matched 256K result after activation
|
||||
|
||||
| Metric | Before | After | Observed change |
|
||||
|---|---:|---:|---:|
|
||||
| Prefill, 261114 newly computed tokens | 1748.6 tokens/s | 1891.2 tokens/s | +8.2% |
|
||||
| Decode, 256 tokens | 54.0 tokens/s | 52.4 tokens/s | -3.0% |
|
||||
| Prefill backend time | 149.3247 s | 138.0650 s | -11.2597 s |
|
||||
| Decode backend time | 4.7451 s | 4.8832 s | +0.1381 s |
|
||||
| Time to first text | 149.4780 s | 138.2236 s | -11.2544 s |
|
||||
| Total wall time | 154.1940 s | 143.0865 s | -7.2% |
|
||||
|
||||
Identical request bytes, source 0.1.51, quantization, both GPUs, layer split,
|
||||
parallelism, CPU/RAM/KV settings and sampling. **Zero input tokens reused from
|
||||
the prompt cache in both arms.** Both runs returned all three markers; output
|
||||
ended at the intentional 256-token limit. After-run worker counter changed 1→2,
|
||||
with no concurrent inference seen in 29 resource samples. Settings hashes match
|
||||
both the immediate pre-run state and the original baseline. Worker health is
|
||||
`ok` and loaded, no additional model worker was created.
|
||||
|
||||
This single pair shows a shorter context-read time and essentially unchanged
|
||||
generation, **not proof of a general or causally isolated unlock speedup**.
|
||||
Physical cold boot changes OS caches and adaptive expert placement; baseline
|
||||
followed earlier productive work, after-run followed one short load/health test.
|
||||
No long-run stability or numerical GEMM correctness test has been performed.
|
||||
All marker checks passing is a functional inference check, not proof of numerical
|
||||
identity. A compatible RTX-3060 report found no benefit for Strata's INT8/MMQ
|
||||
path: https://github.com/Zagitta/gpu-unlock/issues/56. Our small timing difference
|
||||
must not override that limitation or be advertised as a guaranteed result.
|
||||
|
||||
Evidence: [boot verification](evidence/postboot-verification.json),
|
||||
[after-run](evidence/after-256k.json),
|
||||
[checked comparison](evidence/comparison-256k.json).
|
||||
Remote run: `/data/athena-deck-strata/experiments/gpu-unlock-after-20261026`.
|
||||
|
||||
## Historical preparation before activation
|
||||
|
||||
Michael authorized preparation, not activation or a reboot. Nothing is installed
|
||||
in the live module/firmware/boot directories. No GPU driver unload, module load,
|
||||
GPU reset, power/clock change, model request, container restart or host reboot.
|
||||
The RTX 5080 must never be targeted by this experiment.
|
||||
|
||||
## Pinned source and actual host
|
||||
|
||||
- Original: https://github.com/Zagitta/gpu-unlock
|
||||
- Revision: `af28cbbfd3d922a659227ecfb7369adfd924cf03`, module 1.0.0.
|
||||
- Athena: Debian 13.7; kernel `6.12.107+deb13-amd64`; NVIDIA `615.71.09`.
|
||||
- RTX 3060 12 GB: PCI `0000:04:00.0`, device `10de:2504`,
|
||||
UUID `GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b`, existing power limit 170 W.
|
||||
- RTX 5080: PCI `0000:08:00.0`, existing power limit 360 W; unchanged.
|
||||
- Secure Boot disabled. Existing compiler, headers, make, DKMS, Python 3.13.5
|
||||
and zstd suffice. No host dependency packages were installed. The firmware
|
||||
README's Python 3.14 statement is stale for this revision: its generator
|
||||
invokes external zstd and successfully ran under the host's Python 3.13.
|
||||
|
||||
Private preparation root on Athena:
|
||||
`/opt/athena-gpu-unlock-prep-20261026`.
|
||||
Contains exact upstream checkout, verified input downloads, generated firmware,
|
||||
compiled `.ko`, DESTDIR-only install tree, build log and JSON evidence. Generated
|
||||
NVIDIA firmware and downloaded packages are not added to this Git repository.
|
||||
Preparation does not alter Strata, Hermes, TTS/STT or any VPN resource.
|
||||
|
||||
## Native reproducibility and checks
|
||||
|
||||
On a compatible Debian host, provision git, build-essential, the headers matching
|
||||
the target kernel, python3, zstd, kmod and DKMS through its normal OS installer.
|
||||
Retain existing NVIDIA driver; do not update it as a hidden prerequisite. Fetch
|
||||
the exact revision into a dedicated root's `source/`, then run:
|
||||
|
||||
```sh
|
||||
nice -n 19 ionice -c 3 bash build-native.sh /absolute/preparation-root
|
||||
```
|
||||
|
||||
The native recipe uses one compiler job. Input downloads and all five generated
|
||||
firmware blobs are checked against upstream-pinned hashes. Source remains
|
||||
unmodified. `make test` passed all five Python test methods, including compiled
|
||||
C component/mock tests with generated firmware. The module builds successfully
|
||||
against Athena's current kernel and its `vermagic` matches. These tests do not
|
||||
perform an unlock or establish hardware/driver runtime compatibility.
|
||||
|
||||
The module and firmware are only **staged**, not registered in DKMS or installed.
|
||||
`before.json` and `verification.json` compare live boot hashes and GPU identity,
|
||||
driver and power limits. No token, private prompt or production response is
|
||||
needed for preparation.
|
||||
|
||||
## Activation procedure — requires a new explicit Go
|
||||
|
||||
This document is a reviewed procedure, not an automatic activator. Recheck the
|
||||
current kernel, driver, PCI address/UUID, free /boot space and build hashes. A
|
||||
different kernel requires a new build. Refuse an unrelated existing gpu-unlock
|
||||
installation or custom boot hooks rather than overwriting them.
|
||||
|
||||
1. Coordinate a maintenance window and establish a usable local/physical console
|
||||
and power control. Check Athena's authenticated active **and queued** requests;
|
||||
let production finish. Capture a small synthetic matched prefill/decode
|
||||
baseline using the existing protocol; no cache purge or private chats.
|
||||
2. Review the pinned module's firmware load paths and rollback instructions.
|
||||
Install only `stage/usr/src/gpu-unlock-1.0.0` and the five staged firmware
|
||||
files to their corresponding native paths, plus upstream license notices.
|
||||
Register/build/install `gpu-unlock/1.0.0` using existing DKMS for the current
|
||||
target kernel. Do not replace NVIDIA's driver or libcuda, and never load
|
||||
gpu_unlock manually into a running GPU session.
|
||||
3. For initramfs-tools, install the staged `initramfs-hook` as
|
||||
`/etc/initramfs-tools/hooks/athena-gpu-unlock` and `initramfs-init-top` as
|
||||
`/etc/initramfs-tools/scripts/init-top/00-athena-gpu-unlock`, both mode 755.
|
||||
The hook includes the module and exact firmware; init-top loads it before
|
||||
udev can bind NVIDIA. Merely putting a modules.d file in place is insufficient
|
||||
on some initramfs-tools installations (upstream issue #11).
|
||||
4. Install `grub-dropin.cfg` as
|
||||
`/etc/default/grub.d/98-athena-gpu-unlock.cfg`, mode 644. Preserve all other
|
||||
options. Exact target: `gpu_unlock.targets=0000:04:00.0`; automatic resume
|
||||
unlocking disabled with `gpu_unlock.resume=0`. No `targets=all`.
|
||||
5. Regenerate only the target kernel's initramfs and GRUB configuration. Inspect
|
||||
the generated image's file listing for the module, five firmware files and
|
||||
early-load script, and the generated boot command line for the exact target.
|
||||
Do not collect full boot images or unrelated configurations as evidence.
|
||||
6. After production has drained, cleanly stop host services through normal
|
||||
shutdown. Perform a complete power-off/power-on, not an unload/reload or warm
|
||||
re-unlock experiment. No automatic shutdown/reboot in this preparation.
|
||||
7. Verify kernel unlock outcome, both GPU identities, unchanged power limits,
|
||||
temperatures, NVIDIA health, Deck health and original Qwen profile. Then run
|
||||
the same short synthetic test and numerical checks. Compare prefill and decode
|
||||
separately; compare cache/memory state and distinguish a boot-cold run from
|
||||
steady-state results. No guaranteed Strata benefit: INT8, host I/O and memory
|
||||
traffic are not accelerated by this FP/BF16 unlock.
|
||||
|
||||
Do not call the installation active/successful until a real boot, numerical
|
||||
checks, both-GPU health and request tests pass. Changes to boot hooks/GRUB are
|
||||
not yet qualified in a real boot; the current artifact is only build-qualified.
|
||||
|
||||
## Recovery and permanent removal
|
||||
|
||||
If boot/GPU initialization fails, use the physical GRUB editor and remove
|
||||
`gpu_unlock.targets=0000:04:00.0` from that boot's command line. Shut down and
|
||||
fully power off before booting normally again. With no target parameter the
|
||||
module does not perform an unlock, and the staged init-top script does not load
|
||||
it. A physical console is important if SSH is unavailable.
|
||||
|
||||
After restoring normal operation, remove only the three newly owned boot files
|
||||
listed above, unregister/remove `gpu-unlock/1.0.0` through DKMS, and remove only
|
||||
its newly installed source/firmware/license/doc files. Regenerate the affected
|
||||
initramfs and GRUB configuration, then cold boot normally if needed. Never delete
|
||||
NVIDIA's stock modules, firmware or other projects' files. Recheck both GPUs and
|
||||
Deck/Qwen/TTS/STT. Power/voltage limits are never raised by this procedure.
|
||||
|
||||
Restore on a fresh Debian host defaults to **unlock disabled**: stage/build again
|
||||
from the pinned public revision and manifest, verify new hardware/kernel and
|
||||
obtain an explicit activation decision. Do not silently replay a host's optional
|
||||
firmware experiment during ordinary Deck restore.
|
||||
|
||||
## Evidence and limits
|
||||
|
||||
### Additional 256K baseline requested by Michael
|
||||
|
||||
Michael subsequently asked for a near-full 256K-context baseline, input and
|
||||
output token rates, before activation. `baseline-native-256k.py` runs one
|
||||
synthetic request (target 261120 input tokens, maximum 256 output tokens) using
|
||||
the already loaded `flash-next-strata-iq3-dual` profile and unchanged settings.
|
||||
The existing Strata worker's authenticated loopback HTTP API is reached from
|
||||
host Python in Deck's network namespace. Its existing worker token is read only
|
||||
from the owned worker configuration and used in RAM; never saved or displayed.
|
||||
No model switch or unlock, no new API identity, no additional model worker.
|
||||
|
||||
The initial attempt to retrieve the public Athena API key from Hermes failed
|
||||
because the NAS SSH identities were refused. No key was retrieved. Michael
|
||||
signed into Deck, where 0 active / 0 waiting requests and two free slots were
|
||||
observed. Its Chat Test UI is limited to 8000 characters per input and 24000 per
|
||||
conversation, so it cannot serve this benchmark. The GUI detour was unnecessary;
|
||||
Michael explicitly requested returning to the existing direct benchmark method.
|
||||
Unused public-endpoint/credential-bridge scripts were removed. No authentication
|
||||
settings were changed or login reset attempted.
|
||||
|
||||
The native harness waits for its documented worker activity counter to remain
|
||||
zero, verifies that the model is already loaded, and tokenizes only synthetic
|
||||
input with the same worker. It records the exact fixture, usage, backend timings,
|
||||
cache count, TTFT/wall, worker request counters and selected resource samples.
|
||||
This direct native request does **not** hold a Deck scheduler lease; it is an
|
||||
engine baseline, not an end-to-end router benchmark. Other worker activity is
|
||||
sampled and must be reported as a confound. No production work is cancelled.
|
||||
|
||||
**Completed:** Strata 0.1.51, source
|
||||
`4b9e05a2a806a3fe24f7b2560d98626c37dade35`, both GPUs, unchanged Dual-Slot
|
||||
2x262144 profile, one request. The model was already loaded; the synthetic prompt
|
||||
was new, with **zero cached tokens**. No physical OS cache purge was performed.
|
||||
|
||||
| Phase | Tokens | Backend time | Backend rate |
|
||||
|---|---:|---:|---:|
|
||||
| Input / prefill | 261114 | 149.3247 s | **1748.6 tokens/s** |
|
||||
| Output / decode | 256 | 4.7451 s | **54.0 tokens/s** |
|
||||
|
||||
TTFT 149.478 s, total wall 154.194 s. All three synthetic markers were returned.
|
||||
The 256-token output cap was reached intentionally; the long writing instruction
|
||||
was not expected to finish within it. Worker request counter rose exactly 28→29;
|
||||
all 31 resource samples saw no more than one concurrent request. Minimum host
|
||||
available memory was 7954 MiB. Settings hashes and selected worker configuration
|
||||
match before/after; worker health is `ok`, loaded, original profile retained.
|
||||
GPU unlock remains unloaded, and no reboot or model switch occurred.
|
||||
|
||||
This is **one baseline, not a measured unlock speedup**. Reuse the exact saved
|
||||
request after an explicitly authorized activation and report boot/cache effects.
|
||||
Measured rates come from separate backend phase timers, not tokens/wall time.
|
||||
Evidence: [metrics](evidence/baseline-256k.json),
|
||||
[exact synthetic request](evidence/baseline-256k-request.json).
|
||||
Remote run: `/data/athena-deck-strata/experiments/gpu-unlock-baseline-20261026`.
|
||||
|
||||
See `evidence/` for the build log, compiler/module metadata and selected host
|
||||
verification. The preparation-only state described above is historical; current
|
||||
boot activation and the matched inference comparison are documented at the top.
|
||||
No dedicated numerical matrix test or long-run thermal/stability test has been
|
||||
performed. Permanent hardware damage cannot be ruled out or quantified.
|
||||
Reports of recoverable initialization failures:
|
||||
https://github.com/Zagitta/gpu-unlock/issues/23.
|
||||
Early-load ordering:
|
||||
https://github.com/Zagitta/gpu-unlock/issues/11.
|
||||
@@ -0,0 +1,193 @@
|
||||
#!/usr/bin/env python3
|
||||
"""One matched native Strata measurement after the authorized unlock, in the existing worker network namespace.
|
||||
|
||||
No public endpoint credential, model switch, restart, or GPU unlock is needed.
|
||||
Only synthetic inputs and selected metrics are persisted. Existing worker token
|
||||
is used in RAM solely for that worker's documented HTTP API.
|
||||
"""
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import random
|
||||
import subprocess
|
||||
import threading
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
P = pathlib.Path
|
||||
STATE = P('/opt/athena-deck-dev/runtime/state')
|
||||
ROOT = P('/data/athena-deck-strata/experiments/gpu-unlock-after-20261026')
|
||||
ROOT.mkdir(parents=True, exist_ok=False)
|
||||
worker_path = STATE/'strata-worker/worker.json'
|
||||
worker = json.loads(worker_path.read_text())
|
||||
URL = 'http://127.0.0.1:'+str(worker['port'])
|
||||
TOKEN = worker['api_key']
|
||||
settings_files = ('profiles.json', 'endpoint.json', 'audio-policy.json', 'cpu-partition.json', 'reasoning-budget.json')
|
||||
|
||||
|
||||
def hashes():
|
||||
return {n: hashlib.sha256((STATE/n).read_bytes()).hexdigest() for n in settings_files}
|
||||
|
||||
|
||||
def api(path, body=None, timeout=120):
|
||||
req = urllib.request.Request(URL+path,
|
||||
data=None if body is None else json.dumps(body).encode(),
|
||||
headers={'Authorization': 'Bearer '+TOKEN, 'Content-Type': 'application/json'})
|
||||
return urllib.request.urlopen(req, timeout=timeout)
|
||||
|
||||
|
||||
def status():
|
||||
with api('/v1/status', timeout=10) as response:
|
||||
return json.load(response)
|
||||
|
||||
|
||||
before = hashes()
|
||||
result = {'started_at': time.time(), 'transport': 'existing native Strata HTTP worker',
|
||||
'model': worker['model_name'], 'context_window': 262144,
|
||||
'max_output_tokens': 256, 'phase': 'preflight', 'error': None,
|
||||
'complete': False, 'settings_before': before, 'gpu_unlock_active': True,
|
||||
'sampling': {'temperature': 0, 'top_p': 1, 'seed': 42, 'reasoning_effort': 'none'}}
|
||||
samples = []
|
||||
stop = threading.Event()
|
||||
monitor_thread = None
|
||||
|
||||
|
||||
def save(phase):
|
||||
result['phase'] = phase
|
||||
result['updated_at'] = time.time()
|
||||
tmp = ROOT/'result.tmp'
|
||||
tmp.write_text(json.dumps(result, indent=2, ensure_ascii=False)+'\n')
|
||||
tmp.replace(ROOT/'result.json')
|
||||
print(phase, flush=True)
|
||||
|
||||
|
||||
def sample():
|
||||
d = status()
|
||||
mem = {l.split(':')[0]: int(l.split()[1]) for l in P('/proc/meminfo').read_text().splitlines()}
|
||||
gpu = subprocess.check_output(['nvidia-smi',
|
||||
'--query-gpu=index,temperature.gpu,power.draw,power.limit,memory.used',
|
||||
'--format=csv,noheader,nounits'], text=True, timeout=8).strip().splitlines()
|
||||
return {'at': time.time(), 'worker_in_flight': d['activity']['in_flight'],
|
||||
'worker_requests': d['activity']['requests'],
|
||||
'host_available_mib': mem['MemAvailable']/1024, 'gpus': gpu}
|
||||
|
||||
|
||||
def monitor():
|
||||
while not stop.is_set():
|
||||
try:
|
||||
row = sample()
|
||||
samples.append(row)
|
||||
(ROOT/'progress.json').write_text(json.dumps(row, indent=2)+'\n')
|
||||
except Exception as exc:
|
||||
result['monitor_error_type'] = type(exc).__name__
|
||||
stop.wait(5)
|
||||
|
||||
|
||||
try:
|
||||
assert P('/sys/module/gpu_unlock').exists(), 'Unlock module not loaded'
|
||||
assert P('/sys/module/gpu_unlock/parameters/targets').read_text().strip() == '0000:04:00.0'
|
||||
assert P('/sys/module/gpu_unlock/parameters/resume').read_text().strip() == 'N'
|
||||
assert worker['model_name'] == 'flash-next-strata-iq3-dual'
|
||||
assert worker['parallel'] == 2
|
||||
assert worker['args'][worker['args'].index('--max-context')+1] == '262144'
|
||||
result['worker_configuration'] = {k: worker.get(k) for k in ('model_name', 'gpu', 'parallel', 'layer_split', 'args')}
|
||||
result['source_commit'] = subprocess.check_output(['git', '-c',
|
||||
'safe.directory='+str(STATE/'strata-runtime/source'), '-C',
|
||||
str(STATE/'strata-runtime/source'), 'rev-parse', 'HEAD'], text=True).strip()
|
||||
save('waiting_for_worker_idle')
|
||||
clean = 0
|
||||
until = time.monotonic()+900
|
||||
while time.monotonic() < until:
|
||||
d = status()
|
||||
assert isinstance(d.get('activity', {}).get('in_flight'), int)
|
||||
clean = clean+1 if d['activity']['in_flight'] == 0 else 0
|
||||
if clean >= 3:
|
||||
break
|
||||
time.sleep(2)
|
||||
else:
|
||||
raise TimeoutError('No idle window; no production work interrupted')
|
||||
assert d['loaded']
|
||||
result['worker_request_count_before'] = d['activity']['requests']
|
||||
result['cache_max_tokens'] = d.get('cache_max_tokens')
|
||||
result['engine'] = d.get('engine')
|
||||
save('loading_exact_saved_baseline_request')
|
||||
baseline_root = P('/data/athena-deck-strata/experiments/gpu-unlock-baseline-20261026')
|
||||
baseline = json.loads((baseline_root/'result.json').read_text())
|
||||
fixture = (baseline_root/'request.json').read_bytes()
|
||||
assert hashlib.sha256(fixture).hexdigest() == baseline['request_sha256']
|
||||
assert baseline['complete'] and not baseline['gpu_unlock_active']
|
||||
assert result['source_commit'] == baseline['source_commit']
|
||||
assert result['worker_configuration'] == baseline['worker_configuration'], 'Runtime parameters changed'
|
||||
result['settings_match_baseline'] = before == baseline['settings_before']
|
||||
result['baseline'] = {k: baseline[k] for k in ('usage','backend_timings','ttft_s','wall_s')}
|
||||
body = json.loads(fixture)
|
||||
assert body['max_tokens'] == 256 and body['temperature'] == 0 and body['seed'] == 42
|
||||
(ROOT/'request.json').write_bytes(fixture)
|
||||
result['planned_input_tokens'] = baseline['planned_input_tokens']
|
||||
result['source_rows'] = baseline['source_rows']
|
||||
result['request_sha256'] = hashlib.sha256(fixture).hexdigest()
|
||||
assert json.loads(worker_path.read_text()) == worker and hashes() == before
|
||||
d = status()
|
||||
assert d['activity']['in_flight'] == 0 and d['loaded']
|
||||
result['worker_request_count_before_measurement'] = d['activity']['requests']
|
||||
save('measuring_one_native_request')
|
||||
monitor_thread = threading.Thread(target=monitor, daemon=True)
|
||||
monitor_thread.start()
|
||||
started = time.monotonic()
|
||||
answer = ''
|
||||
usage = {}
|
||||
timings = {}
|
||||
ttft = None
|
||||
finish = None
|
||||
done = False
|
||||
with api('/v1/chat/completions', body, timeout=1200) as response:
|
||||
for line in response:
|
||||
if time.monotonic()-started > 1200:
|
||||
raise TimeoutError('Own request exceeded 20 minutes')
|
||||
if not line.startswith(b'data:'):
|
||||
continue
|
||||
raw = line[5:].strip()
|
||||
if raw == b'[DONE]':
|
||||
done = True
|
||||
break
|
||||
event = json.loads(raw)
|
||||
if 'error' in event:
|
||||
raise RuntimeError('Synthetic Strata request failed')
|
||||
usage = event.get('usage') or usage
|
||||
timings = event.get('timings') or timings
|
||||
for choice in event.get('choices', []):
|
||||
finish = choice.get('finish_reason') or finish
|
||||
content = choice.get('delta', {}).get('content') or ''
|
||||
if content:
|
||||
if ttft is None:
|
||||
ttft = time.monotonic()-started
|
||||
answer += content
|
||||
result.update(usage=usage, backend_timings=timings, ttft_s=ttft,
|
||||
wall_s=time.monotonic()-started, finish_reason=finish, answer=answer,
|
||||
marker_retrieval={v: v in answer for v in ('ALPHA_314159', 'BETA_271828', 'GAMMA_161803')})
|
||||
assert done and usage.get('completion_tokens', 0) > 0
|
||||
assert timings.get('prompt_per_second', 0) > 0 and timings.get('predicted_per_second', 0) > 0
|
||||
result['complete'] = True
|
||||
except Exception as exc:
|
||||
result['error'] = type(exc).__name__
|
||||
finally:
|
||||
stop.set()
|
||||
if monitor_thread:
|
||||
monitor_thread.join(timeout=8)
|
||||
result['resource_samples'] = samples
|
||||
result['other_requests_observed'] = any(s['worker_in_flight'] > 1 for s in samples)
|
||||
result['settings_unchanged'] = hashes() == before
|
||||
now = json.loads(worker_path.read_text())
|
||||
result['worker_configuration_unchanged'] = all(now.get(k) == worker.get(k) for k in
|
||||
('model_name', 'gpu', 'parallel', 'layer_split', 'args', 'env'))
|
||||
result['finished_at'] = time.time()
|
||||
try:
|
||||
with api('/health', timeout=10) as r:
|
||||
h = json.load(r)
|
||||
result['worker_health_after'] = {k: h[k] for k in ('status', 'loaded') if k in h}
|
||||
result['worker_request_count_after'] = status()['activity']['requests']
|
||||
except Exception as exc:
|
||||
result['health_check_error_type'] = type(exc).__name__
|
||||
save('complete' if result['complete'] else 'failed')
|
||||
raise SystemExit(0 if result['complete'] else 1)
|
||||
@@ -0,0 +1,208 @@
|
||||
#!/usr/bin/env python3
|
||||
"""One authorized native Strata baseline, in the existing worker network namespace.
|
||||
|
||||
No public endpoint credential, model switch, restart, or GPU unlock is needed.
|
||||
Only synthetic inputs and selected metrics are persisted. Existing worker token
|
||||
is used in RAM solely for that worker's documented HTTP API.
|
||||
"""
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import random
|
||||
import subprocess
|
||||
import threading
|
||||
import time
|
||||
import urllib.request
|
||||
|
||||
P = pathlib.Path
|
||||
STATE = P('/opt/athena-deck-dev/runtime/state')
|
||||
ROOT = P('/data/athena-deck-strata/experiments/gpu-unlock-baseline-20261026')
|
||||
ROOT.mkdir(parents=True, exist_ok=False)
|
||||
worker_path = STATE/'strata-worker/worker.json'
|
||||
worker = json.loads(worker_path.read_text())
|
||||
URL = 'http://127.0.0.1:'+str(worker['port'])
|
||||
TOKEN = worker['api_key']
|
||||
settings_files = ('profiles.json', 'endpoint.json', 'audio-policy.json', 'cpu-partition.json', 'reasoning-budget.json')
|
||||
|
||||
|
||||
def hashes():
|
||||
return {n: hashlib.sha256((STATE/n).read_bytes()).hexdigest() for n in settings_files}
|
||||
|
||||
|
||||
def api(path, body=None, timeout=120):
|
||||
req = urllib.request.Request(URL+path,
|
||||
data=None if body is None else json.dumps(body).encode(),
|
||||
headers={'Authorization': 'Bearer '+TOKEN, 'Content-Type': 'application/json'})
|
||||
return urllib.request.urlopen(req, timeout=timeout)
|
||||
|
||||
|
||||
def status():
|
||||
with api('/v1/status', timeout=10) as response:
|
||||
return json.load(response)
|
||||
|
||||
|
||||
before = hashes()
|
||||
result = {'started_at': time.time(), 'transport': 'existing native Strata HTTP worker',
|
||||
'model': worker['model_name'], 'context_window': 262144,
|
||||
'max_output_tokens': 256, 'phase': 'preflight', 'error': None,
|
||||
'complete': False, 'settings_before': before, 'gpu_unlock_active': False,
|
||||
'sampling': {'temperature': 0, 'top_p': 1, 'seed': 42, 'reasoning_effort': 'none'}}
|
||||
samples = []
|
||||
stop = threading.Event()
|
||||
monitor_thread = None
|
||||
|
||||
|
||||
def save(phase):
|
||||
result['phase'] = phase
|
||||
result['updated_at'] = time.time()
|
||||
tmp = ROOT/'result.tmp'
|
||||
tmp.write_text(json.dumps(result, indent=2, ensure_ascii=False)+'\n')
|
||||
tmp.replace(ROOT/'result.json')
|
||||
print(phase, flush=True)
|
||||
|
||||
|
||||
def sample():
|
||||
d = status()
|
||||
mem = {l.split(':')[0]: int(l.split()[1]) for l in P('/proc/meminfo').read_text().splitlines()}
|
||||
gpu = subprocess.check_output(['nvidia-smi',
|
||||
'--query-gpu=index,temperature.gpu,power.draw,power.limit,memory.used',
|
||||
'--format=csv,noheader,nounits'], text=True, timeout=8).strip().splitlines()
|
||||
return {'at': time.time(), 'worker_in_flight': d['activity']['in_flight'],
|
||||
'worker_requests': d['activity']['requests'],
|
||||
'host_available_mib': mem['MemAvailable']/1024, 'gpus': gpu}
|
||||
|
||||
|
||||
def monitor():
|
||||
while not stop.is_set():
|
||||
try:
|
||||
row = sample()
|
||||
samples.append(row)
|
||||
(ROOT/'progress.json').write_text(json.dumps(row, indent=2)+'\n')
|
||||
except Exception as exc:
|
||||
result['monitor_error_type'] = type(exc).__name__
|
||||
stop.wait(5)
|
||||
|
||||
|
||||
try:
|
||||
assert not P('/sys/module/gpu_unlock').exists(), 'Unlock unexpectedly active'
|
||||
assert worker['model_name'] == 'flash-next-strata-iq3-dual'
|
||||
assert worker['parallel'] == 2
|
||||
assert worker['args'][worker['args'].index('--max-context')+1] == '262144'
|
||||
result['worker_configuration'] = {k: worker.get(k) for k in ('model_name', 'gpu', 'parallel', 'layer_split', 'args')}
|
||||
result['source_commit'] = subprocess.check_output(['git', '-c',
|
||||
'safe.directory='+str(STATE/'strata-runtime/source'), '-C',
|
||||
str(STATE/'strata-runtime/source'), 'rev-parse', 'HEAD'], text=True).strip()
|
||||
save('waiting_for_worker_idle')
|
||||
clean = 0
|
||||
until = time.monotonic()+900
|
||||
while time.monotonic() < until:
|
||||
d = status()
|
||||
assert isinstance(d.get('activity', {}).get('in_flight'), int)
|
||||
clean = clean+1 if d['activity']['in_flight'] == 0 else 0
|
||||
if clean >= 3:
|
||||
break
|
||||
time.sleep(2)
|
||||
else:
|
||||
raise TimeoutError('No idle window; no production work interrupted')
|
||||
assert d['loaded']
|
||||
result['worker_request_count_before'] = d['activity']['requests']
|
||||
result['cache_max_tokens'] = d.get('cache_max_tokens')
|
||||
result['engine'] = d.get('engine')
|
||||
save('calibrating_synthetic_256k_input')
|
||||
rng = random.Random(20261026)
|
||||
lines = [f'Datensatz {i:06d}: Standort {rng.randrange(10000):04d}, Messwert '
|
||||
f'{rng.randrange(100000000,999999999)}, Status archiviert.\n' for i in range(20000)]
|
||||
|
||||
def prompt(n):
|
||||
return ('Dies ist ausschließlich ein synthetischer Leistungstest. Antworte auf Deutsch. '
|
||||
'Nutze keine Werkzeuge und führe nichts aus.\nMARKER_ANFANG=ALPHA_314159\n'+
|
||||
''.join(lines[:n//2])+'\nMARKER_MITTE=BETA_271828\n'+''.join(lines[n//2:n])+
|
||||
'\nMARKER_ENDE=GAMMA_161803\nNenne zuerst die drei MARKER-Werte. '
|
||||
'Schreibe anschließend mindestens 500 Wörter über sorgfältige Datensicherung.')
|
||||
|
||||
def count(n):
|
||||
with api('/v1/messages/count_tokens', {'model': worker['model_name'],
|
||||
'messages': [{'role': 'user', 'content': prompt(n)}],
|
||||
'thinking': {'type': 'disabled'}, 'max_tokens': 256}) as response:
|
||||
return json.load(response)['input_tokens']
|
||||
|
||||
lo, hi = 1, len(lines)
|
||||
while lo < hi:
|
||||
n = (lo+hi+1)//2
|
||||
if count(n) <= 261120:
|
||||
lo = n
|
||||
else:
|
||||
hi = n-1
|
||||
result['planned_input_tokens'] = count(lo)
|
||||
assert 260992 <= result['planned_input_tokens'] <= 261120
|
||||
result['source_rows'] = lo
|
||||
body = {'model': worker['model_name'], 'messages': [{'role': 'user', 'content': prompt(lo)}],
|
||||
'temperature': 0, 'top_p': 1, 'seed': 42, 'reasoning_effort': 'none',
|
||||
'max_tokens': 256, 'stream': True, 'stream_options': {'include_usage': True}}
|
||||
(ROOT/'request.json').write_text(json.dumps(body, ensure_ascii=False)+'\n')
|
||||
result['request_sha256'] = hashlib.sha256((ROOT/'request.json').read_bytes()).hexdigest()
|
||||
assert json.loads(worker_path.read_text()) == worker and hashes() == before
|
||||
d = status()
|
||||
assert d['activity']['in_flight'] == 0 and d['loaded']
|
||||
result['worker_request_count_before_measurement'] = d['activity']['requests']
|
||||
save('measuring_one_native_request')
|
||||
monitor_thread = threading.Thread(target=monitor, daemon=True)
|
||||
monitor_thread.start()
|
||||
started = time.monotonic()
|
||||
answer = ''
|
||||
usage = {}
|
||||
timings = {}
|
||||
ttft = None
|
||||
finish = None
|
||||
done = False
|
||||
with api('/v1/chat/completions', body, timeout=1200) as response:
|
||||
for line in response:
|
||||
if time.monotonic()-started > 1200:
|
||||
raise TimeoutError('Own request exceeded 20 minutes')
|
||||
if not line.startswith(b'data:'):
|
||||
continue
|
||||
raw = line[5:].strip()
|
||||
if raw == b'[DONE]':
|
||||
done = True
|
||||
break
|
||||
event = json.loads(raw)
|
||||
if 'error' in event:
|
||||
raise RuntimeError('Synthetic Strata request failed')
|
||||
usage = event.get('usage') or usage
|
||||
timings = event.get('timings') or timings
|
||||
for choice in event.get('choices', []):
|
||||
finish = choice.get('finish_reason') or finish
|
||||
content = choice.get('delta', {}).get('content') or ''
|
||||
if content:
|
||||
if ttft is None:
|
||||
ttft = time.monotonic()-started
|
||||
answer += content
|
||||
result.update(usage=usage, backend_timings=timings, ttft_s=ttft,
|
||||
wall_s=time.monotonic()-started, finish_reason=finish, answer=answer,
|
||||
marker_retrieval={v: v in answer for v in ('ALPHA_314159', 'BETA_271828', 'GAMMA_161803')})
|
||||
assert done and usage.get('completion_tokens', 0) > 0
|
||||
assert timings.get('prompt_per_second', 0) > 0 and timings.get('predicted_per_second', 0) > 0
|
||||
result['complete'] = True
|
||||
except Exception as exc:
|
||||
result['error'] = type(exc).__name__
|
||||
finally:
|
||||
stop.set()
|
||||
if monitor_thread:
|
||||
monitor_thread.join(timeout=8)
|
||||
result['resource_samples'] = samples
|
||||
result['other_requests_observed'] = any(s['worker_in_flight'] > 1 for s in samples)
|
||||
result['settings_unchanged'] = hashes() == before
|
||||
now = json.loads(worker_path.read_text())
|
||||
result['worker_configuration_unchanged'] = all(now.get(k) == worker.get(k) for k in
|
||||
('model_name', 'gpu', 'parallel', 'layer_split', 'args', 'env'))
|
||||
result['finished_at'] = time.time()
|
||||
try:
|
||||
with api('/health', timeout=10) as r:
|
||||
h = json.load(r)
|
||||
result['worker_health_after'] = {k: h[k] for k in ('status', 'loaded') if k in h}
|
||||
result['worker_request_count_after'] = status()['activity']['requests']
|
||||
except Exception as exc:
|
||||
result['health_check_error_type'] = type(exc).__name__
|
||||
save('complete' if result['complete'] else 'failed')
|
||||
raise SystemExit(0 if result['complete'] else 1)
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Preparation only: never install packages/modules or modify the boot process.
|
||||
set -euo pipefail
|
||||
ROOT=${1:?Usage: build-native.sh /absolute/preparation-directory}
|
||||
case "$ROOT" in /*) ;; *) exit 2 ;; esac
|
||||
REVISION=af28cbbfd3d922a659227ecfb7369adfd924cf03
|
||||
cd "$ROOT/source"
|
||||
test "$(git rev-parse HEAD)" = "$REVISION"
|
||||
test -z "$(git diff HEAD --)"
|
||||
test -d "/lib/modules/$(uname -r)/build"
|
||||
mkdir -p "$ROOT/artifacts" "$ROOT/cache" "$ROOT/assets" "$ROOT/stage"
|
||||
make -j1 inputs INPUTS="$ROOT/cache" PYTHON=python3
|
||||
make -j1 firmware INPUTS="$ROOT/cache" ASSETS="$ROOT/assets" PYTHON=python3
|
||||
make -j1 test ASSETS="$ROOT/assets" PYTHON=python3
|
||||
make -j1 -C kernel/gpu_unlock KDIR="/lib/modules/$(uname -r)/build"
|
||||
make -j1 DESTDIR="$ROOT/stage" ASSETS="$ROOT/assets" \
|
||||
install-dkms install-firmware install-licenses
|
||||
install -m 0644 kernel/gpu_unlock/gpu_unlock.ko "$ROOT/artifacts/gpu_unlock.ko"
|
||||
modinfo "$ROOT/artifacts/gpu_unlock.ko" > "$ROOT/artifacts/modinfo.txt"
|
||||
test "$(modinfo -F vermagic "$ROOT/artifacts/gpu_unlock.ko" | cut -d' ' -f1)" = "$(uname -r)"
|
||||
test -z "$(git diff HEAD --)"
|
||||
python3 - "$ROOT" "$REVISION" <<'PY'
|
||||
import hashlib, json, pathlib, sys
|
||||
root = pathlib.Path(sys.argv[1])
|
||||
paths = sorted(p for d in ('stage', 'artifacts', 'assets')
|
||||
for p in (root/d).rglob('*') if p.is_file())
|
||||
result = {'revision': sys.argv[2], 'built': True, 'activated': False,
|
||||
'installed': False, 'files': {
|
||||
str(p.relative_to(root)): hashlib.file_digest(p.open('rb'), 'sha256').hexdigest()
|
||||
for p in paths}}
|
||||
(root/'build-result.json').write_text(json.dumps(result, indent=2)+'\n')
|
||||
PY
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"started_at": 1793018020.4681568,
|
||||
"revision": "af28cbbfd3d922a659227ecfb7369adfd924cf03",
|
||||
"kernel": "6.12.107+deb13-amd64",
|
||||
"target": "0000:04:00.0",
|
||||
"excluded": "0000:08:00.0",
|
||||
"gpu_before": [
|
||||
"00000000:04:00.0, NVIDIA GeForce RTX 3060, GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b, 0x250410DE, 615.71.09, 170.00 W",
|
||||
"00000000:08:00.0, NVIDIA GeForce RTX 5080, GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe, 0x2C0210DE, 615.71.09, 360.00 W"
|
||||
],
|
||||
"activated_in_running_kernel": false,
|
||||
"owned_files": [
|
||||
"/usr/lib/firmware/gpu-unlock/610.43.03/booter_load_ga102.bin",
|
||||
"/usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin",
|
||||
"/usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_ga102.bin",
|
||||
"/usr/lib/firmware/gpu-unlock/610.43.03/gsp_ga10x.bin",
|
||||
"/usr/lib/firmware/gpu-unlock/610.43.03/v67-ga102-610.43.03.bin",
|
||||
"/usr/share/doc/gpu-unlock/README.md",
|
||||
"/usr/share/licenses/gpu-unlock/CMP40HX-MIT.txt",
|
||||
"/usr/share/licenses/gpu-unlock/GPL-2.0.txt",
|
||||
"/usr/share/licenses/gpu-unlock/NVIDIA-MIT.txt",
|
||||
"/usr/share/licenses/gpu-unlock-firmware/NOTICE.md",
|
||||
"/usr/share/licenses/gpu-unlock-firmware/NVIDIA-LICENSE",
|
||||
"/usr/src/gpu-unlock-1.0.0/Kbuild",
|
||||
"/usr/src/gpu-unlock-1.0.0/Makefile",
|
||||
"/usr/src/gpu-unlock-1.0.0/diagnostic.h",
|
||||
"/usr/src/gpu-unlock-1.0.0/dkms.conf",
|
||||
"/usr/src/gpu-unlock-1.0.0/gfw_eval.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/gfw_eval.h",
|
||||
"/usr/src/gpu-unlock-1.0.0/layout_610.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/layout_610.h",
|
||||
"/usr/src/gpu-unlock-1.0.0/main.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/prep_610.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/prep_610.h",
|
||||
"/usr/src/gpu-unlock-1.0.0/unlock_610.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/unlock_610.h",
|
||||
"/usr/src/gpu-unlock-1.0.0/vbios_610.c",
|
||||
"/usr/src/gpu-unlock-1.0.0/vbios_610.h",
|
||||
"/etc/initramfs-tools/hooks/athena-gpu-unlock",
|
||||
"/etc/initramfs-tools/scripts/init-top/00-athena-gpu-unlock",
|
||||
"/etc/default/grub.d/98-athena-gpu-unlock.cfg"
|
||||
],
|
||||
"phase": "configured_for_cold_boot_not_yet_hardware_active",
|
||||
"updated_at": 1793018032.828765,
|
||||
"initramfs_contains_required_unlock_files": true,
|
||||
"target_kernel_normal_entries_checked": 2,
|
||||
"recovery_entries_without_unlock": 1,
|
||||
"gpu_after": [
|
||||
"00000000:04:00.0, NVIDIA GeForce RTX 3060, GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b, 0x250410DE, 615.71.09, 170.00 W",
|
||||
"00000000:08:00.0, NVIDIA GeForce RTX 5080, GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe, 0x2C0210DE, 615.71.09, 360.00 W"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,450 @@
|
||||
{
|
||||
"started_at": 1793020058.851718,
|
||||
"transport": "existing native Strata HTTP worker",
|
||||
"model": "flash-next-strata-iq3-dual",
|
||||
"context_window": 262144,
|
||||
"max_output_tokens": 256,
|
||||
"phase": "complete",
|
||||
"error": null,
|
||||
"complete": true,
|
||||
"settings_before": {
|
||||
"profiles.json": "e56a9cab15bed73d6bdd95dec0fe03c1eec636b8a3130e070e06b8b475210f3e",
|
||||
"endpoint.json": "1777010839b4cf905d1d52a76aaec55cc0d2e72fd8634a98dfecf1cc705f9d18",
|
||||
"audio-policy.json": "f48dedea718968c00c0647ca90c1402bdabac9ce600dbeddc495817680527a3f",
|
||||
"cpu-partition.json": "078d9215c41d7beafe42391a6a25c9aa34ad7f5b88ebbf40e2c178123e6611c1",
|
||||
"reasoning-budget.json": "4884a379adf2f888415041b81ef55a01a2c22ef7a41ca1554460f410bec5cf0c"
|
||||
},
|
||||
"gpu_unlock_active": true,
|
||||
"sampling": {
|
||||
"temperature": 0,
|
||||
"top_p": 1,
|
||||
"seed": 42,
|
||||
"reasoning_effort": "none"
|
||||
},
|
||||
"worker_configuration": {
|
||||
"model_name": "flash-next-strata-iq3-dual",
|
||||
"gpu": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"parallel": 2,
|
||||
"layer_split": "16",
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/athena-deck-strata/packs/iq3_xxs",
|
||||
"--native",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/var/lib/deck/strata-runtime/source/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/athena-deck-strata/mtp/rt",
|
||||
"--max-context",
|
||||
"262144",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--vram-reserve-mib",
|
||||
"1024",
|
||||
"--vram-reserve-later-mib",
|
||||
"1024",
|
||||
"--batch-mtp",
|
||||
"--batch-groups",
|
||||
"1",
|
||||
"--pcie-frac",
|
||||
"0.35",
|
||||
"--spec-min-p",
|
||||
"0.70",
|
||||
"--adapt-every",
|
||||
"1",
|
||||
"--adapt-swaps",
|
||||
"80",
|
||||
"--adapt-decay",
|
||||
"0.97",
|
||||
"--host-core",
|
||||
"first",
|
||||
"--pool-cores",
|
||||
"1,2,3",
|
||||
"--pool-workers",
|
||||
"3",
|
||||
"--aux-cpus",
|
||||
"6,7,8,9",
|
||||
"--resident-experts",
|
||||
"--vision"
|
||||
]
|
||||
},
|
||||
"source_commit": "4b9e05a2a806a3fe24f7b2560d98626c37dade35",
|
||||
"updated_at": 1793020205.9567037,
|
||||
"worker_request_count_before": 1,
|
||||
"cache_max_tokens": 262144,
|
||||
"engine": "0.1.51",
|
||||
"settings_match_baseline": true,
|
||||
"baseline": {
|
||||
"usage": {
|
||||
"prompt_tokens": 261114,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 261370,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 261114,
|
||||
"prompt_ms": 149324.7,
|
||||
"prompt_per_token_ms": 0.572,
|
||||
"prompt_per_second": 1748.6,
|
||||
"predicted_n": 256,
|
||||
"predicted_ms": 4745.1,
|
||||
"predicted_per_token_ms": 18.536,
|
||||
"predicted_per_second": 54.0,
|
||||
"draft_n": 151,
|
||||
"draft_n_accepted": 103
|
||||
},
|
||||
"ttft_s": 149.4779756310163,
|
||||
"wall_s": 154.19397372193635
|
||||
},
|
||||
"planned_input_tokens": 261114,
|
||||
"source_rows": 7250,
|
||||
"request_sha256": "19f935f6b8e34ab4b60586216b54986ee7916e45a9610d825b2a2c90f90191d2",
|
||||
"worker_request_count_before_measurement": 1,
|
||||
"usage": {
|
||||
"prompt_tokens": 261114,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 261370,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 261114,
|
||||
"prompt_ms": 138065.0,
|
||||
"prompt_per_token_ms": 0.529,
|
||||
"prompt_per_second": 1891.2,
|
||||
"predicted_n": 256,
|
||||
"predicted_ms": 4883.2,
|
||||
"predicted_per_token_ms": 19.075,
|
||||
"predicted_per_second": 52.4,
|
||||
"draft_n": 167,
|
||||
"draft_n_accepted": 117
|
||||
},
|
||||
"ttft_s": 138.22364150299995,
|
||||
"wall_s": 143.08654493699999,
|
||||
"finish_reason": "length",
|
||||
"answer": "Die drei angeforderten Marker-Werte sind wie folgt:\n\n1. **MARKER_ANFANG**: ALPHA_314159\n2. **MARKER_MITTE**: BETA_271828\n3. **MARKER_ENDE**: GAMMA_161803\n\nSorgfältige Datensicherung ist eine der fundamentalsten und zugleich kritischsten Disziplinen in der modernen Informationstechnologie und Datenverwaltung. In einer Ära, die durch die exponentielle Zunahme digitaler Informationen gekennzeichnet ist, stellt der Verlust von Daten nicht nur einen operativen Rückschlag dar, sondern kann existenzbedrohende Konsequenzen für Unternehmen, Institutionen und Einzelpersonen haben. Die vorliegende Datensammlung, bestehend aus über siebentausend Einträgen mit spezifischen Standorten, Messwerten und Statusinformationen, dient als perfektes Anschauungsobjekt für die Notwendigkeit robuster Sicherungsstrategien. Jeder einzelne Datensatz, wie etwa der Datensatz 000000 mit dem Standort 1859 und dem Messwert 958907022, repräsentiert einen wertvollen Informationsba",
|
||||
"marker_retrieval": {
|
||||
"ALPHA_314159": true,
|
||||
"BETA_271828": true,
|
||||
"GAMMA_161803": true
|
||||
},
|
||||
"resource_samples": [
|
||||
{
|
||||
"at": 1793020062.9090383,
|
||||
"worker_in_flight": 0,
|
||||
"worker_requests": 1,
|
||||
"host_available_mib": 10419.7578125,
|
||||
"gpus": [
|
||||
"0, 39, 11.11, 170.00, 11275",
|
||||
"1, 43, 14.54, 360.00, 15378"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020067.945655,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9807.359375,
|
||||
"gpus": [
|
||||
"0, 49, 109.77, 170.00, 11313",
|
||||
"1, 57, 233.91, 360.00, 15418"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020072.9745502,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9678.26171875,
|
||||
"gpus": [
|
||||
"0, 52, 117.70, 170.00, 11313",
|
||||
"1, 47, 55.12, 360.00, 15420"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020078.0037816,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9645.453125,
|
||||
"gpus": [
|
||||
"0, 54, 100.97, 170.00, 11313",
|
||||
"1, 61, 167.21, 360.00, 15420"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020083.032862,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9558.5234375,
|
||||
"gpus": [
|
||||
"0, 54, 115.46, 170.00, 11313",
|
||||
"1, 50, 176.88, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020088.0628808,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9471.3359375,
|
||||
"gpus": [
|
||||
"0, 52, 125.96, 170.00, 11313",
|
||||
"1, 49, 55.46, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020093.0927591,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9436.28515625,
|
||||
"gpus": [
|
||||
"0, 48, 42.42, 170.00, 11313",
|
||||
"1, 58, 229.47, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020098.1306267,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9331.921875,
|
||||
"gpus": [
|
||||
"0, 50, 105.88, 170.00, 11313",
|
||||
"1, 61, 130.36, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020103.1632345,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9232.19140625,
|
||||
"gpus": [
|
||||
"0, 55, 117.78, 170.00, 11313",
|
||||
"1, 59, 235.13, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020108.1934578,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9251.80078125,
|
||||
"gpus": [
|
||||
"0, 54, 129.22, 170.00, 11313",
|
||||
"1, 50, 70.15, 360.00, 15422"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020113.226205,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9130.796875,
|
||||
"gpus": [
|
||||
"0, 50, 113.64, 170.00, 11313",
|
||||
"1, 49, 56.56, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020118.2592566,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9099.6953125,
|
||||
"gpus": [
|
||||
"0, 53, 110.49, 170.00, 11313",
|
||||
"1, 61, 230.98, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020123.2895434,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9133.1328125,
|
||||
"gpus": [
|
||||
"0, 56, 120.79, 170.00, 11313",
|
||||
"1, 52, 195.25, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020128.323471,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9100.87890625,
|
||||
"gpus": [
|
||||
"0, 53, 116.15, 170.00, 11313",
|
||||
"1, 50, 55.96, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020133.3533907,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9098.56640625,
|
||||
"gpus": [
|
||||
"0, 54, 123.43, 170.00, 11313",
|
||||
"1, 51, 182.99, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020138.3828251,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9091.68359375,
|
||||
"gpus": [
|
||||
"0, 55, 127.82, 170.00, 11313",
|
||||
"1, 50, 55.99, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020143.4174328,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9050.40234375,
|
||||
"gpus": [
|
||||
"0, 51, 105.02, 170.00, 11313",
|
||||
"1, 49, 54.09, 360.00, 15424"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020148.452662,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9113.01953125,
|
||||
"gpus": [
|
||||
"0, 54, 114.18, 170.00, 11313",
|
||||
"1, 60, 239.40, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020153.4829497,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9084.8828125,
|
||||
"gpus": [
|
||||
"0, 53, 114.99, 170.00, 11313",
|
||||
"1, 62, 237.39, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020158.517351,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9121.09765625,
|
||||
"gpus": [
|
||||
"0, 55, 121.35, 170.00, 11313",
|
||||
"1, 51, 131.83, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020163.546689,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9093.6015625,
|
||||
"gpus": [
|
||||
"0, 54, 117.26, 170.00, 11313",
|
||||
"1, 50, 56.15, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020168.576583,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9092.83203125,
|
||||
"gpus": [
|
||||
"0, 55, 123.28, 170.00, 11313",
|
||||
"1, 56, 237.80, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020173.6065984,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9106.56640625,
|
||||
"gpus": [
|
||||
"0, 54, 124.62, 170.00, 11313",
|
||||
"1, 51, 143.90, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020178.6358695,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9110.9296875,
|
||||
"gpus": [
|
||||
"0, 57, 127.82, 170.00, 11313",
|
||||
"1, 50, 56.34, 360.00, 15426"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020183.6625977,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9102.78515625,
|
||||
"gpus": [
|
||||
"0, 56, 128.42, 170.00, 11313",
|
||||
"1, 50, 56.00, 360.00, 15428"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020188.6960433,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9059.609375,
|
||||
"gpus": [
|
||||
"0, 58, 131.44, 170.00, 11313",
|
||||
"1, 50, 55.03, 360.00, 15428"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020193.73226,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9090.265625,
|
||||
"gpus": [
|
||||
"0, 54, 111.99, 170.00, 11313",
|
||||
"1, 61, 88.81, 360.00, 15428"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020198.7641065,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9104.57421875,
|
||||
"gpus": [
|
||||
"0, 49, 52.34, 170.00, 11313",
|
||||
"1, 64, 206.57, 360.00, 15428"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793020203.795255,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 2,
|
||||
"host_available_mib": 9094.80859375,
|
||||
"gpus": [
|
||||
"0, 51, 73.36, 170.00, 11319",
|
||||
"1, 55, 106.62, 360.00, 15436"
|
||||
]
|
||||
}
|
||||
],
|
||||
"other_requests_observed": false,
|
||||
"settings_unchanged": true,
|
||||
"worker_configuration_unchanged": true,
|
||||
"finished_at": 1793020205.9556932,
|
||||
"worker_health_after": {
|
||||
"status": "ok",
|
||||
"loaded": true
|
||||
},
|
||||
"worker_request_count_after": 2
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"model": "flash-next-strata-iq3-dual", "messages": [{"role": "user", "content": "Dies ist ausschließlich ein synthetischer Leistungstest. Antworte auf Deutsch. Nutze keine Werkzeuge und führe nichts aus.\nMARKER_ANFANG=ALPHA_314159\nDatensatz 000000: Standort 1859, Messwert 958907022, Status archiviert.\nDatensatz 000001: Standort 3729, Messwert 822529003, Status archiviert.\nDatensatz 000002: Standort 2178, Messwert 982757371, Status archiviert.\nDatensatz 000003: Standort 7963, Messwert 534291314, Status archiviert.\nDatensatz 000004: Standort 8879, Messwert 196204464, Status archiviert.\nDatensatz 000005: Standort 0142, Messwert 993522055, Status archiviert.\nDatensatz 000006: Standort 6562, Messwert 723597885, Status archiviert.\nDatensatz 000007: Standort 5810, Messwert 454616039, Status archiviert.\nDatensatz 000008: Standort 5596, Messwert 306354134, Status archiviert.\nDatensatz 000009: Standort 9977, Messwert 391033440, Status archiviert.\nDatensatz 000010: Standort 8161, Messwert 466806805, Status archiviert.\nDatensatz 000011: Standort 6101, Messwert 156802152, Status archiviert.\nDatensatz 000012: Standort 3583, Messwert 500981047, Status archiviert.\nDatensatz 000013: Standort 8132, Messwert 765122009, Status archiviert.\nDatensatz 000014: Standort 3389, Messwert 632879624, Status archiviert.\nDatensatz 000015: Standort 2114, Messwert 927454259, Status archiviert.\nDatensatz 000016: Standort 6350, Messwert 539266447, Status archiviert.\nDatensatz 000017: Standort 5044, Messwert 333758944, Status archiviert.\nDatensatz 000018: Standort 8597, Messwert 520769510, Status archiviert.\nDatensatz 000019: Standort 7076, Messwert 446363398, Status archiviert.\nDatensatz 000020: Standort 4666, Messwert 175170865, Status archiviert.\nDatensatz 000021: Standort 5542, Messwert 955253653, Status archiviert.\nDatensatz 000022: Standort 6113, Messwert 259270106, Status archiviert.\nDatensatz 000023: Standort 6928, Messwert 445032281, Status archiviert.\nDatensatz 000024: Standort 5032, Messwert 727457268, Status archiviert.\nDatensatz 000025: Standort 7829, Messwert 495685391, Status archiviert.\nDatensatz 000026: Standort 7660, Messwert 462978409, Status archiviert.\nDatensatz 000027: Standort 3244, Messwert 160440185, Status archiviert.\nDatensatz 000028: Standort 2503, Messwert 689378228, Status archiviert.\nDatensatz 000029: Standort 3351, Messwert 705522617, Status archiviert.\nDatensatz 000030: Standort 2550, Messwert 340438826, Status archiviert.\nDatensatz 000031: Standort 7799, Messwert 841168311, Status archiviert.\nDatensatz 000032: Standort 3928, Messwert 910368656, Status archiviert.\nDatensatz 000033: Standort 0995, Messwert 556500195, Status archiviert.\nDatensatz 000034: Standort 6440, Messwert 220332102, Status archiviert.\nDatensatz 000035: Standort 6467, Messwert 432547907, Status archiviert.\nDatensatz 000036: Standort 8763, Messwert 111507472, Status archiviert.\nDatensatz 000037: Standort 8292, Messwert 996169348, Status archiviert.\nDatensatz 000038: Standort 3662, Messwert 173931572, Status archiviert.\nDatensatz 000039: Standort 7415, Messwert 822663194, Status archiviert.\nDatensatz 000040: Standort 2090, Messwert 519768558, Status archiviert.\nDatensatz 000041: Standort 2692, Messwert 159583726, Status archiviert.\nDatensatz 000042: Standort 4575, Messwert 872333764, Status archiviert.\nDatensatz 000043: Standort 4489, Messwert 985013985, Status archiviert.\nDatensatz 000044: Standort 9911, Messwert 793666820, Status archiviert.\nDatensatz 000045: Standort 1655, Messwert 481834347, Status archiviert.\nDatensatz 000046: Standort 1560, Messwert 737061637, Status archiviert.\nDatensatz 000047: Standort 4136, Messwert 416052231, Status archiviert.\nDatensatz 000048: Standort 7563, Messwert 794200368, Status archiviert.\nDatensatz 000049: Standort 1330, Messwert 544325834, Status archiviert.\nDatensatz 000050: Standort 1309, Messwert 418040909, Status archiviert.\nDatensatz 000051: Standort 0168, Messwert 423709156, Status archiviert.\nDatensatz 000052: Standort 8612, Messwert 437597994, Status archiviert.\nDatensatz 000053: Standort 1327, Messwert 711141466, Status archiviert.\nDatensatz 000054: Standort 4375, Messwert 717378018, Status archiviert.\nDatensatz 000055: Standort 9319, Messwert 152084064, Status archiviert.\nDatensatz 000056: Standort 0194, Messwert 638995024, Status archiviert.\nDatensatz 000057: Standort 0943, Messwert 218274771, Status archiviert.\nDatensatz 000058: Standort 5770, Messwert 922435918, Status archiviert.\nDatensatz 000059: Standort 3026, Messwert 580545174, Status archiviert.\nDatensatz 000060: Standort 5774, Messwert 519800356, Status archiviert.\nDatensatz 000061: Standort 8076, Messwert 137831724, Status archiviert.\nDatensatz 000062: Standort 3541, Messwert 189309078, Status archiviert.\nDatensatz 000063: Standort 7277, Messwert 407140000, Status archiviert.\nDatensatz 000064: Standort 9042, Messwert 439058948, Status archiviert.\nDatensatz 000065: Line truncated
|
||||
@@ -0,0 +1,444 @@
|
||||
{
|
||||
"started_at": 1793016444.814756,
|
||||
"transport": "existing native Strata HTTP worker",
|
||||
"model": "flash-next-strata-iq3-dual",
|
||||
"context_window": 262144,
|
||||
"max_output_tokens": 256,
|
||||
"phase": "complete",
|
||||
"error": null,
|
||||
"complete": true,
|
||||
"settings_before": {
|
||||
"profiles.json": "e56a9cab15bed73d6bdd95dec0fe03c1eec636b8a3130e070e06b8b475210f3e",
|
||||
"endpoint.json": "1777010839b4cf905d1d52a76aaec55cc0d2e72fd8634a98dfecf1cc705f9d18",
|
||||
"audio-policy.json": "f48dedea718968c00c0647ca90c1402bdabac9ce600dbeddc495817680527a3f",
|
||||
"cpu-partition.json": "078d9215c41d7beafe42391a6a25c9aa34ad7f5b88ebbf40e2c178123e6611c1",
|
||||
"reasoning-budget.json": "4884a379adf2f888415041b81ef55a01a2c22ef7a41ca1554460f410bec5cf0c"
|
||||
},
|
||||
"gpu_unlock_active": false,
|
||||
"sampling": {
|
||||
"temperature": 0,
|
||||
"top_p": 1,
|
||||
"seed": 42,
|
||||
"reasoning_effort": "none"
|
||||
},
|
||||
"worker_configuration": {
|
||||
"model_name": "flash-next-strata-iq3-dual",
|
||||
"gpu": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"parallel": 2,
|
||||
"layer_split": "16",
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/athena-deck-strata/packs/iq3_xxs",
|
||||
"--native",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/var/lib/deck/strata-runtime/source/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/athena-deck-strata/mtp/rt",
|
||||
"--max-context",
|
||||
"262144",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--vram-reserve-mib",
|
||||
"1024",
|
||||
"--vram-reserve-later-mib",
|
||||
"1024",
|
||||
"--batch-mtp",
|
||||
"--batch-groups",
|
||||
"1",
|
||||
"--pcie-frac",
|
||||
"0.35",
|
||||
"--spec-min-p",
|
||||
"0.70",
|
||||
"--adapt-every",
|
||||
"1",
|
||||
"--adapt-swaps",
|
||||
"80",
|
||||
"--adapt-decay",
|
||||
"0.97",
|
||||
"--host-core",
|
||||
"first",
|
||||
"--pool-cores",
|
||||
"1,2,3",
|
||||
"--pool-workers",
|
||||
"3",
|
||||
"--aux-cpus",
|
||||
"6,7,8,9",
|
||||
"--resident-experts",
|
||||
"--vision"
|
||||
]
|
||||
},
|
||||
"source_commit": "4b9e05a2a806a3fe24f7b2560d98626c37dade35",
|
||||
"updated_at": 1793016604.2999501,
|
||||
"worker_request_count_before": 28,
|
||||
"cache_max_tokens": 262144,
|
||||
"engine": "0.1.51",
|
||||
"planned_input_tokens": 261114,
|
||||
"source_rows": 7250,
|
||||
"request_sha256": "19f935f6b8e34ab4b60586216b54986ee7916e45a9610d825b2a2c90f90191d2",
|
||||
"worker_request_count_before_measurement": 28,
|
||||
"usage": {
|
||||
"prompt_tokens": 261114,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 261370,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 261114,
|
||||
"prompt_ms": 149324.7,
|
||||
"prompt_per_token_ms": 0.572,
|
||||
"prompt_per_second": 1748.6,
|
||||
"predicted_n": 256,
|
||||
"predicted_ms": 4745.1,
|
||||
"predicted_per_token_ms": 18.536,
|
||||
"predicted_per_second": 54.0,
|
||||
"draft_n": 151,
|
||||
"draft_n_accepted": 103
|
||||
},
|
||||
"ttft_s": 149.4779756310163,
|
||||
"wall_s": 154.19397372193635,
|
||||
"finish_reason": "length",
|
||||
"answer": "Die drei angeforderten Marker-Werte sind wie folgt:\n\n1. **MARKER_ANFANG**: ALPHA_314159\n2. **MARKER_MITTE**: BETA_271828\n3. **MARKER_ENDE**: GAMMA_161803\n\nSorgfältige Datensicherung ist eine der fundamentalsten und zugleich kritischsten Disziplinen in der modernen Informationstechnologie und im Datenmanagement. In einer Ära, die durch die allgegenwärtige Digitalisierung geprägt ist, sind Daten nicht nur ein Nebenprodukt von Geschäftsprozessen, sondern das zentrale Rückgrat jeder Organisation, jedes wissenschaftlichen Projekts und jedes persönlichen digitalen Lebens. Die Verluste, die durch unzureichende Sicherungsmaßnahmen entstehen können, reichen von finanziellen Einbußen über den Verlust wertvoller historischer Aufzeichnungen bis hin zu existenziellen Krisen für Unternehmen oder Institutionen. Daher ist es unerlässlich, ein tiefgreifendes Verständnis dafür zu entwickeln, was Datensicherung wirklich bedeutet und wie sie effektiv umgesetzt werden kann.\n\nDer Begriff „Datensicherung“ wird oft missverstanden als bloßes Kopieren von Dateien auf einen externen Speicher. In",
|
||||
"marker_retrieval": {
|
||||
"ALPHA_314159": true,
|
||||
"BETA_271828": true,
|
||||
"GAMMA_161803": true
|
||||
},
|
||||
"resource_samples": [
|
||||
{
|
||||
"at": 1793016450.1530824,
|
||||
"worker_in_flight": 0,
|
||||
"worker_requests": 28,
|
||||
"host_available_mib": 8225.421875,
|
||||
"gpus": [
|
||||
"0, 40, 11.32, 170.00, 11349",
|
||||
"1, 40, 15.08, 360.00, 15496"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016455.1925318,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8419.015625,
|
||||
"gpus": [
|
||||
"0, 49, 97.95, 170.00, 11349",
|
||||
"1, 55, 206.97, 360.00, 15496"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016460.2330763,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8340.8359375,
|
||||
"gpus": [
|
||||
"0, 52, 116.41, 170.00, 11349",
|
||||
"1, 46, 168.01, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016465.266603,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8343.78515625,
|
||||
"gpus": [
|
||||
"0, 53, 122.30, 170.00, 11349",
|
||||
"1, 45, 54.72, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016470.306575,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8263.33984375,
|
||||
"gpus": [
|
||||
"0, 53, 105.87, 170.00, 11349",
|
||||
"1, 57, 107.84, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016475.340064,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8191.8671875,
|
||||
"gpus": [
|
||||
"0, 55, 114.65, 170.00, 11349",
|
||||
"1, 60, 234.51, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016480.3729646,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8194.63671875,
|
||||
"gpus": [
|
||||
"0, 54, 118.73, 170.00, 11349",
|
||||
"1, 48, 140.91, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016485.4084592,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8109.4453125,
|
||||
"gpus": [
|
||||
"0, 56, 124.02, 170.00, 11349",
|
||||
"1, 47, 54.89, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016490.443885,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8126.875,
|
||||
"gpus": [
|
||||
"0, 55, 128.53, 170.00, 11349",
|
||||
"1, 48, 55.66, 360.00, 15498"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016495.4787605,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8098.04296875,
|
||||
"gpus": [
|
||||
"0, 55, 125.43, 170.00, 11349",
|
||||
"1, 47, 54.91, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016500.5198042,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8078.5078125,
|
||||
"gpus": [
|
||||
"0, 55, 103.56, 170.00, 11349",
|
||||
"1, 57, 127.94, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016505.5584736,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8026.82421875,
|
||||
"gpus": [
|
||||
"0, 54, 118.23, 170.00, 11349",
|
||||
"1, 58, 240.03, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016510.5946338,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7998.26171875,
|
||||
"gpus": [
|
||||
"0, 54, 121.36, 170.00, 11349",
|
||||
"1, 53, 230.71, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016515.6303067,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7985.98046875,
|
||||
"gpus": [
|
||||
"0, 57, 128.19, 170.00, 11349",
|
||||
"1, 50, 123.25, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016520.6670842,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7972.328125,
|
||||
"gpus": [
|
||||
"0, 54, 116.31, 170.00, 11349",
|
||||
"1, 49, 55.85, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016525.7042897,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7976.77734375,
|
||||
"gpus": [
|
||||
"0, 54, 120.32, 170.00, 11349",
|
||||
"1, 62, 237.10, 360.00, 15500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016530.7381873,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7977.50390625,
|
||||
"gpus": [
|
||||
"0, 56, 125.86, 170.00, 11349",
|
||||
"1, 50, 160.80, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016535.7742443,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7968.7578125,
|
||||
"gpus": [
|
||||
"0, 55, 124.80, 170.00, 11349",
|
||||
"1, 50, 75.31, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016540.809655,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7954.0,
|
||||
"gpus": [
|
||||
"0, 56, 123.81, 170.00, 11349",
|
||||
"1, 49, 55.97, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016545.8432393,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7957.66796875,
|
||||
"gpus": [
|
||||
"0, 55, 126.92, 170.00, 11349",
|
||||
"1, 49, 55.44, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016550.8843682,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7959.36328125,
|
||||
"gpus": [
|
||||
"0, 56, 127.68, 170.00, 11349",
|
||||
"1, 49, 53.29, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016555.919654,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7971.41015625,
|
||||
"gpus": [
|
||||
"0, 51, 87.36, 170.00, 11349",
|
||||
"1, 60, 114.09, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016560.955625,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7977.890625,
|
||||
"gpus": [
|
||||
"0, 58, 125.25, 170.00, 11349",
|
||||
"1, 49, 50.22, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016565.9914415,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8023.74609375,
|
||||
"gpus": [
|
||||
"0, 56, 126.67, 170.00, 11349",
|
||||
"1, 50, 56.05, 360.00, 15502"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016571.0289142,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8009.12109375,
|
||||
"gpus": [
|
||||
"0, 57, 129.30, 170.00, 11349",
|
||||
"1, 50, 56.00, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016576.0615761,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8023.8125,
|
||||
"gpus": [
|
||||
"0, 56, 129.33, 170.00, 11349",
|
||||
"1, 49, 54.87, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016581.094603,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7992.390625,
|
||||
"gpus": [
|
||||
"0, 55, 129.19, 170.00, 11349",
|
||||
"1, 49, 53.79, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016586.1307626,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7984.32421875,
|
||||
"gpus": [
|
||||
"0, 55, 128.24, 170.00, 11349",
|
||||
"1, 49, 53.90, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016591.1662219,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7977.51953125,
|
||||
"gpus": [
|
||||
"0, 57, 127.87, 170.00, 11349",
|
||||
"1, 50, 54.08, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016596.2038808,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 7974.265625,
|
||||
"gpus": [
|
||||
"0, 55, 122.22, 170.00, 11349",
|
||||
"1, 50, 53.76, 360.00, 15504"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": 1793016601.2423003,
|
||||
"worker_in_flight": 1,
|
||||
"worker_requests": 29,
|
||||
"host_available_mib": 8033.59375,
|
||||
"gpus": [
|
||||
"0, 52, 69.64, 170.00, 11349",
|
||||
"1, 52, 100.63, 360.00, 15504"
|
||||
]
|
||||
}
|
||||
],
|
||||
"other_requests_observed": false,
|
||||
"settings_unchanged": true,
|
||||
"worker_configuration_unchanged": true,
|
||||
"finished_at": 1793016604.2989063,
|
||||
"worker_health_after": {
|
||||
"status": "ok",
|
||||
"loaded": true
|
||||
},
|
||||
"worker_request_count_after": 29
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"kernel": "6.12.107+deb13-amd64",
|
||||
"boot_hashes": {
|
||||
"/etc/default/grub": "c66d2a33a22dcce1d39759640f9d0832b40bf505c0970babf926db852ea0bb0d",
|
||||
"/boot/grub/grub.cfg": "6ba54fc14f0b92d7665faa7fca7418a29c5d0331b8dc12d02d46ca648f106a92",
|
||||
"/boot/initrd.img-6.12.107+deb13-amd64": "08150455bbea5e935b091dbb26252117446bb8d4900a1cfdcb02f94ee648ec17"
|
||||
},
|
||||
"module_loaded": false,
|
||||
"unlock_on_current_cmdline": false,
|
||||
"gpu": [
|
||||
"00000000:04:00.0, NVIDIA GeForce RTX 3060, GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b, 0x250410DE, 615.71.09, 170.00 W",
|
||||
"00000000:08:00.0, NVIDIA GeForce RTX 5080, GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe, 0x2C0210DE, 615.71.09, 360.00 W"
|
||||
],
|
||||
"secureboot": "SecureBoot disabled"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"revision": "af28cbbfd3d922a659227ecfb7369adfd924cf03",
|
||||
"built": true,
|
||||
"activated": false,
|
||||
"installed": false,
|
||||
"files": {
|
||||
"artifacts/gpu_unlock.ko": "36995538703c3b9d1b2cf5a44315aeb8409fa5f0b1f97f3723987b16c9a8dafa",
|
||||
"artifacts/modinfo.txt": "83da32e7ee73e9758b454f0c86505d03b0febb71d48950b87bb3809d08d4343c",
|
||||
"assets/NVIDIA-LICENSE": "c692fb14ad4f499c6aee1b9e144e6905148c420e6225b17cb2937366c1e507ad",
|
||||
"assets/booter_load_ga102.bin": "056cbc064a888f80717726c54d7f64fcd68044d123870c95a74f37f4975dcaa4",
|
||||
"assets/gsp_boot_desc_ga102.bin": "cc5a3fc1f4c47f2fe107b1b68f0176d8a448e6dec84b575e5560ccef5262bf15",
|
||||
"assets/gsp_boot_ga102.bin": "3df651acb174fd5f5561a1996965b192f50c5d763168446ed0d4ead19d895768",
|
||||
"assets/gsp_ga10x.bin": "572373620a37418f24dc16b5031c39338778c3257e48e8408de9a57291b24f3a",
|
||||
"assets/v67-ga102-610.43.03.bin": "2a0aa1f86d0b6afff5214d641d87d46dc98ef06ed908ff05d0ddbad5ffb7e197",
|
||||
"stage/usr/lib/firmware/gpu-unlock/610.43.03/booter_load_ga102.bin": "056cbc064a888f80717726c54d7f64fcd68044d123870c95a74f37f4975dcaa4",
|
||||
"stage/usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin": "cc5a3fc1f4c47f2fe107b1b68f0176d8a448e6dec84b575e5560ccef5262bf15",
|
||||
"stage/usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_ga102.bin": "3df651acb174fd5f5561a1996965b192f50c5d763168446ed0d4ead19d895768",
|
||||
"stage/usr/lib/firmware/gpu-unlock/610.43.03/gsp_ga10x.bin": "572373620a37418f24dc16b5031c39338778c3257e48e8408de9a57291b24f3a",
|
||||
"stage/usr/lib/firmware/gpu-unlock/610.43.03/v67-ga102-610.43.03.bin": "2a0aa1f86d0b6afff5214d641d87d46dc98ef06ed908ff05d0ddbad5ffb7e197",
|
||||
"stage/usr/share/doc/gpu-unlock/README.md": "abc272d68dce130a3de9a72fb7261a30c47e9d8896306985a6a67179fc90c470",
|
||||
"stage/usr/share/licenses/gpu-unlock/CMP40HX-MIT.txt": "75054b6a08e1008c86b6045ab99add2c8fa571987880951a9929f11ee56a7d64",
|
||||
"stage/usr/share/licenses/gpu-unlock/GPL-2.0.txt": "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643",
|
||||
"stage/usr/share/licenses/gpu-unlock/NVIDIA-MIT.txt": "fdeba0dc20cc705443771b5ca293292e3437abb2bb3021b6a0c65f0203b1db91",
|
||||
"stage/usr/share/licenses/gpu-unlock-firmware/NOTICE.md": "56c8d56ca47d705de6c68a62630d42115040ab47f94fb93ca37ba74a428cb875",
|
||||
"stage/usr/share/licenses/gpu-unlock-firmware/NVIDIA-LICENSE": "c692fb14ad4f499c6aee1b9e144e6905148c420e6225b17cb2937366c1e507ad",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/Kbuild": "6ba06e330caec49f2567ff8875467c433e31adf3455085bcd01e0f24dce602e6",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/Makefile": "52d7675e5ced84ad17110b82e20afe89937cfb9c17de2cc3049478afe8946415",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/diagnostic.h": "1e5c397716b0e560d66d72e449186c521782ff4321034652709c370e00844128",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/dkms.conf": "f194c8601aeb9875c2d8fa5f09707ee1cd74563b39edeb98ff883053ee2ca9ba",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/gfw_eval.c": "5a36666290df66edc703611086a36adb148cdb953babf4529d114c9ef098e1b6",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/gfw_eval.h": "8c79837e0b17252365c0b3d7f8edb0dc845a2c94bfd9c165c3b095783fffbe00",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/layout_610.c": "bde52cb4c22a16bb345fef9caaa1c6f15c19c674d6985fde98e9d4c518aca375",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/layout_610.h": "afe45505f455f7af90a9d1920b416301bfb7e4ff1778f4f7e10186084618bb5e",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/main.c": "d66339bbbcc0d4d1e68c0937e551f13a97bb94ebfa6281f5730663a803c6682e",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/prep_610.c": "6ec01fd171f69f41712ec957a05b0bebf747c17d38ddb0b1ad432336ee7c09df",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/prep_610.h": "e17bb535f46d1e4f0f581c7e2655d624541224f90f32743f5285886bac614d5f",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/unlock_610.c": "6ef083b71bdc0358c08d1de92f8c629c94932a2e7aefd2b7959ac23c75b4fd4c",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/unlock_610.h": "9c6d4a30bd24f26b40fe43f5c136dbcf3a6751286532a48c8969c7c69700ef84",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/vbios_610.c": "602a488ea200bbee67e90c600fda89cb6092d17709b314dbdf75b215f4a45253",
|
||||
"stage/usr/src/gpu-unlock-1.0.0/vbios_610.h": "17990fa3a2464dbc1446ef5f349fe1486b39d9edf859ab1d8896857f65b3b7e0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
python3 firmware/fetch_artifacts.py /opt/athena-gpu-unlock-prep-20261026/cache
|
||||
/opt/athena-gpu-unlock-prep-20261026/cache/NVIDIA-kernel-module-source-610.43.03.tar.xz
|
||||
/opt/athena-gpu-unlock-prep-20261026/cache/nvidia-utils-610.43.03-1-x86_64_v3.pkg.tar.zst
|
||||
rm -rf /opt/athena-gpu-unlock-prep-20261026/assets.src
|
||||
mkdir -p /opt/athena-gpu-unlock-prep-20261026/assets.src
|
||||
tar -xf /opt/athena-gpu-unlock-prep-20261026/cache/NVIDIA-kernel-module-source-610.43.03.tar.xz -C /opt/athena-gpu-unlock-prep-20261026/assets.src
|
||||
python3 firmware/generate_v67.py "$(realpath /opt/athena-gpu-unlock-prep-20261026/cache/nvidia-utils-610.43.03-1-x86_64_v3.pkg.tar.zst)" /opt/athena-gpu-unlock-prep-20261026/assets
|
||||
python3 firmware/extract_boot_assets.py /opt/athena-gpu-unlock-prep-20261026/assets.src/NVIDIA-kernel-module-source-610.43.03 /opt/athena-gpu-unlock-prep-20261026/assets
|
||||
GPU_UNLOCK_ASSETS=/opt/athena-gpu-unlock-prep-20261026/assets python3 -m unittest discover -s tests -v
|
||||
test_install_uses_standard_paths (test_packaging.PackageTests.test_install_uses_standard_paths) ... ok
|
||||
test_native_versions_match (test_packaging.PackageTests.test_native_versions_match) ... ok
|
||||
test_pkgbuild_pins_match_manifest (test_packaging.PackageTests.test_pkgbuild_pins_match_manifest) ... ok
|
||||
test_v67_payload_matches_pin (test_packaging.PackageTests.test_v67_payload_matches_pin) ... ok
|
||||
test_components (test_release.ComponentTests.test_components) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 5 tests in 6.838s
|
||||
|
||||
OK
|
||||
make: Entering directory '/opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock'
|
||||
make -C "/lib/modules/6.12.107+deb13-amd64/build" M="/opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock" modules
|
||||
make[1]: Entering directory '/usr/src/linux-headers-6.12.107+deb13-amd64'
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/main.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/gfw_eval.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/prep_610.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/layout_610.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/vbios_610.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/unlock_610.o
|
||||
LD [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/gpu_unlock.o
|
||||
MODPOST /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/Module.symvers
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/gpu_unlock.mod.o
|
||||
CC [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/.module-common.o
|
||||
LD [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/gpu_unlock.ko
|
||||
BTF [M] /opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock/gpu_unlock.ko
|
||||
make[1]: Leaving directory '/usr/src/linux-headers-6.12.107+deb13-amd64'
|
||||
make: Leaving directory '/opt/athena-gpu-unlock-prep-20261026/source/kernel/gpu_unlock'
|
||||
grep -qx 'PACKAGE_VERSION="1.0.0"' kernel/gpu_unlock/dkms.conf
|
||||
grep -q 'MODULE_VERSION("1.0.0")' kernel/gpu_unlock/main.c
|
||||
install -Dm644 -t /opt/athena-gpu-unlock-prep-20261026/stage/usr/src/gpu-unlock-1.0.0 kernel/gpu_unlock/diagnostic.h kernel/gpu_unlock/gfw_eval.c kernel/gpu_unlock/gfw_eval.h kernel/gpu_unlock/layout_610.c kernel/gpu_unlock/layout_610.h kernel/gpu_unlock/main.c kernel/gpu_unlock/prep_610.c kernel/gpu_unlock/prep_610.h kernel/gpu_unlock/unlock_610.c kernel/gpu_unlock/unlock_610.h kernel/gpu_unlock/vbios_610.c kernel/gpu_unlock/vbios_610.h kernel/gpu_unlock/Kbuild kernel/gpu_unlock/Makefile kernel/gpu_unlock/dkms.conf
|
||||
install -Dm644 README.md /opt/athena-gpu-unlock-prep-20261026/stage/usr/share/doc/gpu-unlock/README.md
|
||||
install -Dm644 -t /opt/athena-gpu-unlock-prep-20261026/stage/usr/lib/firmware/gpu-unlock/610.43.03 /opt/athena-gpu-unlock-prep-20261026/assets/booter_load_ga102.bin /opt/athena-gpu-unlock-prep-20261026/assets/gsp_ga10x.bin /opt/athena-gpu-unlock-prep-20261026/assets/gsp_boot_ga102.bin /opt/athena-gpu-unlock-prep-20261026/assets/gsp_boot_desc_ga102.bin /opt/athena-gpu-unlock-prep-20261026/assets/v67-ga102-610.43.03.bin
|
||||
install -Dm644 /opt/athena-gpu-unlock-prep-20261026/assets/NVIDIA-LICENSE /opt/athena-gpu-unlock-prep-20261026/stage/usr/share/licenses/gpu-unlock-firmware/NVIDIA-LICENSE
|
||||
install -Dm644 firmware/NOTICE.md /opt/athena-gpu-unlock-prep-20261026/stage/usr/share/licenses/gpu-unlock-firmware/NOTICE.md
|
||||
install -Dm644 -t /opt/athena-gpu-unlock-prep-20261026/stage/usr/share/licenses/gpu-unlock licenses/GPL-2.0.txt licenses/CMP40HX-MIT.txt licenses/NVIDIA-MIT.txt
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"verified": true,
|
||||
"same_request_sha256": "19f935f6b8e34ab4b60586216b54986ee7916e45a9610d825b2a2c90f90191d2",
|
||||
"input_tokens": 261114,
|
||||
"output_tokens": 256,
|
||||
"cached_input_tokens_each": 0,
|
||||
"before": {
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 261114,
|
||||
"prompt_ms": 149324.7,
|
||||
"prompt_per_token_ms": 0.572,
|
||||
"prompt_per_second": 1748.6,
|
||||
"predicted_n": 256,
|
||||
"predicted_ms": 4745.1,
|
||||
"predicted_per_token_ms": 18.536,
|
||||
"predicted_per_second": 54.0,
|
||||
"draft_n": 151,
|
||||
"draft_n_accepted": 103
|
||||
},
|
||||
"ttft_s": 149.4779756310163,
|
||||
"wall_s": 154.19397372193635
|
||||
},
|
||||
"after": {
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 261114,
|
||||
"prompt_ms": 138065.0,
|
||||
"prompt_per_token_ms": 0.529,
|
||||
"prompt_per_second": 1891.2,
|
||||
"predicted_n": 256,
|
||||
"predicted_ms": 4883.2,
|
||||
"predicted_per_token_ms": 19.075,
|
||||
"predicted_per_second": 52.4,
|
||||
"draft_n": 167,
|
||||
"draft_n_accepted": 117
|
||||
},
|
||||
"ttft_s": 138.22364150299995,
|
||||
"wall_s": 143.08654493699999
|
||||
},
|
||||
"change_percent": {
|
||||
"prefill_rate": 8.155095504975417,
|
||||
"decode_rate": -2.9629629629629672,
|
||||
"wall_time": -7.203542730513446
|
||||
},
|
||||
"limitations": [
|
||||
"One before/after pair separated by physical cold boot; no causal attribution or long-run stability claim.",
|
||||
"No numerical GEMM correctness benchmark; all three synthetic marker checks passed.",
|
||||
"Native worker measurement, not a router throughput or concurrency benchmark."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
filename: /opt/athena-gpu-unlock-prep-20261026/artifacts/gpu_unlock.ko
|
||||
version: 1.0.0
|
||||
description: Ampere pre-driver BF16 unlock
|
||||
license: GPL
|
||||
firmware: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin
|
||||
firmware: gpu-unlock/610.43.03/gsp_boot_ga102.bin
|
||||
firmware: gpu-unlock/610.43.03/gsp_ga10x.bin
|
||||
firmware: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin
|
||||
firmware: gpu-unlock/610.43.03/booter_load_ga102.bin
|
||||
srcversion: 3D7430F7AE4A392FED41006
|
||||
depends:
|
||||
name: gpu_unlock
|
||||
retpoline: Y
|
||||
vermagic: 6.12.107+deb13-amd64 SMP preempt mod_unload modversions
|
||||
parm: targets:"all" or comma-separated PCI addresses of GA102/GA103/GA104/GA106 cards to unlock (charp)
|
||||
parm: resume:Unlock the cards again after resume from suspend, which powers them off (default: on) (bool)
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"checked_at": 1793020123.399952,
|
||||
"boot_id": "e4d645e2-ed47-4bb3-ac60-ffacc9aed449",
|
||||
"module_loaded": true,
|
||||
"targets": "0000:04:00.0",
|
||||
"resume": "N",
|
||||
"unlock_evidence": [
|
||||
"gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel",
|
||||
"pci 0000:04:00.0: gpu_unlock: unlocked"
|
||||
],
|
||||
"nvidia_xid_found": false,
|
||||
"gpus": [
|
||||
"00000000:04:00.0, NVIDIA GeForce RTX 3060, GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b, 615.71.09, 170.00 W",
|
||||
"00000000:08:00.0, NVIDIA GeForce RTX 5080, GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe, 615.71.09, 360.00 W"
|
||||
],
|
||||
"dkms": "gpu-unlock/1.0.0, 6.12.107+deb13-amd64, x86_64: installed",
|
||||
"hardware_unlock_verified": true
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"checks": {
|
||||
"kernel_matches": true,
|
||||
"live_boot_files_unchanged": true,
|
||||
"gpu_identity_driver_power_limits_unchanged": true,
|
||||
"module_not_loaded": true,
|
||||
"no_unlock_in_running_cmdline": true,
|
||||
"no_system_source_installed": true,
|
||||
"no_grub_dropin_installed": true,
|
||||
"no_initramfs_hook_installed": true,
|
||||
"no_early_load_script_installed": true,
|
||||
"no_gpu_unlock_registered_with_dkms": true,
|
||||
"staged_hashes_match": true,
|
||||
"upstream_source_unchanged": true,
|
||||
"compiled_module_matches_kernel": true
|
||||
},
|
||||
"passed": true,
|
||||
"activated": false,
|
||||
"boot_hashes": {
|
||||
"/etc/default/grub": "c66d2a33a22dcce1d39759640f9d0832b40bf505c0970babf926db852ea0bb0d",
|
||||
"/boot/grub/grub.cfg": "6ba54fc14f0b92d7665faa7fca7418a29c5d0331b8dc12d02d46ca648f106a92",
|
||||
"/boot/initrd.img-6.12.107+deb13-amd64": "08150455bbea5e935b091dbb26252117446bb8d4900a1cfdcb02f94ee648ec17"
|
||||
},
|
||||
"gpu": [
|
||||
"00000000:04:00.0, NVIDIA GeForce RTX 3060, GPU-4834d9d7-5b61-3004-1fb3-4ae49d482d4b, 0x250410DE, 615.71.09, 170.00 W",
|
||||
"00000000:08:00.0, NVIDIA GeForce RTX 5080, GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe, 0x2C0210DE, 615.71.09, 360.00 W"
|
||||
],
|
||||
"bad_artifacts": []
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
# Staged only. Explicitly target the RTX 3060, never use targets=all.
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} gpu_unlock.targets=0000:04:00.0 gpu_unlock.resume=0"
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Staged file only. After explicit Go, install as an initramfs-tools hook.
|
||||
set -eu
|
||||
PREREQ=""
|
||||
prereqs() { echo "$PREREQ"; }
|
||||
case "${1:-}" in prereqs) prereqs; exit 0 ;; esac
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
manual_add_modules gpu_unlock
|
||||
for name in booter_load_ga102.bin gsp_ga10x.bin gsp_boot_ga102.bin gsp_boot_desc_ga102.bin v67-ga102-610.43.03.bin; do
|
||||
src="/usr/lib/firmware/gpu-unlock/610.43.03/$name"
|
||||
# copy_file returns 1 when a previous hook already included the same file.
|
||||
[ -e "${DESTDIR}${src}" ] || copy_file firmware "$src"
|
||||
done
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Staged file only. 00- prefix runs ahead of the initramfs udev coldplug script.
|
||||
PREREQ=""
|
||||
prereqs() { echo "$PREREQ"; }
|
||||
case "${1:-}" in prereqs) prereqs; exit 0 ;; esac
|
||||
case " $(cat /proc/cmdline) " in
|
||||
*" gpu_unlock.targets=0000:04:00.0 "*)
|
||||
# Do not unlock again automatically after suspend/resume.
|
||||
modprobe gpu_unlock resume=0 || echo "Athena GPU unlock failed; inspect kernel log." >&2
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,116 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Configure the pinned RTX 3060 unlock for cold boot; never reboot or load it."""
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import platform
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
if sys.argv[1:] != ['--go']:
|
||||
raise SystemExit('Explicit activation Go required; no changes made.')
|
||||
R = pathlib.Path('/opt/athena-gpu-unlock-prep-20261026')
|
||||
REV = 'af28cbbfd3d922a659227ecfb7369adfd924cf03'
|
||||
KERNEL = '6.12.107+deb13-amd64'
|
||||
assert os.geteuid() == 0 and platform.release() == KERNEL
|
||||
assert not pathlib.Path('/sys/module/gpu_unlock').exists()
|
||||
b = json.loads((R/'build-result.json').read_text())
|
||||
assert b['built'] and b['revision'] == REV
|
||||
for relative, expected in b['files'].items():
|
||||
p = (R/relative).resolve(strict=True)
|
||||
assert p.is_relative_to(R) and p.is_file()
|
||||
with p.open('rb') as stream:
|
||||
assert hashlib.file_digest(stream, 'sha256').hexdigest() == expected
|
||||
gpus = subprocess.check_output(['nvidia-smi',
|
||||
'--query-gpu=pci.bus_id,name,uuid,pci.device_id,driver_version,power.limit',
|
||||
'--format=csv,noheader'], text=True).strip().splitlines()
|
||||
assert gpus == json.loads((R/'before.json').read_text())['gpu']
|
||||
assert 'disabled' in subprocess.check_output(['mokutil', '--sb-state'], text=True)
|
||||
assert not pathlib.Path('/usr/src/gpu-unlock-1.0.0').exists()
|
||||
assert not pathlib.Path('/var/lib/dkms/gpu-unlock').exists()
|
||||
hook = pathlib.Path('/etc/initramfs-tools/hooks/athena-gpu-unlock')
|
||||
early = pathlib.Path('/etc/initramfs-tools/scripts/init-top/00-athena-gpu-unlock')
|
||||
grub = pathlib.Path('/etc/default/grub.d/98-athena-gpu-unlock.cfg')
|
||||
for path in (hook, early, grub):
|
||||
assert not path.exists() and not path.is_symlink(), 'Refuse existing boot integration'
|
||||
assert 'gpu_unlock.targets=' not in pathlib.Path('/proc/cmdline').read_text()
|
||||
for p in pathlib.Path('/etc/default/grub.d').glob('*.cfg'):
|
||||
assert 'gpu_unlock.' not in p.read_text(), 'Refuse competing unlock parameters'
|
||||
assert 'gpu_unlock.' not in pathlib.Path('/etc/default/grub').read_text()
|
||||
record = {'started_at': time.time(), 'revision': REV, 'kernel': KERNEL,
|
||||
'target': '0000:04:00.0', 'excluded': '0000:08:00.0',
|
||||
'gpu_before': gpus, 'activated_in_running_kernel': False,
|
||||
'owned_files': [], 'phase': 'installing'}
|
||||
|
||||
|
||||
def save(phase):
|
||||
record['phase'] = phase
|
||||
record['updated_at'] = time.time()
|
||||
(R/'activation-result.json').write_text(json.dumps(record, indent=2)+'\n')
|
||||
print(phase, flush=True)
|
||||
|
||||
|
||||
save('installing_pinned_sources_and_firmware')
|
||||
try:
|
||||
for src in sorted((R/'stage').rglob('*')):
|
||||
if not src.is_file():
|
||||
continue
|
||||
assert not src.is_symlink()
|
||||
dst = pathlib.Path('/')/src.relative_to(R/'stage')
|
||||
assert not dst.exists() and not dst.is_symlink(), f'Refuse existing file: {dst}'
|
||||
dst.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copyfile(src, dst)
|
||||
dst.chmod(0o644)
|
||||
record['owned_files'].append(str(dst))
|
||||
save('building_and_registering_dkms_for_current_kernel')
|
||||
for action in ('add', 'build', 'install'):
|
||||
cmd = ['dkms', action, '-m', 'gpu-unlock', '-v', '1.0.0']
|
||||
if action != 'add':
|
||||
cmd += ['-k', KERNEL]
|
||||
if action == 'build':
|
||||
cmd += ['-j', '1']
|
||||
subprocess.run(cmd, check=True)
|
||||
assert subprocess.check_output(['modinfo', '-F', 'vermagic', 'gpu_unlock'], text=True).split()[0] == KERNEL
|
||||
for source, target, mode in [('initramfs-hook', hook, 0o755),
|
||||
('initramfs-init-top', early, 0o755),
|
||||
('grub-dropin.cfg', grub, 0o644)]:
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copyfile(R/source, target)
|
||||
target.chmod(mode)
|
||||
record['owned_files'].append(str(target))
|
||||
save('regenerating_current_kernel_boot_image')
|
||||
subprocess.run(['update-initramfs', '-u', '-k', KERNEL], check=True)
|
||||
image = '/boot/initrd.img-'+KERNEL
|
||||
listing = subprocess.check_output(['lsinitramfs', image], text=True).splitlines()
|
||||
required = ['usr/lib/modules/'+KERNEL+'/updates/dkms/gpu_unlock.ko',
|
||||
'scripts/init-top/00-athena-gpu-unlock']
|
||||
# DKMS can compress the .ko with zstd or xz; accept the kernel's normal format.
|
||||
assert any(any(line == required[0]+suffix for suffix in ('', '.zst', '.xz')) for line in listing)
|
||||
assert required[1] in listing
|
||||
for name in ('booter_load_ga102.bin', 'gsp_ga10x.bin', 'gsp_boot_ga102.bin',
|
||||
'gsp_boot_desc_ga102.bin', 'v67-ga102-610.43.03.bin'):
|
||||
assert 'usr/lib/firmware/gpu-unlock/610.43.03/'+name in listing
|
||||
record['initramfs_contains_required_unlock_files'] = True
|
||||
subprocess.run(['update-grub'], check=True)
|
||||
lines = pathlib.Path('/boot/grub/grub.cfg').read_text().splitlines()
|
||||
entries = [l.strip() for l in lines if l.strip().startswith('linux') and '/vmlinuz-'+KERNEL in l]
|
||||
normal = [l for l in entries if not {'recovery', 'single'}.intersection(l.split())]
|
||||
recovery = [l for l in entries if {'recovery', 'single'}.intersection(l.split())]
|
||||
assert normal and all('gpu_unlock.targets=0000:04:00.0' in l and
|
||||
'gpu_unlock.resume=0' in l and 'targets=all' not in l for l in normal)
|
||||
assert all('gpu_unlock.targets=' not in l for l in recovery)
|
||||
record['target_kernel_normal_entries_checked'] = len(normal)
|
||||
record['recovery_entries_without_unlock'] = len(recovery)
|
||||
record['gpu_after'] = subprocess.check_output(['nvidia-smi',
|
||||
'--query-gpu=pci.bus_id,name,uuid,pci.device_id,driver_version,power.limit',
|
||||
'--format=csv,noheader'], text=True).strip().splitlines()
|
||||
assert record['gpu_after'] == gpus
|
||||
assert not pathlib.Path('/sys/module/gpu_unlock').exists()
|
||||
save('configured_for_cold_boot_not_yet_hardware_active')
|
||||
except BaseException as exc:
|
||||
record['error_type'] = type(exc).__name__
|
||||
save('installation_incomplete_do_not_reboot')
|
||||
raise
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"state": "planned-not-run",
|
||||
"purpose": "Small matched comparison of stock versus unlocked RTX 3060 in Athena's unchanged two-GPU Strata profile",
|
||||
"activation_requires_new_go": true,
|
||||
"target_gpu_pci": "0000:04:00.0",
|
||||
"excluded_gpu_pci": "0000:08:00.0",
|
||||
"requests_per_arm": 2,
|
||||
"prompt": "Fixed synthetic German input, approximately 4096 tokens; identical bytes across arms; record actual backend token count. Ask for a factual German summary.",
|
||||
"second_request": "Exact repetition to distinguish prefix-cache reuse from first prefill",
|
||||
"sampling": {"temperature": 0, "seed": 42, "max_tokens": 256, "reasoning_effort": "none"},
|
||||
"preserve": ["profile", "weights", "quantization", "GPU order/layer split", "RAM and KV settings", "MTP", "slots", "power limits", "TTS/STT settings"],
|
||||
"metrics": ["prompt total/new/cached tokens", "backend prompt_ms and prompt_per_second", "predicted tokens, predicted_ms and predicted_per_second", "TTFT", "wall time", "temperatures", "power draw and power limits", "GPU initialization errors"],
|
||||
"preconditions": ["maintenance and cold boot explicitly authorized", "physical recovery path confirmed", "active and queued production requests drained", "current kernel/driver/PCI identity and artifact hashes rechecked"],
|
||||
"rules": ["Never run model-issued commands", "No private prompts or responses", "No cache purge", "No driver or voltage changes", "Production requests take priority", "No cloud evaluation", "No VPN access"],
|
||||
"interpretation": "A tiny test is preliminary. A boot changes caches. Do not call matrix-microbenchmark gains a Strata speedup, or tokens divided by wall time a backend decode rate. Numerical correctness needs a dedicated comparison before production acceptance."
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Verify staged files and prove preparation did not change live boot/GPU state."""
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
root = pathlib.Path(sys.argv[1]).resolve(strict=True)
|
||||
before = json.loads((root / 'before.json').read_text())
|
||||
built = json.loads((root / 'build-result.json').read_text())
|
||||
|
||||
|
||||
def digest(path):
|
||||
with pathlib.Path(path).open('rb') as stream:
|
||||
return hashlib.file_digest(stream, 'sha256').hexdigest()
|
||||
|
||||
|
||||
boot = {path: digest(path) for path in before['boot_hashes']}
|
||||
bad_artifacts = []
|
||||
for relative, expected in built['files'].items():
|
||||
path = (root / relative).resolve(strict=True)
|
||||
if not path.is_relative_to(root) or digest(path) != expected:
|
||||
bad_artifacts.append(relative)
|
||||
gpu = subprocess.check_output([
|
||||
'nvidia-smi', '--query-gpu=pci.bus_id,name,uuid,pci.device_id,driver_version,power.limit',
|
||||
'--format=csv,noheader'], text=True).strip().splitlines()
|
||||
checks = {
|
||||
'kernel_matches': platform.release() == before['kernel'],
|
||||
'live_boot_files_unchanged': boot == before['boot_hashes'],
|
||||
'gpu_identity_driver_power_limits_unchanged': gpu == before['gpu'],
|
||||
'module_not_loaded': not pathlib.Path('/sys/module/gpu_unlock').exists(),
|
||||
'no_unlock_in_running_cmdline': not any(
|
||||
p.startswith('gpu_unlock.') for p in pathlib.Path('/proc/cmdline').read_text().split()),
|
||||
'no_system_source_installed': not pathlib.Path('/usr/src/gpu-unlock-1.0.0').exists(),
|
||||
'no_grub_dropin_installed': not pathlib.Path('/etc/default/grub.d/98-athena-gpu-unlock.cfg').exists(),
|
||||
'no_initramfs_hook_installed': not pathlib.Path('/etc/initramfs-tools/hooks/athena-gpu-unlock').exists(),
|
||||
'no_early_load_script_installed': not pathlib.Path('/etc/initramfs-tools/scripts/init-top/00-athena-gpu-unlock').exists(),
|
||||
'no_gpu_unlock_registered_with_dkms': not any(
|
||||
line.startswith('gpu-unlock/') for line in subprocess.check_output(['dkms', 'status'], text=True).splitlines()),
|
||||
'staged_hashes_match': not bad_artifacts,
|
||||
'upstream_source_unchanged': subprocess.run([
|
||||
'git', '-C', str(root/'source'), 'diff', '--quiet', 'HEAD', '--']).returncode == 0,
|
||||
'compiled_module_matches_kernel': subprocess.check_output([
|
||||
'modinfo', '-F', 'vermagic', str(root/'artifacts/gpu_unlock.ko')], text=True).split()[0] == platform.release(),
|
||||
}
|
||||
result = {'checks': checks, 'passed': all(checks.values()), 'activated': False,
|
||||
'boot_hashes': boot, 'gpu': gpu, 'bad_artifacts': bad_artifacts}
|
||||
(root/'verification.json').write_text(json.dumps(result, indent=2)+'\n')
|
||||
print(json.dumps(result, indent=2))
|
||||
sys.exit(0 if result['passed'] else 1)
|
||||
Reference in new issue
Block a user