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

Function resolve_model_root

src/models/voxcpm2/assets.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace json = engine::io::json;
13namespace {
14
15VoxCPM2RopeScalingConfig parse_rope_scaling(const json::Value & value) {
16 VoxCPM2RopeScalingConfig config;
17 config.type = json::optional_string(value, "type", "");
18 config.long_factor = json::optional_f32_array(value, "long_factor");
19 config.short_factor = json::optional_f32_array(value, "short_factor");
20 config.original_max_position_embeddings =
21 json::optional_i64(value, "original_max_position_embeddings", 0);
22 return config;
23}
24
25VoxCPM2MiniCPMConfig parse_lm_config(const json::Value & value) {

Callers 1

make_resource_bundleFunction · 0.70

Calls 2

is_existing_directoryFunction · 0.85
is_existing_fileFunction · 0.85

Tested by

no test coverage detected