python3Packages.tokenspeed-mla: init at 0.1.5

This commit is contained in:
Sizhe Zhao
2026-06-04 21:37:47 +08:00
parent 4d411b1251
commit cf6aef351e
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
apache-tvm-ffi,
nvidia-cutlass-dsl,
tokenspeed-triton,
torch,
}:
buildPythonPackage (finalAttrs: {
pname = "tokenspeed-mla";
version = "0.1.5";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "lightseekorg";
repo = "tokenspeed";
rev = "a39b3854dfd9b08a410028dbe5260eda08ef6b63";
hash = "sha256-rl+cpZabmK24nMcam5Ud4GqnpLA3TqpVRznlX6lz6Xs=";
};
sourceRoot = "${finalAttrs.src.name}/tokenspeed-mla";
build-system = [
setuptools
];
dependencies = [
apache-tvm-ffi
nvidia-cutlass-dsl
tokenspeed-triton
torch
];
pythonImportsCheck = [ "tokenspeed_mla" ];
# no tests
doCheck = false;
meta = {
description = "Speed-of-light TokenSpeed MLA kernels for Blackwell SM100 and SM103";
homepage = "https://github.com/lightseekorg/tokenspeed/tree/main/tokenspeed-mla";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prince213 ];
broken = !torch.cudaSupport;
};
})
+2
View File
@@ -19800,6 +19800,8 @@ self: super: with self; {
tokenlib = callPackage ../development/python-modules/tokenlib { };
tokenspeed-mla = callPackage ../development/python-modules/tokenspeed-mla { };
tokenspeed-triton = callPackage ../development/python-modules/tokenspeed-triton { };
tokenspeed-triton-bin = callPackage ../development/python-modules/tokenspeed-triton/bin.nix { };