See Install SGLang, Method 2: From Source section.
Use these commands to format your code and pass CI linting tests.
pip3 install pre-commit
cd sglang
pre-commit install
pre-commit run --all-files
Add unit tests under sglang/test. You can learn how to add and run tests from the README.md in that folder.
If you want to contribute or learn but don't have a concrete idea yet, you can pick a task labeled as "good first issue" or "help wanted" from the list below. https://github.com/sgl-project/sglang/issues?q=is%3Aissue+label%3A%22good+first+issue%22%2C%22help+wanted%22