| 12 | namespace json = engine::io::json; |
| 13 | namespace { |
| 14 | |
| 15 | VoxCPM2RopeScalingConfig 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 | |
| 25 | VoxCPM2MiniCPMConfig parse_lm_config(const json::Value & value) { |
no test coverage detected