Skip to content

Pass 13 model setup evidence

Synthetic data only. The in-tenant model is google/medgemma-4b-it; its local Ollama alias is medgemma-spike:4b. This setup creates a text-only F16 GGUF for the quote-only spike. It does not export weights or patient data.

Sources and pinned inputs

  • Gaming PC: DESKTOP-D249KD4, SSH alias gaming, LAN Ollama endpoint http://10.0.0.7:11434.
  • Existing weights: C:\models\medgemma-4b-it, Hugging Face revision 290cda5eeccbee130f987c4ad74a59ae6f196408 (orchestrator-provided download provenance). They were already present and were not downloaded again.
  • Local config.json reports Gemma3ForConditionalGeneration / model_type: gemma3.
  • llama.cpp converter revision: 5676dfbe01e7ebe0387913680eee0ed39bf4a363, resolved using git ls-remote https://github.com/ggml-org/llama.cpp.git HEAD and checked out detached.
  • Python: explicit C:\Users\AndrewJonesDev\AppData\Local\Programs\Python\Python312\python.exe, version 3.12.10. The default python command was a broken uv trampoline; the explicit executable avoids changing that machine-level configuration.
  • Runtime SDKs observed: .NET 10.0.303 and 10.0.400-preview.0.26322.102.

Google documents MedGemma's Gemma 3 architecture and gated Health AI Developer Foundations license in its model card. The upstream Gemma 3 conversion instructions and Ollama GGUF import instructions inform this setup. No multimodal projector was converted: this release only processes text.

Gaming-PC admission

The fleet listener's http://127.0.0.1:47600/health returned availability.available: true, mode: auto, blockLevel: none. LAN port 47600 timed out, so dispatch ran over SSH on the gaming PC. Ollama's LAN endpoint remains reachable.

A real heavy_cpu admission probe succeeded: job fdf786e6-7108-4d75-8ff9-84f112ba4e59, start 2026-11-13T05:44:34.0341400Z, exit 0. The command was:

& C:/Users/AndrewJonesDev/source/repos/fleet-dispatch/publish/FleetDispatch.exe send --target DESKTOP-D249KD4 --kind pwsh --lane WT-dc65 --job-class heavy_cpu --payload 'Write-Output pass13-availability-accepted' --wait --timeout 30

The send command always waits for a server result; --wait does not detach it. The first conversion/import completed in 7 minutes 10 seconds, under the ten-minute SSH limit. A subsequent Start-Process -WindowStyle Hidden attempt left no persistent sender or result evidence after SSH returned, so subsequent jobs use native fleet-dispatch enqueue and poll artifacts/results. The listener checks gaming/streaming immediately before executing heavy_cpu or heavy_gpu jobs. Its gate is start-only, so the model harness also checks availability before each request. No --force, critical flag, availability override, or direct heavy-job bypass was used.

Reproduction

The exact conversion commands and Modelfile are in Convert-MedGemma.ps1. PowerShell is the Windows operational wrapper; the Python converter is the explicitly requested upstream llama.cpp tool. Application logic remains C#.

scp scripts/spike/Convert-MedGemma.ps1 gaming:C:/models/medgemma-spike/Convert-MedGemma.ps1
# On gaming, invoked over ssh with PowerShell -EncodedCommand:
& C:/Users/AndrewJonesDev/source/repos/fleet-dispatch/publish/FleetDispatch.exe send --target DESKTOP-D249KD4 --kind pwsh --lane WT-dc65 --job-class heavy_cpu --payload-file C:/models/medgemma-spike/Convert-MedGemma.ps1 --timeout 5400

The admitted conversion job 2b3a4c2d-8570-47d5-a4c1-71071ae24581 ran from 2026-11-13T05:45:27.3391751Z to 2026-11-13T05:52:37.7024618Z, exit 0. Conversion dependencies are isolated in C:\models\medgemma-spike\venv; the resolved package list is retained alongside the log. F16 was selected to avoid adding quantization error to the initial guard experiment. This is not a 4-bit benchmark.

Before inference, the template was corrected to match the source chat_template.jinja: prepend a system message to the first user turn, rather than emitting two adjacent user turns. Import-MedGemmaAlias.ps1 imports the final Modelfile as medgemma-spike:4b. The reproducible conversion script includes that same corrected template. The admitted alias job was 5ea666fe-b69c-416e-8463-0aa49a1bef1e:

& C:/Users/AndrewJonesDev/source/repos/fleet-dispatch/publish/FleetDispatch.exe enqueue --targets DESKTOP-D249KD4 --kind pwsh --lane WT-dc65 --job-class heavy_cpu --payload-file C:/models/medgemma-spike/Import-MedGemmaAlias.ps1 --timeout 600

Optional FreeToken comparison

NOT RUN. No FreeToken load success or failure is claimed. Its advertised Gemma 4 support does not establish Gemma 3 / MedGemma support; the required spike uses Ollama/llama.cpp.

Result

Imported and loaded successfully. Final Ollama model digest: 700c01c1b1fd113489ccdfda49be4ab47087a4b2d41c46dd49e54385f46cb723. GGUF length: 7,767,804,192 bytes. GGUF SHA-256: ed29290fd209ab433a0185d65d0b0abff214f4ee494fb218d447614cff9f6be5.

The non-clinical load probe, admitted as heavy_gpu job e64120e4-6177-4bc2-967c-0f80f7835fa7, returned READY through /v1/chat/completions at temperature 0. Wall latency was 15,835 ms including model load; usage was 16 prompt tokens and 3 completion tokens. This single tiny response is a compatibility/load check, not a throughput or p95 estimate. NVIDIA reported 9,440 MiB used / 24,564 MiB total immediately afterward; that is whole-GPU usage, including other processes. See raw response, GPU sample, Ollama loaded-model memory, conversion log, and filtered model digests.

The initial synthetic comparison harness was compiled with .NET SDK 10.0 in Docker, Release, framework-dependent and no apphost, with no compiler warnings. It ran on gaming under admitted heavy_gpu job cc4b5055-efdd-4ff7-b70f-064b86e0ca66, exit 0; Run-LocalModelSpike.ps1 records input assembly/fixture hashes and samples GPU memory every two seconds. Clinical performance and quote precision belong to those separately recorded model harness runs.

docker run --rm -v C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65-spike:/work -w /work mcr.microsoft.com/dotnet/sdk:10.0 dotnet publish tools/LocalModelSpike/LocalModelSpike.csproj --artifacts-path /work/.artifacts/spike/harness-build -o /work/.artifacts/spike/harness-publish -p:UseAppHost=false -c Release
scp .artifacts/spike/harness-publish/* gaming:C:/models/medgemma-spike/harness/
scp data/spike/synthetic-notes.json gaming:C:/models/medgemma-spike/synthetic-notes.json
# On gaming, through ssh:
& C:/Users/AndrewJonesDev/source/repos/fleet-dispatch/publish/FleetDispatch.exe enqueue --targets DESKTOP-D249KD4 --kind pwsh --lane WT-dc65 --job-class heavy_gpu --payload-file C:/models/medgemma-spike/Run-LocalModelSpike.ps1 --timeout 3600

The actual executed binaries and fixture manifest are pinned in run-input-sha256.json. Portable-PDB document hashes from that preserved build are in run-source-provenance.json. They identify the source state at publication, including sources subsequently changed during review; the raw measurements must not be described as a run of a later binary. The document-manifest digest is SHA-256 of sorted path + space + document hash lines joined with LF.

Reviewed rerun

After the gateway hardening and council review, the final harness was published again with zero warnings, using .artifacts/spike/final-harness-build and .artifacts/spike/final-harness-publish in the same publish command. The gaming listener admitted heavy_gpu job 11d6dc73-2bcc-489a-bd61-df4eff3901b4, which invoked Run-LocalModelSpike.ps1 -RunId pass13-reviewed. All 52 calls completed, exit 0. Every committed example artifact is from this reviewed run; the initial artifacts remain in the ignored .artifacts/spike/initial-examples directory.

The final run is recorded in final-run.log, final-run.exit, final-run-gpu.csv, executed input hashes, and final source provenance. All 25 application/harness source-document checksums matched the reviewed source tree. The final library SHA-256 is 9cf167b2d12a87a8ad9239d52ff98fabd74d03d28d9abc19f88cbebf228bfc68; the harness SHA-256 is 414c11cb8bb0061c89a0c2c6e5ec6cc759980702dfb4892709c95f395275bdcd.

GPU telemetry captured 401 samples from 2026-11-13T06:18:09.2992346Z to 2026-11-13T06:31:47.0765262Z; whole-GPU memory peaked at 19,338 MiB. This is a serial workload that swaps models between tiers, so its completion-token throughput and p95 latency include model loading and prompt processing. They are not isolated decoder throughput measurements. The final results and corpus limits are summarized in MEDGEMMA-SPIKE.md.