mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
46 lines
912 B
Nix
46 lines
912 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
torch,
|
|
triton,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "liger-kernel";
|
|
version = "0.8.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linkedin";
|
|
repo = "liger-kernel";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-cUgVfUe2UxULHiU0OeSJX9KHShRJ5W6fhqmgB+PUD4c=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|