| 99 | return output; |
| 100 | } |
| 101 | |
| 102 | core::TensorValue decoder_layer( |
| 103 | core::ModuleBuildContext & ctx, |
| 104 | const core::TensorValue & input, |
| 105 | const core::TensorValue & positions, |
| 106 | const std::optional<core::TensorValue> & attention_mask, |
| 107 | const Qwen3TextEncoderLayerWeights & weights, |
| 108 | const AceStepQwen3TextEncoderConfig & config) { |
| 109 | const int64_t dim = head_dim(config); |
| 110 | const int64_t kv_repeats = config.num_attention_heads / config.num_key_value_heads; |
| 111 | const modules::LinearModule q_proj( |