Skip to main content
Miles is open source under the LICENSE file in the repo. We accept community contributions of every size — bug reports, doc fixes, new model recipes, full features.

Repository layout

Local dev loop

Style

  • Python: ruff for linting, black for formatting (line length 100). pre-commit is wired up.
  • Type hints: use them. We’re strict about new code.
  • Docstrings: Google style for public functions; one-liners for internal.
  • Imports: isort ordering, no relative imports across packages.

PR checklist

Before you click “Ready for review”:
  • pre-commit run --all-files passes.
  • You added or updated tests for new behavior.
  • You ran pytest -x and it’s green.
  • If you touched the launch flags, python3 train.py --help still parses.
  • If you added a public flag, it appears in Server Arguments.
  • If you added a new example, you wrote a real walkthrough (use examples/index as the structural template).

Commit messages

We follow the conventional-commits style:
The first line is < 70 chars. Body explains why, not what — the diff already shows what.

Issue triage

We label issues with: If you’re new, sort by good first issue. Comment to claim before you start so we don’t double-up.

Where to ask questions

  • Quick questions: Miles channel of the SGLang Slack.
  • Design discussions: open a GitHub Discussion or an Issue with discussion label.
  • Security: email security@radixark.ai (do not open a public issue).