| 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 | |
| 59 | AceStepTextEncoderConfig 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 |
no test coverage detected