| 258 | .build(ctx, input, gate_proj); |
| 259 | gate = modules::SiluModule{}.build(ctx, gate); |
| 260 | auto up = modules::LinearModule({config.hidden_size, config.intermediate_size, false, GGML_PREC_F32}) |
| 261 | .build(ctx, input, up_proj); |
| 262 | auto ff = modules::MulModule{}.build(ctx, gate, up); |
| 263 | return modules::LinearModule({config.intermediate_size, config.hidden_size, false, GGML_PREC_F32}) |
| 264 | .build(ctx, ff, down_proj); |
| 265 | } |
| 266 | |
| 267 | core::TensorValue slice_conditioning_plane( |
| 268 | core::ModuleBuildContext & ctx, |
| 269 | const core::TensorValue & conditioning, |
| 270 | int64_t plane, |
| 271 | int64_t hidden_size, |
| 272 | int64_t seq_len) { |
| 273 | auto slice = modules::SliceModule({1, plane, 1}).build(ctx, conditioning); |
no test coverage detected