mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #293132 from natsukium/openllm/update
python311Packages.openllm-core: 0.4.41 -> 0.4.44
This commit is contained in:
commit
3ba70354c5
@ -29,20 +29,20 @@ buildPythonPackage rec {
|
|||||||
--replace-fail "hatch-vcs==0.3.0" "hatch-vcs"
|
--replace-fail "hatch-vcs==0.3.0" "hatch-vcs"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
hatch-fancy-pypi-readme
|
hatch-fancy-pypi-readme
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
anyio
|
anyio
|
||||||
distro
|
distro
|
||||||
httpx
|
httpx
|
||||||
openllm-core
|
openllm-core
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
optional-dependencies = {
|
||||||
grpc = [
|
grpc = [
|
||||||
bentoml
|
bentoml
|
||||||
] ++ bentoml.optional-dependencies.grpc;
|
] ++ bentoml.optional-dependencies.grpc;
|
||||||
@ -54,7 +54,7 @@ buildPythonPackage rec {
|
|||||||
# diffusers
|
# diffusers
|
||||||
soundfile
|
soundfile
|
||||||
] ++ transformers.optional-dependencies.agents;
|
] ++ transformers.optional-dependencies.agents;
|
||||||
full = passthru.optional-dependencies.grpc ++ passthru.optional-dependencies.agents;
|
full = optional-dependencies.grpc ++ optional-dependencies.agents;
|
||||||
};
|
};
|
||||||
|
|
||||||
# there is no tests
|
# there is no tests
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "openllm-core";
|
pname = "openllm-core";
|
||||||
version = "0.4.41";
|
version = "0.4.44";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
@ -33,15 +33,12 @@ buildPythonPackage rec {
|
|||||||
owner = "bentoml";
|
owner = "bentoml";
|
||||||
repo = "OpenLLM";
|
repo = "OpenLLM";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-9mr6sw4/h5cYSmo1CDT2SKq4NVz1ZcoyqnYOwhlfaiQ=";
|
hash = "sha256-kRR715Vnt9ZAmxuWvtH0z093crH0JFrEKPtbjO3QMRc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "source/openllm-core";
|
sourceRoot = "source/openllm-core";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
hatch-fancy-pypi-readme
|
|
||||||
hatch-vcs
|
|
||||||
hatchling
|
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -55,7 +52,13 @@ buildPythonPackage rec {
|
|||||||
"cattrs"
|
"cattrs"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
hatch-fancy-pypi-readme
|
||||||
|
hatch-vcs
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
attrs
|
attrs
|
||||||
cattrs
|
cattrs
|
||||||
# not listed in pyproject.toml, but required at runtime
|
# not listed in pyproject.toml, but required at runtime
|
||||||
@ -67,7 +70,7 @@ buildPythonPackage rec {
|
|||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
optional-dependencies = {
|
||||||
vllm = [
|
vllm = [
|
||||||
# vllm
|
# vllm
|
||||||
];
|
];
|
||||||
@ -83,7 +86,7 @@ buildPythonPackage rec {
|
|||||||
# trl
|
# trl
|
||||||
] ++ transformers.optional-dependencies.torch
|
] ++ transformers.optional-dependencies.torch
|
||||||
++ transformers.optional-dependencies.tokenizers;
|
++ transformers.optional-dependencies.tokenizers;
|
||||||
full = with passthru.optional-dependencies; (
|
full = with optional-dependencies; (
|
||||||
vllm
|
vllm
|
||||||
# use absolute path to disambiguate with derivbation argument
|
# use absolute path to disambiguate with derivbation argument
|
||||||
++ passthru.optional-dependencies.bentoml
|
++ passthru.optional-dependencies.bentoml
|
||||||
|
@ -54,9 +54,6 @@ buildPythonPackage rec {
|
|||||||
sourceRoot = "source/openllm-python";
|
sourceRoot = "source/openllm-python";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
hatch-fancy-pypi-readme
|
|
||||||
hatch-vcs
|
|
||||||
hatchling
|
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -65,7 +62,13 @@ buildPythonPackage rec {
|
|||||||
"cuda-python"
|
"cuda-python"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
hatch-fancy-pypi-readme
|
||||||
|
hatch-vcs
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
accelerate
|
accelerate
|
||||||
bentoml
|
bentoml
|
||||||
bitsandbytes
|
bitsandbytes
|
||||||
@ -79,14 +82,13 @@ buildPythonPackage rec {
|
|||||||
safetensors
|
safetensors
|
||||||
scipy
|
scipy
|
||||||
sentencepiece
|
sentencepiece
|
||||||
tabulate
|
|
||||||
transformers
|
transformers
|
||||||
] ++ bentoml.optional-dependencies.io
|
] ++ bentoml.optional-dependencies.io
|
||||||
++ tabulate.optional-dependencies.widechars
|
++ tabulate.optional-dependencies.widechars
|
||||||
++ transformers.optional-dependencies.tokenizers
|
++ transformers.optional-dependencies.tokenizers
|
||||||
++ transformers.optional-dependencies.torch;
|
++ transformers.optional-dependencies.torch;
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
optional-dependencies = {
|
||||||
agents = [
|
agents = [
|
||||||
# diffusers
|
# diffusers
|
||||||
soundfile
|
soundfile
|
||||||
@ -142,13 +144,13 @@ buildPythonPackage rec {
|
|||||||
vllm = [
|
vllm = [
|
||||||
# vllm
|
# vllm
|
||||||
];
|
];
|
||||||
full = with passthru.optional-dependencies; (
|
full = with optional-dependencies; (
|
||||||
agents ++ awq ++ baichuan ++ chatglm ++ ctranslate ++ falcon ++ fine-tune ++ ggml ++ gptq ++ mpt
|
agents ++ awq ++ baichuan ++ chatglm ++ ctranslate ++ falcon ++ fine-tune ++ ggml ++ gptq ++ mpt
|
||||||
# disambiguate between derivation input and passthru field
|
# disambiguate between derivation input and passthru field
|
||||||
++ passthru.optional-dependencies.openai
|
++ optional-dependencies.openai
|
||||||
++ playground ++ starcoder ++ vllm
|
++ playground ++ starcoder ++ vllm
|
||||||
);
|
);
|
||||||
all = passthru.optional-dependencies.full;
|
all = optional-dependencies.full;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user