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

Function parse_planner_config

src/models/ace_step/assets.cpp:54–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 config.rope_theta);
53 config.bos_token_id = json::optional_i64(value, "bos_token_id", config.bos_token_id);
54 config.eos_token_id = json::optional_i64(value, "eos_token_id", config.eos_token_id);
55 config.pad_token_id = json::optional_i64(value, "pad_token_id", config.pad_token_id);
56 return config;
57}
58
59AceStepTextEncoderConfig parse_text_encoder_config(const engine::io::json::Value & value) {
60 AceStepTextEncoderConfig config;
61 config.encoder_family = json::optional_string(value, "model_type", config.encoder_family);
62 parse_qwen_common(
63 value,
64 config.vocab_size,
65 config.hidden_size,
66 config.intermediate_size,
67 config.num_hidden_layers,
68 config.num_attention_heads,
69 config.num_key_value_heads,
70 config.head_dim,
71 config.max_position_embeddings,
72 config.rms_norm_eps,
73 config.rope_theta);
74 return config;
75}
76

Callers 1

load_ace_step_assetsFunction · 0.85

Calls 3

parse_qwen_commonFunction · 0.85
optional_i64Function · 0.85
optional_stringFunction · 0.50

Tested by

no test coverage detected