Skip to content

Commit

Permalink
require at least four cpu cores
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazhihao committed Jan 13, 2024
1 parent 240c532 commit 0b3289c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/inference_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,12 @@ void FFModel::set_position_offset(int offset) {
}

void FFModel::compile_inference() {
// Request at least four CPU processors for inference runs
assert(
config.cpusPerNode >= 4 &&
"FlexFlow Serve requires at least four CPU cores per node, please add "
"`-ll:cpu 4` in the command line if you are using the C++ interface or "
"set `num_cpus` in `ff.init` if you are using the Python interface");
Context ctx = config.lg_ctx;
Runtime *runtime = config.lg_hlr;
config.computationMode = COMP_MODE_INFERENCE;
Expand Down

0 comments on commit 0b3289c

Please sign in to comment.