Repository navigation
release: kern-llm on PyPI, the runtime and both engine plugins in one wheel #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # kern-llm | ||
|
|
||
| [kern](https://github.com/pegainfer-project/kern) runs a model as a manifest: a typed declaration of | ||
| buffers, states, ops and programs, compiled kernels, and weights. This package is kern for Python: | ||
|
|
||
| - `kern`: the runtime binding (`kern.Runtime`), the readers of a manifest's host contract | ||
| (`kern.host`) and the rank group over `torch.distributed` (`kern.group`); | ||
| - `kern_vllm`: a vLLM plugin that runs a manifest as the model; | ||
| - `kern_sglang`: the same for SGLang. | ||
|
|
||
| ```bash | ||
| pip install kern-llm | ||
| hf download Pegainfer/kern-qwen38-sm103 --local-dir kern-qwen38 | ||
| KERN_MANIFEST=kern-qwen38/manifests/qwen3.8-27b-vllm.json KERN_KERNELS=kern-qwen38/cubins \ | ||
| vllm serve Qwen/Qwen3.8-27B --hf-overrides '{"architectures": ["KernForCausalLM"]}' \ | ||
| --max-num-seqs 128 --max-num-batched-tokens 8192 --enable-prefix-caching \ | ||
| -cc '{"mode": 0, "cudagraph_mode": "FULL_DECODE_ONLY"}' | ||
| ``` | ||
|
|
||
| Linux x86_64 and aarch64, Python 3.10 or newer. The runtime loads the NVIDIA driver (CUDA 13, r580 or | ||
| newer) and cuBLAS 13 when it first runs; torch comes from the engine. The plugins do nothing unless | ||
| `KERN_MANIFEST` is set. Guides: [vLLM](https://github.com/pegainfer-project/kern/blob/master/docs/vllm.md), | ||
| [SGLang](https://github.com/pegainfer-project/kern/blob/master/docs/sglang.md). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expand this path filter to cover
crates/kern-runtime/**,crates/kern-manifest/**, the rootCargo.toml, andCargo.lock. The new wheel directly compiles both Rust crates and inherits workspace configuration, while the regular CI excludeskern-pyfromdefault-members; therefore a dependency API or configuration change can pass every PR check but make the first tagged release fail during the maturin build.Useful? React with 👍 / 👎.