| 1 | // coco-engine library seam. |
| 2 | // |
| 3 | // `main.rs` is the `coco` generate/bench bin (unchanged). This `lib.rs` exposes the |
| 4 | // engine's internals so sibling bins (e.g. `coco-evomerge`) can reuse coco's model |
| 5 | // loading + generation without duplicating the forward. The modules below are the |
| 6 | // SAME sources compiled by the bin; nothing here changes their behavior. |
| 7 | // |
| 8 | // Step-1 evolutionary-merge additions: `merge` (CPU f32 parent lerp → runnable Model) |
| 9 | // and `eval` (GSM8K + ARC-Easy fitness harness). Both are library-only — the `coco` |
| 10 | // bin never touches them. |
| 11 | |
| 12 | pub mod config; |
| 13 | pub mod eval; |
| 14 | pub mod merge; |
| 15 | pub mod model; |
| 16 | pub mod qlinear; |
| 17 | pub mod qwen2_legacy; |
| 18 | pub mod qwen2_q; |
| 19 | pub mod turboquant; |
| 20 | |
| 21 | // The stable surface the merge/eval lanes (and the evomerge bin) build on. |
| 22 | pub use config::{Arch, CocoConfig}; |
| 23 | pub use model::{build_model, Model}; |
| 24 | pub use qwen2_q::{WeightSource, WeightStats}; |