Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions xllm/core/common/global_flags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ DEFINE_int32(sleep_time_second,
3,
"The sleep time for worker try to connect to server next time.");

DEFINE_bool(enable_shm,
true,
"Whether to enable shared memory for executing model.");
// --- function call config ---

DEFINE_string(tool_call_parser,
Expand Down
4 changes: 3 additions & 1 deletion xllm/core/common/global_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,6 @@ DECLARE_int64(cache_size_per_token);

DECLARE_int64(buffer_size_per_seq);

DECLARE_bool(enable_beam_search_kernel);
DECLARE_bool(enable_beam_search_kernel);

DECLARE_bool(enable_shm);
3 changes: 3 additions & 0 deletions xllm/core/common/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ class Options {
PROPERTY(bool, enable_offline_inference) = false;
// for offline inference: the path to spawn worker binary
PROPERTY(std::string, spawn_worker_path) = "";

// whether the worker and master are on the same machine.
PROPERTY(bool, is_local) = false;
};

} // namespace xllm
4 changes: 4 additions & 0 deletions xllm/core/distributed_runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cc_library(
remote_worker.h
worker_server.h
worker_service.h
comm_channel.h
shm_channel.h
SRCS
disagg_pd_service.cpp
disagg_pd_service_impl.cpp
Expand All @@ -29,6 +31,8 @@ cc_library(
remote_worker.cpp
worker_server.cpp
worker_service.cpp
comm_channel.cpp
shm_channel.cpp
DEPS
:api_service
:runtime
Expand Down
Loading