Skip to content

Commit 2b3f15b

Browse files
committed
Tweaks
1 parent 14b5e9d commit 2b3f15b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

launch/dynamo-run/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ pub async fn run(
6666
flags.validate(&local_model, &out_opt)?;
6767

6868
// Make an engine from the local_model, flags and output.
69-
let engine_config = engine_for(out_opt, flags.clone(), local_model, rt.clone()).await?;
69+
let engine_config = engine_for(
70+
runtime.primary_token(),
71+
out_opt,
72+
flags.clone(),
73+
local_model,
74+
rt.clone(),
75+
)
76+
.await?;
7077

7178
//
7279
// Run in from an input
@@ -81,6 +88,7 @@ pub async fn run(
8188
async fn engine_for(
8289
cancel_token: CancellationToken,
8390
out_opt: Output,
91+
flags: Flags,
8492
local_model: LocalModel,
8593
rt: Either<Runtime, DistributedRuntime>,
8694
) -> anyhow::Result<EngineConfig> {

launch/dynamo-run/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async fn wrapper(runtime: dynamo_runtime::Runtime) -> anyhow::Result<()> {
9191
}
9292
"out" => {
9393
if val == "sglang" || val == "trtllm" || val == "vllm" {
94-
tracing::error!("To run the {val} engine please use the Python interface: `python -m dynamo.backends.{val} [flags]`, or look in directory `components/backends/`.");
94+
tracing::error!("To run the {val} engine please use the Python interface, see root README or look in directory `components/backends/`.");
9595
std::process::exit(1);
9696
}
9797

0 commit comments

Comments
 (0)