python311Packages.openllm-core: 0.3.9 -> 0.4.22

Diff: https://github.com/bentoml/OpenLLM/compare/refs/tags/v0.3.9...v0.4.22

Changelog: https://github.com/bentoml/OpenLLM/blob/refs/tags/v0.4.22/CHANGELOG.md

Changed files
+47 -56
pkgs
development
python-modules
openllm
openllm-client
openllm-core
+9 -6
pkgs/development/python-modules/openllm-client/default.nix
···
, hatch-fancy-pypi-readme
, hatch-vcs
, hatchling
-
, attrs
-
, cattrs
+
, anyio
+
, distro
, httpx
+
, httpx-auth
, openllm-core
-
, orjson
, soundfile
, transformers
}:
···
];
propagatedBuildInputs = [
-
attrs
-
cattrs
+
anyio
+
distro
httpx
-
orjson
+
openllm-core
];
passthru.optional-dependencies = {
grpc = [
bentoml
] ++ bentoml.optional-dependencies.grpc;
+
auth = [
+
httpx-auth
+
];
agents = [
transformers
# diffusers
+12 -7
pkgs/development/python-modules/openllm-core/default.nix
···
, pythonOlder
, accelerate
, attrs
-
, bentoml
, bitsandbytes
+
, bentoml
, cattrs
+
, click-option-group
, datasets
+
, deepmerge
, hatch-fancy-pypi-readme
, hatch-vcs
, hatchling
···
, mypy-extensions
, orjson
, peft
-
, ray
, transformers
, typing-extensions
}:
buildPythonPackage rec {
pname = "openllm-core";
-
version = "0.3.9";
+
version = "0.4.22";
pyproject = true;
disabled = pythonOlder "3.8";
···
owner = "bentoml";
repo = "OpenLLM";
rev = "refs/tags/v${version}";
-
hash = "sha256-M/ckvaHTdKFg7xfUgFxu7pRBrS6TGw0m2U3L88b2DKU=";
+
hash = "sha256-Hgwc4rneY0d7KZHuBIWRpndLksts5DTvaYuwZOO4sdI=";
};
sourceRoot = "source/openllm-core";
···
propagatedBuildInputs = [
attrs
-
bentoml
cattrs
+
# not listed in pyproject.toml, but required at runtime
+
click-option-group
+
deepmerge
inflection
mypy-extensions
orjson
···
passthru.optional-dependencies = {
vllm = [
-
ray
# vllm
];
+
bentoml = [
+
bentoml
+
];
fine-tune = [
accelerate
bitsandbytes
···
] ++ transformers.optional-dependencies.torch
++ transformers.optional-dependencies.tokenizers
++ transformers.optional-dependencies.accelerate;
-
full = with passthru.optional-dependencies; ( vllm ++ fine-tune );
+
full = with passthru.optional-dependencies; ( vllm ++ bentoml ++ fine-tune );
};
# there is no tests
+26 -43
pkgs/development/python-modules/openllm/default.nix
···
, accelerate
, bentoml
, bitsandbytes
+
, build
, click
+
, ctranslate2
, datasets
, docker
, einops
-
, fairscale
-
, flax
, ghapi
+
, huggingface-hub
, hypothesis
, ipython
-
, jax
-
, jaxlib
, jupyter
, jupytext
-
, keras
, nbformat
, notebook
, openai
···
, pytest-randomly
, pytest-rerunfailures
, pytest-xdist
-
, ray
, safetensors
, scipy
, sentencepiece
, soundfile
, syrupy
, tabulate
-
, tensorflow
, tiktoken
, transformers
, openai-triton
···
accelerate
bentoml
bitsandbytes
+
build
click
+
einops
ghapi
openllm-client
openllm-core
optimum
safetensors
+
scipy
+
sentencepiece
tabulate
transformers
] ++ bentoml.optional-dependencies.io
···
soundfile
transformers
] ++ transformers.optional-dependencies.agents;
+
awq = [
+
# autoawq
+
];
baichuan = [
# cpm-kernels
-
sentencepiece
];
chatglm = [
# cpm-kernels
-
sentencepiece
+
];
+
ctranslate = [
+
ctranslate2
];
falcon = [
-
einops
xformers
];
fine-tune = [
-
accelerate
-
bitsandbytes
datasets
+
huggingface-hub
peft
# trl
];
-
flan-t5 = [
-
flax
-
jax
-
jaxlib
-
keras
-
tensorflow
-
];
ggml = [
# ctransformers
];
gptq = [
# auto-gptq
-
optimum
]; # ++ autogptq.optional-dependencies.triton;
grpc = [
-
openllm-client
-
] ++ openllm-client.optional-dependencies.grpc;
-
llama = [
-
fairscale
-
sentencepiece
-
scipy
-
];
+
bentoml
+
] ++ bentoml.optional-dependencies.grpc;
mpt = [
-
einops
openai-triton
];
openai = [
openai
tiktoken
-
] ++ openai.optional-dependencies.embeddings;
-
opt = [
-
flax
-
jax
-
jaxlib
-
keras
-
tensorflow
-
];
+
] ++ openai.optional-dependencies.datalib;
playground = [
ipython
jupyter
···
bitsandbytes
];
vllm = [
-
ray
# vllm
];
full = with passthru.optional-dependencies; (
-
agents ++ baichuan ++ chatglm ++ falcon ++ fine-tune ++ flan-t5 ++ ggml ++ gptq ++ llama ++ mpt ++ openai ++ opt ++ playground ++ starcoder ++ vllm
+
agents ++ awq ++ baichuan ++ chatglm ++ ctranslate ++ falcon ++ fine-tune ++ ggml ++ gptq ++ mpt ++ openai ++ playground ++ starcoder ++ vllm
);
all = passthru.optional-dependencies.full;
};
···
# disable hypothesis' deadline
export CI=1
'';
+
+
disabledTestPaths = [
+
# require network access
+
"tests/models"
+
];
disabledTests = [
-
# these tests access to huggingface.co
-
"test_opt_125m"
-
"test_opt_125m"
-
"test_flan_t5"
-
"test_flan_t5"
+
# incompatible with recent TypedDict
+
# https://github.com/bentoml/OpenLLM/blob/f3fd32d596253ae34c68e2e9655f19f40e05f666/openllm-python/tests/configuration_test.py#L18-L21
+
"test_missing_default"
];
pythonImportsCheck = [ "openllm" ];