Contributing
typed-lm is open source under Apache-2.0. Contributions are welcome — code, docs, datasets and prompts alike.
Project rules
- Code and documentation are always in English — identifiers, comments, commit messages and files.
- No abbreviations in names: use
calculate_probability, notcalc_prob. - No
unwrap()orexpect(), including in tests; propagate errors with?. - Logging only through
tracing— noprintln!ordbg!. - GPU work runs in the devcontainer, never on a bare host with
--features cuda.
The full rules live in AGENTS.md at the repository root.
Workflow
- Design the request and response types first.
- Write the integration test that will initially fail.
- Implement the logic with unit tests.
- Wire it into the handler until the tests pass.
Before you open a pull request
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
This book is part of the repository. Documentation changes follow the
same rules as code. The source lives under
docs/src on the
docs/gh-pages branch and is published with mdBook.
Where to help
- Algorithms and backends — new architectures, quantization formats, CUDA kernels.
- Datasets and prompts — examples that show the primitives in real domains.
- Documentation — tutorials, cookbooks and fixes.
Next steps
- Testing — the test layers.
- Architecture — the module map.