1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! LFM2 Model Implementation (WAPR-LFM2-002)
//!
//! This module implements the LiquidAI LFM2-2.6B-Transcript architecture
//! for post-transcription summarization.
//!
//! # Architecture Overview
//!
//! LFM2 is a hybrid conv/attention architecture with:
//! - Grouped Query Attention (GQA) with 32 Q heads and 8 KV heads
//! - SwiGLU FFN activation
//! - 1D Convolution layers interleaved with attention
//! - RoPE positional encoding (θ = 1,000,000)
//!
//! # Module Structure
//!
//! ```text
//! lfm2/
//! ├── mod.rs # This file - module exports
//! ├── gqa.rs # Grouped Query Attention
//! ├── swiglu.rs # SwiGLU FFN activation
//! ├── rope.rs # RoPE positional encoding
//! ├── conv.rs # 1D Convolution layer
//! ├── model.rs # LFM2 model struct
//! └── tokenizer.rs # BPE tokenizer (WAPR-LFM2-007)
//! ```
//!
//! # Spec Reference
//!
//! See `docs/specifications/1.0-whisper-apr.md` Section 18 for full specification.
pub use Conv1d;
pub use GroupedQueryAttention;
pub use ;
pub use ;
pub use ;
pub use RotaryEmbedding;
pub use SwiGluFfn;
pub use ;
pub use ;