mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
python3Packages.liger-kernel: init at 0.8.0 (#531922)
This commit is contained in:
45
pkgs/development/python-modules/liger-kernel/default.nix
Normal file
45
pkgs/development/python-modules/liger-kernel/default.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
torch,
|
||||
triton,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "liger-kernel";
|
||||
version = "0.8.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linkedin";
|
||||
repo = "liger-kernel";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-MAJ0goMxi8qA+ODd/kLIO7hp4dmNIOPLpSdkrm7hnnQ=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -9513,6 +9513,8 @@ self: super: with self; {
|
||||
|
||||
lifx-emulator-core = callPackage ../development/python-modules/lifx-emulator-core { };
|
||||
|
||||
liger-kernel = callPackage ../development/python-modules/liger-kernel { };
|
||||
|
||||
lightgbm = callPackage ../development/python-modules/lightgbm { };
|
||||
|
||||
lightify = callPackage ../development/python-modules/lightify { };
|
||||
|
||||
Reference in New Issue
Block a user