MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / can_load

Method can_load

src/models/miocodec/loader.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 runtime::ModelInspection inspect(const runtime::ModelLoadRequest & request) const override {
65 const auto assets = load_miocodec_assets(request.model_path);
66 runtime::ModelInspection inspection;
67 inspection.cli.session_options = {
68 {"miocodec.weight_type", "native|f32|f16|bf16|q8_0", "Weight storage type. Default: f32.", false, "f32"},
69 {"miocodec.weight_context_mb", "int", "Context or graph arena size in MiB. Default: 8.", false, "8", "1"},
70 {"miocodec.constant_context_mb", "int", "Context or graph arena size in MiB. Default: 16.", false, "16", "1"},
71 {"miocodec.content_graph_arena_mb", "int", "Context or graph arena size in MiB. Default: 32.", false, "32", "1"},
72 {"miocodec.global_graph_arena_mb", "int", "Context or graph arena size in MiB. Default: 32.", false, "32", "1"},
73 {"miocodec.wave_graph_arena_mb", "int", "Context or graph arena size in MiB. Default: 32.", false, "32", "1"},
74 };
75 inspection.model_root = assets->resources.model_root();
76 inspection.metadata = metadata(*assets);
77 inspection.capabilities = capabilities(*assets);
78 const auto spec_path = engine::model_spec::default_spec_path(family());

Callers

nothing calls this directly

Calls 2

has_miocodec_assetsFunction · 0.85
resolve_model_rootFunction · 0.70

Tested by

no test coverage detected