Make ORT_MIGRAPHX_MODEL_CACHE_PATH unconditional in packaged systemd unit
Without a valid MIGraphX cache dir, ONNX Runtime's MIGraphX EP reads an uninitialized cache path and crashes on the first query rather than just recompiling on every restart -- confirmed by hand while verifying the rocm backend. Previously commented out as an opt-in perf tweak; it's actually required for the rocm backend to work at all, so bakery-installed systems need it set by default. No-op for cpu/npu/cuda backends. Version bump: breadmill 0.2.1 -> 0.2.2.
This commit is contained in:
parent
fdf596e58a
commit
e5922e9c90
3 changed files with 7 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -133,7 +133,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "breadmill"
|
name = "breadmill"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"breadsearch-shared",
|
"breadsearch-shared",
|
||||||
"hex",
|
"hex",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "breadmill"
|
name = "breadmill"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@ After=default.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
# Uncomment if built with --features rocm: persists MIGraphX's compiled-kernel
|
# Required (not just a perf tweak) when backend = "rocm": without a valid
|
||||||
# cache across restarts (each new sequence length otherwise costs a ~60-120s
|
# cache dir, ONNX Runtime's MIGraphX EP reads an uninitialized cache path and
|
||||||
# recompile). See README.md#gpu-backend-notes.
|
# crashes on the first query instead of just recompiling every restart. Inert
|
||||||
#Environment=ORT_MIGRAPHX_MODEL_CACHE_PATH=%h/.cache/breadsearch/migraphx-cache
|
# for cpu/npu/cuda backends. See README.md#gpu-backend-notes.
|
||||||
|
Environment=ORT_MIGRAPHX_MODEL_CACHE_PATH=%h/.cache/breadsearch/migraphx-cache
|
||||||
ExecStart=%h/.cargo/bin/breadmill
|
ExecStart=%h/.cargo/bin/breadmill
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue