********************** PowerShell transcript start Start time: 20261112234527 Username: DESKTOP-D249KD4\AndrewJonesDev RunAs User: DESKTOP-D249KD4\AndrewJonesDev Configuration Name: Machine: DESKTOP-D249KD4 (Microsoft Windows NT 10.0.26200.0) Host Application: C:\Program Files\PowerShell\7\pwsh.dll -NoProfile -ExecutionPolicy Bypass -Command $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $taskRoot = 'C:\models\medgemma-spike' $converterRoot = Join-Path $taskRoot 'llama.cpp' $python = 'C:\Users\AndrewJonesDev\AppData\Local\Programs\Python\Python312\python.exe' $revision = '5676dfbe01e7ebe0387913680eee0ed39bf4a363' New-Item -ItemType Directory -Force $taskRoot | Out-Null Start-Transcript -Path (Join-Path $taskRoot 'conversion.log') -Append try { Write-Output "Started UTC: $([DateTime]::UtcNow.ToString('o'))" if (-not (Test-Path (Join-Path $converterRoot '.git'))) { git clone --filter=blob:none --no-checkout https://github.com/ggml-org/llama.cpp.git $converterRoot if ($LASTEXITCODE -ne 0) { throw 'llama.cpp clone failed.' } } git -C $converterRoot checkout --detach $revision if ($LASTEXITCODE -ne 0) { throw 'Pinned llama.cpp checkout failed.' } git -C $converterRoot rev-parse HEAD & $python -m venv (Join-Path $taskRoot 'venv') if ($LASTEXITCODE -ne 0) { throw 'Python virtual environment creation failed.' } $venvPython = Join-Path $taskRoot 'venv\Scripts\python.exe' & $venvPython -m pip install -r (Join-Path $converterRoot 'requirements\requirements-convert_hf_to_gguf.txt') if ($LASTEXITCODE -ne 0) { throw 'Converter dependencies installation failed.' } & $venvPython -m pip freeze | Set-Content (Join-Path $taskRoot 'python-packages.txt') & $venvPython (Join-Path $converterRoot 'convert_hf_to_gguf.py') 'C:\models\medgemma-4b-it' --outfile (Join-Path $taskRoot 'medgemma-4b-it-f16.gguf') --outtype f16 if ($LASTEXITCODE -ne 0) { throw 'GGUF conversion failed.' } Get-FileHash (Join-Path $taskRoot 'medgemma-4b-it-f16.gguf') -Algorithm SHA256 | Format-List | Out-String | Tee-Object -FilePath (Join-Path $taskRoot 'gguf-sha256.txt') @' FROM C:\models\medgemma-spike\medgemma-4b-it-f16.gguf PARAMETER temperature 0 PARAMETER num_ctx 4096 PARAMETER stop "" PARAMETER stop "" TEMPLATE """{{- range .Messages }}{{- if eq .Role "user" }}user {{ .Content }} {{- else if eq .Role "assistant" }}model {{ .Content }} {{- else if eq .Role "system" }}user {{ .Content }} {{- end }}{{- end }}model """ '@ | Set-Content -Encoding UTF8 (Join-Path $taskRoot 'Modelfile') & 'C:\Users\AndrewJonesDev\AppData\Local\Programs\Ollama\ollama.exe' create medgemma-4b-it:spike-f16 -f (Join-Path $taskRoot 'Modelfile') if ($LASTEXITCODE -ne 0) { throw 'Ollama model import failed.' } Invoke-RestMethod http://127.0.0.1:11434/api/tags | ConvertTo-Json -Depth 8 | Set-Content (Join-Path $taskRoot 'ollama-tags.json') Write-Output "Finished UTC: $([DateTime]::UtcNow.ToString('o'))" Set-Content (Join-Path $taskRoot 'conversion.exit') '0' } catch { $_ | Out-String | Write-Output Set-Content (Join-Path $taskRoot 'conversion.exit') '1' throw } finally { Stop-Transcript } Process ID: 69152 PSVersion: 7.6.9 PSEdition: Core GitCommitId: 7.6.9 OS: Microsoft Windows 10.0.26200 Platform: Win32NT PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1, 6.0, 7.0 PSRemotingProtocolVersion: 2.4 SerializationVersion: 1.1.0.1 WSManStackVersion: 3.0 ********************** Transcript started, output file is C:\models\medgemma-spike\conversion.log Started UTC: 2026-11-13T05:45:27.6399139Z Algorithm : SHA256 Hash : ED29290FD209AB433A0185D65D0B0ABFF214F4EE494FB218D447614CFF9F6BE5 Path : C:\models\medgemma-spike\medgemma-4b-it-f16.gguf Finished UTC: 2026-11-13T05:52:37.4565945Z ********************** PowerShell transcript end End time: 20261112235237 **********************