Files
nixpkgs/pkgs/development/python-modules/liger-kernel/default.nix
2026-10-02 03:57:54 +00:00

46 lines
912 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
torch,
triton,
}:
buildPythonPackage (finalAttrs: {
pname = "liger-kernel";
version = "0.8.4";
pyproject = true;
src = fetchFromGitHub {
owner = "linkedin";
repo = "liger-kernel";
tag = "v${finalAttrs.version}";
hash = "sha256-1D9+CXPT2ZASfKVSHPO/zbZcvW1Zrv0wHaLW+N5L+48=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
torch
triton
];
# Requires NVIDIA driver.
doCheck = false;
pythonImportsCheck = [ "liger_kernel" ];
meta = {
description = "Efficient Triton Kernels for LLM Training";
homepage = "https://github.com/linkedin/liger-kernel";
changelog = "https://github.com/linkedin/liger-kernel/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jherland ];
};
})