Repository navigation
feat(colgrep): support AMD GPU indexing in Linux releases - #202
Closed
OmerFarukOruc wants to merge 2 commits into
Closed
OmerFarukOruc wants to merge 2 commits into
OmerFarukOruc wants to merge 2 commits into
Conversation
Stabilize MIGraphX batches and cache compiled programs across indexes. Correct asymmetric integer zero-point arithmetic in the packaged runtime and require that capability for quantized GPU encoding. Respect absolute XDG cache roots while retaining offline legacy cache reuse. Keep CPU clustering and compression and propagate forced GPU errors. Refs: #201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable AMD encoding in the existing Linux x86_64 release (
mkl,cuda,migraphx) with a managed ONNX Runtime. Provider failures propagate under--force-gpu; MIGraphX encoding keeps clustering/compression on CPU. The teardown fix retains the provider mapping and the CLI exits normally.The slowdown investigation found repeated compilation for dynamic shapes. Stable GPU batch rows and a model/shape/device-specific compiled-program cache reuse those programs across processes and cleared indexes. It also found incorrect asymmetric INT8 arithmetic in MIGraphX 7.1.1 (
255 × 1returned-1). The runtime now applies an exact INT32 zero-point correction; unsupported integer forms use CPU fallback. Quantized GPU execution requires the corrected runtime even with caching disabled.Matched INT8 trial on Fedora 44, RX 7900 XTX (
gfx1100), ROCm/MIGraphX 7.1.1; pinned LateOn-Code-edge revision4bcdf5ed93f791259eb130b577a240f753d68dd8. Input/home/oruc/Desktop/workspace/nixos-configremained ata5323f7d1b7d69596b5033af366687a838e11a43, with the same two untracked directories. All three cleared isolated indexes have identical content hashes and metadata: 157 files, 1,053 code units, 91,556 embeddings.--force-cpuCached GPU remains 32.64% slower than CPU here; cold GPU is 25.08× slower. This is one matched trial, with downloads excluded and GPU-only ORT profiling/ROCm sampling. First compilation remains expensive. The five saved programs were unchanged in the cached run. The previous 57× result used incorrect GPU INT8 arithmetic and different input; its timings are superseded, not a valid speedup baseline. The private v1.8.5 baseline is byte-identical to the former installed binary; the install/settings/cache had been removed externally and remain absent.
Both GPU profiles contain 25 MIGraphX inference events;
model_runtotals are 235.935 s cold / 11.912 s cached. Timestampedrocm-smi --showpidscaptures colgrep PIDs 664162 / 693720 during encoding. Managed-cache indexing also exits 0 withORT_DYLIB_PATHunset and records 25 MIGraphX events.Use fresh index/output directories to repeat; the evidence bundle includes the complete CPU/cold-GPU/cached-GPU runner and recorded configuration (
fp32=false, hook modeagent). CPU uses ORT 1.23.0. GPU uses ORT 1.23.1-r4, sourced9b2048791efb5804fe3d53a04b4971256addebf, built against the pinned official ROCm 7.1.1 Ubuntu 22.04 image. Local packaging reused a complete baseline build and rebuilt the provider incrementally. The PR runtime job performs a clean build without publishing; release publication requires its success. No host package change or reboot occurred; Fedora MIGraphX libraries were extracted privately.Validation includes 281 exact integer comparisons across 16 real ORT probes, strict nine-document nearest-self checks in MIGraphX-only and combined builds, forced CPU/old-runtime rejection, real FP32 indexing/querying, and HTTP/checksum/companion/cache failure and offline reuse checks. Identical-tensor CPU/GPU embeddings give cosines 0.999252–0.999572. Combined-feature cargo tests, Clippy, the full Linux CLI E2E suite and normal commit hooks pass.
cargo test -p colgrep -p next-plaid-onnx --features colgrep/mkl,colgrep/cuda,colgrep/migraphx cargo clippy -p colgrep -p next-plaid-onnx --all-targets --features colgrep/mkl,colgrep/cuda,colgrep/migraphx -- -D warningsEvidence bundle with exact rerun commands, profiles, logs, timings and hashes. The exact runtime and checksum are attached to the validation release. No NVIDIA hardware was available. A pre-existing FP32 If/MatMul MIGraphX failure is recorded as a follow-up and is excluded from successful GPU claims.
Hosted CI and CLI E2E passed for
e92888b; the clean runtime build is still running.Refs: #201