Skip to content

Commit 8d6a39b

Browse files
committed
format
1 parent ebe5b68 commit 8d6a39b

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎src/models/pi0/component_runtime.cpp‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,24 +198,22 @@ void pi0_init_component_runtime(Pi0ComponentRuntime & runtime, const Pi0BackendC
198198
runtime.n_threads = resolved.n_threads;
199199

200200
backend_scheduler_config scheduler_config;
201-
scheduler_config.max_nodes = GGML_DEFAULT_GRAPH_SIZE;
202-
scheduler_config.parallel = false;
201+
scheduler_config.max_nodes = GGML_DEFAULT_GRAPH_SIZE;
202+
scheduler_config.parallel = false;
203203

204204
backend_loader loader;
205-
if (!loader.load(runtime.backend_cpu, runtime.backends, runtime.sched, runtime.buft_policy, true,
206-
scheduler_config, verbosity)) {
205+
if (!loader.load(runtime.backend_cpu, runtime.backends, runtime.sched, runtime.buft_policy, true, scheduler_config,
206+
verbosity)) {
207207
throw std::runtime_error(std::string("failed to initialize pi0 ") + (label != nullptr ? label : "component") +
208208
" backend: " + loader.error());
209209
}
210210

211211
if (verbosity >= 1) {
212-
std::fprintf(
213-
stderr,
214-
"%s: component=%s metadata=%s resolved=%s model_buft=%s runtime_buft=%s backend_count=%zu\n", __func__,
215-
label != nullptr ? label : "component", component.runtime.backend.c_str(),
216-
pi0_resolved_backend_name(loader.mode()),
217-
pi0_buft_name(runtime.buft_policy.model_buft), pi0_buft_name(runtime.buft_policy.runtime_buft),
218-
runtime.backends.size());
212+
std::fprintf(stderr,
213+
"%s: component=%s metadata=%s resolved=%s model_buft=%s runtime_buft=%s backend_count=%zu\n",
214+
__func__, label != nullptr ? label : "component", component.runtime.backend.c_str(),
215+
pi0_resolved_backend_name(loader.mode()), pi0_buft_name(runtime.buft_policy.model_buft),
216+
pi0_buft_name(runtime.buft_policy.runtime_buft), runtime.backends.size());
219217
}
220218
}
221219

‎src/models/smolvla/vision.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ smolvla_vision_ctx * smolvla_vision_load(const char * mmproj_path, int verbosity
514514
scheduler_config.parallel = false;
515515
scheduler_config.op_offload = false;
516516
backend_loader backend;
517-
if (!backend.load(ctx->backend_cpu, ctx->backends, ctx->sched, ctx->buft_policy,
518-
true, scheduler_config, verbosity)) {
517+
if (!backend.load(ctx->backend_cpu, ctx->backends, ctx->sched, ctx->buft_policy, true, scheduler_config,
518+
verbosity)) {
519519
LOG_ERR("%s: failed to initialize vision backend: %s\n", __func__, backend.error().c_str());
520520
smolvla_vision_free(ctx);
521521
return nullptr;

0 commit comments

Comments
 (0)