A GPU task manager for Windows, Linux, and WSL: per-process VRAM, GPU activity, and LLM model/KV-cache insights (Windows AMD and NVIDIA).
Python
Add cautious local decision-model hints and document GPU-only scope
Scott Hanselmanb2b318649a2a
diff --git a/README.md b/README.mdindex 67cca9d..06e35ea 100644--- a/README.md+++ b/README.md@@ -8,6 +8,13 @@ with loaded runtimes, model files, and LLM buffer breakdowns.Task Manager says "15 GB used." This tries to answer: *by what? Model weights? KV cache?Your browser? The desktop compositor? And why is so much GPU memory in system RAM?*+**Scope: local GPU workloads, not cloud services.** Decision models, vision, speech, LLM inference,+training/fine-tuning (including Unsloth), graphics, and video all belong here. Visibility varies:+process memory and engine activity are measured; identifying individual models and their work+requires supporting evidence. A PyTorch/CUDA DLL alone cannot identify a model or prove training,+and a mapped file does not prove that model is resident on the GPU or being exercised.+CPU-only, NPU-only, and cloud workloads are out of scope.+> Early, experimental software. Device and process counters are measurements; classifications@@ -170,6 +177,20 @@ reading is NVML's memory-activity percentage, **not measured bandwidth in GB/s**| LM Studio | Mapped files named from its models folder, `/api/v1/models` (falls back to `/api/v0/models`); tested with fixture responses, not yet end to end || Hugging Face cache | `models--org--repo` paths are named `org/repo` || Other AI runtimes | DLL detection, plus model files installed with the app (marked *not proven loaded*) |+| Handy | Local speech workloads are in scope; runtime DLLs/mapped files and installed candidates are inspected. A selected/downloaded speech model alone is not proof of GPU residency or use |+| WinML / local helper processes | GPU-backed execution is in scope; generic process counters and runtime detection only. No WinML-specific model/session or client-to-helper attribution yet |+| Windows Studio Effects | Only any observable GPU portion is in scope. NPU inference is out of scope; do not interpret GPU camera/render activity as proof of model execution |++WinML can select different execution backends; a local helper/service is still **local**, not+cloud-hosted. The GPU counters belong to whichever process holds/uses the GPU resources.+Parent-PID lookup currently helps find Ollama/LM Studio APIs; it is not a general cross-process+ownership graph for shared Windows services.++GPU-backed WinML and Studio Effects paths have **not been validated on a Copilot+ PC**. A future+hardware check should compare idle versus active workload samples, record the actual GPU adapter+and resource-owning PID (including helpers), and verify the execution provider using runtime+diagnostics. Match any reported model/session to that PID before claiming attribution. If execution+is CPU/NPU-only, record it as out of scope rather than a missing GPU model. No NPU collector is planned.### How models are identified@@ -183,14 +204,31 @@ Every model row shows its **evidence**, strongest first:| `installed` | Found in the app's install or data folder; nothing proves it is loaded |Two sources including `api` or `mapped` show as **confirmed**. Model-store folders only supply a-friendly name. The model *kind* comes from GGUF header keys, not filenames: `decision.type` marks a+friendly name. The authoritative model *kind* comes from GGUF header keys: `decision.type` marks adecision model (for example [Laya](https://huggingface.co/ggml-org/Laya-GGUF)), `pooling_type`an embedding model or reranker, `stt.*` a speech model, and a causal model with layers and atrained context an LLM. llama-server's `/v1/models` `output_modalities` (`text`, `decisions`)confirms it. Non-causal encoders such as Laya allocate no KV cache, so none is estimated.+When a file lacks specific kind metadata, known local decision-model names (`openjev`, `laya`,+`julia-1`, `lev`, `kev`) supply a **likely decision model (name)** hint. Matching uses delimited+names in the filename, immediate model folder, or resolved store model name, not arbitrary path+substrings, publishers, or Ollama tags. The process category is `decision?`; specific GGUF kinds+take precedence. Hints do not change loading evidence, causal/KV calculations, or installed-candidate+status. JSON preserves the header-derived `kind` separately from `kind_hint` and `kind_label`.++For example, [ggml-org/OpenJev-GGUF](https://huggingface.co/ggml-org/OpenJev-GGUF) includes+`qwen35.decision.type=openjev`; the inspected community+[openjev/openjev-GGUF](https://huggingface.co/openjev/openjev-GGUF) Q4_K_M header lacks that key and+uses the generic internal name `Snapshot_Cfg`, so its filename or store name supplies only a hint.+Neither a type hint nor an API/file match proves which model produced the process's GPU activity.+Some runtimes (ONNX Runtime, whisper.cpp) read a model into memory and close the file. Windows thenhas no record of which file is loaded, so the app's installed models are listed as candidates only.+For Handy, the configured `selected_model` can refer to a different model in a separate cache;+the current installed-folder fallback does not read that setting. Even reading it would establish+selection, not current GPU residency or execution. Do not assume the largest installed speech+model is the one in use.Identification is designed to stay cheap. Measured on one Windows machine:diff --git a/src/gputaskman/app.py b/src/gputaskman/app.pyindex ca9e3bf..8ff3204 100644--- a/src/gputaskman/app.py+++ b/src/gputaskman/app.py@@ -21,7 +21,8 @@ from .collector import Collector, ProcRow, Snapshotfrom .llm import gbKIND_STYLE = {- "LLM": "bold magenta", "decision": "bold orchid", "embedding": "plum2", "speech": "light_sky_blue1",+ "LLM": "bold magenta", "decision": "bold orchid", "decision?": "orchid",+ "embedding": "plum2", "speech": "light_sky_blue1","AI": "medium_purple1", "compute": "orange3", "3D/game": "green3","video": "yellow", "browser": "dodger_blue2", "app": "cyan", "compositor": "grey50","kernel": "grey50", "system": "grey50",@@ -64,6 +65,12 @@ HELP_MD = """\(Windows shows the file mapped into the process right now), `cmdline` (a launch argument only).Two sources, including `api` or `mapped`, is shown as *confirmed*.+**Local workloads only:** inference, decision models, vision, speech, training, graphics and video.+Cloud-hosted models are outside this monitor's scope. DLLs identify runtimes, not models or tasks.+`decision?` / *likely decision model (name)* is a filename or model-folder hint when a specific+GGUF kind is missing. It does not confirm the kind, GPU residency, or execution. Installed+candidates remain unproven; engine activity is measured per process, not per model.+**Why does nvidia-smi say N/A?** GeForce cards on Windows run in *WDDM* mode: Windows, not theNVIDIA driver, owns video memory, so NVML can't attribute it to processes. The Windows counters can.@@ -333,14 +340,14 @@ class GpuTaskManager(App):mt.add_column(col)for i, g in enumerate(v.models):f = v.files[i] if i < len(v.files) else None- kind = g.kind + (f" ({g.decision_type})" if g.decision_type else "")- mt.add_row(Text(kind, style="magenta"), v.label(i), g.arch, g.params_label, g.quant,+ mt.add_row(Text(v.kind_label(i), style="magenta"), v.label(i), g.arch, g.params_label, g.quant,str(g.n_layers or ""), f"{g.ctx_train:,}" if g.ctx_train else "",gb(g.gpu_weight_bytes()), Text(f.evidence if f else "", style="green"),Text(os.path.basename(g.path), style="grey50", overflow="ellipsis"))out.append(mt)for f in v.other_files:- out.append(Text(f"file: {f.path} ({gb(f.size)})", style="grey62"))+ kind = f", {f.kind_label}" if f.kind_label else ""+ out.append(Text(f"file: {f.store_name or f.path} ({gb(f.size)}, {f.evidence}{kind})", style="grey62"))if v.server:sv = v.serverst = Text.assemble(("server ", "bold"), (f"{sv.kind} {sv.url}", "cyan"))@@ -361,12 +368,14 @@ class GpuTaskManager(App):else:out.append(Text(EXPLAIN.get(r.kind, ""), style="grey70"))for m in r.detail.models:- out.append(Text(f"file: {m.store_name or m.path} ({gb(m.size)}, {m.evidence})", style="magenta"))+ kind = f", {m.kind_label}" if m.kind_label else ""+ out.append(Text(f"file: {m.store_name or m.path} ({gb(m.size)}, {m.evidence}{kind})", style="magenta"))if r.detail.candidates:- out.append(Text("This runtime read its model into memory and closed the file, so Windows cannot show "- "which one is loaded. Model files installed with this app:", style="grey70"))+ out.append(Text("No mapped model file was observed. Some runtimes read then close model files. "+ "Installed candidates (not proven loaded):", style="grey70"))for m in r.detail.candidates:- out.append(Text(f" {m.store_name or m.path} ({gb(m.size)})", style="grey62"))+ kind = f", {m.kind_label}" if m.kind_label else ""+ out.append(Text(f" {m.store_name or m.path} ({gb(m.size)}{kind})", style="grey62"))if r.detail.ports:out.append(Text("listening: " + ", ".join(map(str, r.detail.ports[:8])), style="grey50"))if r.detail.cmdline:diff --git a/src/gputaskman/collector.py b/src/gputaskman/collector.pyindex a3a2f81..7e47588 100644--- a/src/gputaskman/collector.py+++ b/src/gputaskman/collector.py@@ -42,10 +42,12 @@ class ProcRow:parts.append(f"{self.llm.label(i)} {g.params_label} {g.quant}")return ", ".join(parts)if self.detail.models:- return ", ".join(m.store_name or os.path.basename(m.path) for m in self.detail.models[:2])+ return ", ".join((m.store_name or os.path.basename(m.path)) ++ (f" ({m.kind_label})" if m.kind_hint else "") for m in self.detail.models[:2])if self.detail.candidates:return "installed (unproven): " + ", ".join(- f"{m.store_name or os.path.basename(m.path)} {gb(m.size)}" for m in self.detail.candidates[:2])+ f"{m.store_name or os.path.basename(m.path)} {gb(m.size)}" ++ (f" ({m.kind_label})" if m.kind_hint else "") for m in self.detail.candidates[:2])return {"compositor": "desktop back buffers + composed frames","kernel": "driver/kernel allocations",diff --git a/src/gputaskman/llm.py b/src/gputaskman/llm.pyindex 4968221..09c0a57 100644--- a/src/gputaskman/llm.py+++ b/src/gputaskman/llm.py@@ -282,8 +282,17 @@ class LlmView:"""Best human name for models[i]: model-store name, else GGUF basename/name."""f = self.files[i] if i < len(self.files) else Noneg = self.models[i]+ if f and f.kind_hint:+ return f.store_name or os.path.basename(f.path)return (f.store_name if f and f.store_name else None) or g.metadata.get("general.basename") or g.name+ def kind_label(self, i: int) -> str:+ f = self.files[i] if i < len(self.files) else None+ g = self.models[i]+ if f and f.kind_hint:+ return f.kind_label+ return g.kind + (f" ({g.decision_type})" if g.decision_type else "")+def gb(n: float) -> str:if abs(n) >= 1 << 30:diff --git a/src/gputaskman/procinfo.py b/src/gputaskman/procinfo.pyindex b0ec9e8..2302ed1 100644--- a/src/gputaskman/procinfo.py+++ b/src/gputaskman/procinfo.py@@ -41,7 +41,8 @@ LLM_NAMES = ("llama-", "llama.", "ollama", "lm studio", "lmstudio", "llmster", "# GGUF file kind -> process kind, in display priority orderMODEL_KINDS = {"LLM": "LLM", "decision model": "decision", "embedding model": "embedding","reranker": "embedding", "speech model": "speech"}-AI_KINDS = {"LLM", "decision", "embedding", "speech", "AI"}+AI_KINDS = {"LLM", "decision", "decision?", "embedding", "speech", "AI"}+_DECISION_NAME = re.compile(r"(?<![a-z0-9])(?:openjev|laya|julia-1|lev|kev)(?![a-z0-9])", re.I)MiB = 1 << 20INSTALLED_TTL = 300.0_SKIP_DIRS = {"ebwebview", "cache", "code cache", "gpucache", "node_modules", "logs", "crashpad", "locales", "__pycache__"}@@ -57,6 +58,11 @@ class MappedModel:sources: list[str] = field(default_factory=lambda: ["mapped"]) # mapped | cmdline | api | installedstore_name: str | None = None # e.g. "qwen3:14b" from an Ollama manifestkind: str = "" # GGUF kind: LLM, decision model, embedding model, ...+ kind_hint: str = "" # name-based suggestion only; never changes loading evidence or GGUF math++ @property+ def kind_label(self) -> str:+ return f"likely {self.kind_hint} (name)" if self.kind_hint else self.kind@propertydef evidence(self) -> str:@@ -120,7 +126,16 @@ def _is_model_file(ext: str, size: int, gg: bool, store: str | None) -> bool:def make_model(path: str, size: int, resident: int, gg: bool, source: str, store: str | None = None) -> MappedModel:g = read_gguf(path) if gg else Nonekind = g.kind if g is not None and not g.error else ""- return MappedModel(path, size, resident, gg, [source], store if store is not None else store_name(path), kind)+ store = store if store is not None else store_name(path)+ hint = _name_kind_hint(path, store) if kind in ("", "model", "LLM") else ""+ return MappedModel(path, size, resident, gg, [source], store, kind, hint)+++def _name_kind_hint(path: str, store: str | None) -> str:+ names = [os.path.basename(path), os.path.basename(os.path.dirname(path))]+ # Match the model name, not a publisher, user directory, or Ollama tag.+ names += [name.rsplit("/", 1)[-1].split(":", 1)[0] for name in (store or "").split(", ")]+ return "decision model" if any(_DECISION_NAME.search(name) for name in names) else ""def _walk(root: str, depth: int, out: list[tuple[str, int]], budget: list[int]) -> None:@@ -181,7 +196,7 @@ def installed_models(exe: str, now: float | None = None) -> list[MappedModel]:path, size = group[0]found.append(make_model(path, size, 0, path.lower().endswith(".gguf") and is_gguf(path), "installed"))else: # several files (encoder + decoder, shards): name it by the folder- found.append(MappedModel(folder, sum(s for _, s in group), 0, False, ["installed"], store_name(group[0][0])))+ found.append(make_model(folder, sum(s for _, s in group), 0, False, "installed", store_name(group[0][0])))found = sorted(found, key=lambda m: -m.size)[:6]_installed[key] = (now, found)return found@@ -324,10 +339,12 @@ def classify(d: ProcDetail, engines: dict[str, float]) -> str:return "compositor"if n in ("csrss.exe", "winlogon.exe", "lsass.exe", "svchost.exe"):return "system"- kinds = {MODEL_KINDS[m.kind] for m in d.models if m.kind in MODEL_KINDS}+ kinds = {MODEL_KINDS[m.kind] for m in d.models if m.kind in MODEL_KINDS and not m.kind_hint}for k in ("LLM", "decision", "embedding", "speech"):if k in kinds:return k+ if any(m.kind_hint == "decision model" for m in d.models):+ return "decision?"if "llama.cpp" in d.runtimes or n.startswith(LLM_NAMES):return "LLM"video = engines.get("decode", 0) + engines.get("encode", 0) > 1diff --git a/src/gputaskman/report.py b/src/gputaskman/report.pyindex 5978bed..caa04f5 100644--- a/src/gputaskman/report.py+++ b/src/gputaskman/report.py@@ -26,6 +26,8 @@ def to_dict(s: Snapshot) -> dict:if p.llm:item["llm"] = {"models": [{"path": g.path, "name": g.name, "label": p.llm.label(i), "arch": g.arch, "kind": g.kind,+ "kind_label": p.llm.kind_label(i),+ "kind_hint": p.llm.files[i].kind_hint if i < len(p.llm.files) else "","decision_type": g.decision_type, "params": g.n_params,"quant": g.quant, "layers": g.n_layers, "ctx_train": g.ctx_train,"gpu_weight_bytes": g.gpu_weight_bytes(),@@ -67,10 +69,13 @@ def to_text(s: Snapshot, limit: int = 30) -> str:out.append("")out.append(f"== {p.name} ({p.pid}) VRAM {gb(p.gpu.dedicated)}")for i, g in enumerate(p.llm.models):- kind = g.kind + (f" ({g.decision_type})" if g.decision_type else "")+ kind = p.llm.kind_label(i)ev = p.llm.files[i].evidence if i < len(p.llm.files) else ""out.append(f" {kind}: {p.llm.label(i)} [{g.arch}, {g.params_label} params, {g.quant}, {g.n_layers} layers, "f"ctx_train {g.ctx_train}] {os.path.basename(g.path)} evidence: {ev}")+ for f in p.llm.other_files:+ kind = f", {f.kind_label}" if f.kind_label else ""+ out.append(f" file: {f.store_name or f.path} ({gb(f.size)}{kind}) evidence: {f.evidence}")for seg in p.llm.segments:out.append(f" {gb(seg.bytes):>9} {seg.label}{'' if seg.exact else ''}")if p.llm.server:diff --git a/tests/test_core.py b/tests/test_core.pyindex 37e1283..2bae915 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -6,6 +6,7 @@ import jsonimport osimport tempfileimport unittest+import xml.etree.ElementTree as ETfrom pathlib import Pathfrom unittest.mock import patch@@ -16,7 +17,8 @@ from gputaskman.gguf import GgufInfo, read_gguffrom gputaskman.llm import (LlmView, ServerInfo, build_view, is_gpu_device, llama_server_models, lmstudio_models,parse_flags, parse_load_log, probe_server)from gputaskman.pdh import GpuCounters, ProcGpu-from gputaskman.procinfo import MappedModel, ProcDetail, ProcInspector, _is_model_file, classify, installed_models+from gputaskman.procinfo import (AI_KINDS, MappedModel, ProcDetail, ProcInspector, _is_model_file, classify,+ installed_models, make_model)from gputaskman.report import to_dict, to_textfrom gputaskman.stores import store_namefrom tools.capture_screenshots import for_publication@@ -172,6 +174,106 @@ LAYA = dict(block_count=30, context_length=8192, **{"decision.type": "laya", "atclass IdentityTests(unittest.TestCase):+ def test_decision_name_hints_use_model_names_not_substrings(self):+ matches = [+ (r"C:\models\OpenJev-Q4_K_M.gguf", None),+ (r"C:\models\Laya-Q8_0.gguf", None),+ (r"C:\models\julia-1.gguf", None),+ (r"C:\models\LEV-Q4_K_M.gguf", None),+ (r"C:\models\kev.gguf", None),+ (r"C:\models\OpenJev\model.safetensors", None),+ (r"C:\models\blob", "ggml-org/OpenJev-GGUF"),+ (r"C:\models\blob", "openjev:latest"),+ (r"C:\models\blob", "qwen3:14b, openjev:latest"),+ ]+ misses = [+ (r"C:\models\clever.gguf", None),+ (r"C:\models\kevin.gguf", None),+ (r"C:\models\openjevish.gguf", None),+ (r"C:\Users\laya\models\qwen.gguf", None),+ (r"C:\models\model.gguf", "openjev/qwen3"),+ (r"C:\models\model.gguf", "qwen3:openjev"),+ (r"C:\models\model.gguf", "unsloth/Qwen3-GGUF"),+ (r"C:\models\jev.gguf", None),+ ]+ for cases, expected in ((matches, "decision model"), (misses, "")):+ for path, store in cases:+ with self.subTest(path=path, store=store), \+ patch("gputaskman.procinfo.store_name", return_value=store):+ m = make_model(path, 1000, 0, False, "mapped", store)+ self.assertEqual(m.kind_hint, expected)+ self.assertEqual(m.sources, ["mapped"])+ self.assertEqual(m.evidence, "in use (mapped)")++ def test_specific_header_kinds_override_name_hints(self):+ kinds = [+ gguf("modern-bert", **LAYA), gguf("clip"), gguf("bert", pooling_type=1),+ gguf("bert", pooling_type=4), gguf("parakeet", **{"stt.variant": "tdt"}),+ gguf("qwen3", **{"general.type": "adapter"}),+ ]+ for g in kinds:+ with self.subTest(kind=g.kind), patch("gputaskman.procinfo.read_gguf", return_value=g):+ m = make_model("OpenJev.gguf", 1000, 0, True, "mapped", "openjev/openjev-GGUF")+ self.assertEqual(m.kind, g.kind)+ self.assertEqual(m.kind_hint, "")+ self.assertEqual(m.kind_label, g.kind)++ def test_openjev_hint_does_not_change_header_kv_or_loading_evidence(self):+ g = gguf("qwen35", block_count=2, context_length=4096, **{+ "general.name": "Snapshot_Cfg", "attention.head_count": 4,+ "attention.head_count_kv": 2, "embedding_length": 16})+ with patch("gputaskman.procinfo.read_gguf", return_value=g):+ m = make_model("OpenJev-Q4_K_M.gguf", 1000, 0, True, "mapped", "")+ d = ProcDetail(10, "llama-server.exe", models=[m])+ self.assertEqual(classify(d, {}), "decision?")+ self.assertIn("decision?", AI_KINDS)+ self.assertEqual(m.kind, "LLM")+ self.assertEqual(m.kind_label, "likely decision model (name)")+ server = ServerInfo("llama-server", "http://127.0.0.1:1", n_ctx=4, model_path=m.path)+ with patch("gputaskman.llm.read_gguf", return_value=g):+ v = build_view(d, 1000, 0, server)+ self.assertEqual(v.label(0), "OpenJev-Q4_K_M.gguf")+ self.assertEqual(v.kind_label(0), "likely decision model (name)")+ self.assertEqual(v.files[0].evidence, "confirmed (api+mapped)")+ self.assertEqual(m.sources, ["mapped"])+ self.assertEqual(g.kind, "LLM")+ self.assertIsNone(g.decision_type)+ self.assertEqual(v.kv_per_token, 64)+ self.assertTrue(any(s.kind == "kv" for s in v.segments))+ self.assertFalse(any("Non-causal" in n for n in v.notes))+ s = snapshot()+ s.procs[0] = ProcRow(10, d.name, classify(d, {}), ProcGpu(dedicated=1000), d, v)+ data = to_dict(s)["processes"][0]+ self.assertEqual(data["kind"], "decision?")+ self.assertEqual(data["model_files"][0]["kind_hint"], "decision model")+ self.assertEqual(data["llm"]["models"][0]["kind"], "LLM")+ self.assertEqual(data["llm"]["models"][0]["kind_hint"], "decision model")+ self.assertEqual(data["llm"]["models"][0]["kind_label"], "likely decision model (name)")+ self.assertIn("likely decision model (name)", to_text(s))+ self.assertIn("confirmed (api+mapped)", to_text(s))++ def test_installed_kind_hints_do_not_classify_the_process(self):+ m = make_model("OpenJev.safetensors", 1000, 0, False, "installed", "")+ d = ProcDetail(10, "python.exe", runtimes=["PyTorch"], candidates=[m])+ self.assertEqual(m.kind_label, "likely decision model (name)")+ self.assertEqual(m.evidence, "installed, not proven loaded")+ self.assertEqual(classify(d, {}), "AI")+ row = ProcRow(10, d.name, classify(d, {}), ProcGpu(), d)+ self.assertIn("installed (unproven)", row.inside)+ self.assertIn("likely decision model (name)", row.inside)++ def test_non_gguf_hints_are_visible_in_reports(self):+ m = make_model("OpenJev.safetensors", 1000, 0, False, "mapped", "")+ d = ProcDetail(10, "python.exe", runtimes=["PyTorch"], models=[m])+ v = build_view(d, 1000, 0, None)+ s = snapshot()+ s.procs[0] = ProcRow(10, d.name, classify(d, {}), ProcGpu(dedicated=1000), d, v)+ self.assertEqual(v.models, [])+ self.assertEqual(v.other_files, [m])+ self.assertIn("likely decision model (name)", s.procs[0].inside)+ self.assertIn("likely decision model (name)", to_text(s))+ self.assertEqual(to_dict(s)["processes"][0]["model_files"][0]["kind_hint"], "decision model")+def test_gguf_kinds_come_from_header_keys(self):cases = {"LLM": gguf("qwen3", block_count=28, context_length=40960),@@ -307,6 +409,27 @@ class IdentityTests(unittest.TestCase):class UiTests(unittest.IsolatedAsyncioTestCase):+ async def test_likely_kind_is_explicit_in_process_and_inspector(self):+ g = gguf("qwen35", block_count=2, context_length=4096, **{"general.name": "Snapshot_Cfg"})+ with patch.object(GpuTaskManager, "poll"):+ app = GpuTaskManager()+ async with app.run_test(size=(240, 50)) as pilot:+ for ext in ("gguf", "safetensors"):+ with self.subTest(format=ext):+ with patch("gputaskman.procinfo.read_gguf", return_value=g):+ m = make_model(f"OpenJev.{ext}", 1000, 0, ext == "gguf", "mapped", "")+ d = ProcDetail(10, "llama-server.exe", models=[m])+ with patch("gputaskman.llm.read_gguf", return_value=g):+ v = build_view(d, GiB, 0, None)+ s = snapshot()+ s.procs[0] = ProcRow(10, d.name, classify(d, {}), ProcGpu(dedicated=GiB), d, v)+ app.apply(s)+ await pilot.pause()+ self.assertEqual(app.query_one("#procs").get_row("10")[2].plain, "decision?")+ text = " ".join(ET.fromstring(app.export_screenshot()).itertext()).replace("\u00a0", " ")+ self.assertIn("likely decision model (name)", text)+ self.assertIn("in use (mapped)", text)+async def test_navigation_sort_pause_and_help(self):with patch.object(GpuTaskManager, "poll"):app = GpuTaskManager()