Skip to content

Commit a8287d5

Browse files
cquil11hyukjlee
authored andcommitted
fix(agentic): install Mooncake master binary
1 parent bb205f8 commit a8287d5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

benchmarks/single_node/agentic/kimik2.7_fp4_mi355x.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,16 @@ case "$OFFLOAD_MODE" in
235235
cd ..
236236
# Produces a self-contained wheel under mooncake-wheel/dist/.
237237
bash scripts/build_wheel.sh "$MOONCAKE_PYVER"
238-
pip install --force-reinstall mooncake-wheel/dist/*.whl )
238+
pip install --force-reinstall mooncake-wheel/dist/*.whl
239+
240+
# CMake installs the Python package into the user site, which
241+
# shadows the wheel installed by pip. Ensure the CLI wrapper can
242+
# find the native master binary in the package it imports.
243+
MOONCAKE_PACKAGE_DIR=$(python3 -c 'import pathlib, mooncake; print(pathlib.Path(mooncake.__file__).parent)')
244+
install -m 0755 build/mooncake-store/src/mooncake_master \
245+
"$MOONCAKE_PACKAGE_DIR/mooncake_master" )
239246
python3 -c "from mooncake.store import MooncakeDistributedStore" >/dev/null
247+
test -x "$(python3 -c 'import pathlib, mooncake; print(pathlib.Path(mooncake.__file__).parent / "mooncake_master")')"
240248
fi
241249

242250
MOONCAKE_MASTER_PORT=$((PORT + 12000))

0 commit comments

Comments
 (0)