python3Packages.lm-eval: 0.4.8 -> 0.4.9.1; python3Packages.mlx-lm: 0.26.0 -> 0.26.3 (#434724)
This commit is contained in:
commit
7dd627d233
@ -2,58 +2,76 @@
|
|||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
|
||||||
|
# build-system
|
||||||
setuptools-scm,
|
setuptools-scm,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
accelerate,
|
accelerate,
|
||||||
aiohttp,
|
|
||||||
antlr4-python3-runtime,
|
|
||||||
causal-conv1d,
|
|
||||||
datasets,
|
datasets,
|
||||||
dill,
|
dill,
|
||||||
evaluate,
|
evaluate,
|
||||||
hf-transfer,
|
|
||||||
immutabledict,
|
|
||||||
jsonlines,
|
jsonlines,
|
||||||
langdetect,
|
|
||||||
mamba-ssm,
|
|
||||||
more-itertools,
|
more-itertools,
|
||||||
nltk,
|
|
||||||
numexpr,
|
numexpr,
|
||||||
numpy,
|
|
||||||
optimum,
|
|
||||||
pandas,
|
|
||||||
peft,
|
peft,
|
||||||
pybind11,
|
pybind11,
|
||||||
pytablewriter,
|
pytablewriter,
|
||||||
pytestCheckHook,
|
|
||||||
requests,
|
|
||||||
rouge-score,
|
rouge-score,
|
||||||
sacrebleu,
|
sacrebleu,
|
||||||
scikit-learn,
|
scikit-learn,
|
||||||
sentencepiece,
|
|
||||||
sqlitedict,
|
sqlitedict,
|
||||||
sympy,
|
|
||||||
tenacity,
|
|
||||||
tiktoken,
|
|
||||||
torch,
|
torch,
|
||||||
tqdm,
|
|
||||||
tqdm-multiprocess,
|
tqdm-multiprocess,
|
||||||
transformers,
|
transformers,
|
||||||
vllm,
|
|
||||||
wandb,
|
|
||||||
word2number,
|
word2number,
|
||||||
zstandard,
|
zstandard,
|
||||||
|
|
||||||
|
# optional-dependencies
|
||||||
|
# api
|
||||||
|
aiohttp,
|
||||||
|
requests,
|
||||||
|
tenacity,
|
||||||
|
tiktoken,
|
||||||
|
tqdm,
|
||||||
|
# hf_transfer
|
||||||
|
hf-transfer,
|
||||||
|
# ifeval
|
||||||
|
immutabledict,
|
||||||
|
langdetect,
|
||||||
|
nltk,
|
||||||
|
# neuronx
|
||||||
|
optimum,
|
||||||
|
# mamba
|
||||||
|
causal-conv1d,
|
||||||
|
mamba-ssm,
|
||||||
|
# math
|
||||||
|
antlr4-python3-runtime,
|
||||||
|
sympy,
|
||||||
|
# sentencepiece
|
||||||
|
sentencepiece,
|
||||||
|
# vllm
|
||||||
|
vllm,
|
||||||
|
# wandb
|
||||||
|
numpy,
|
||||||
|
pandas,
|
||||||
|
wandb,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
pytestCheckHook,
|
||||||
|
writableTmpDirAsHomeHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "lm-eval";
|
pname = "lm-eval";
|
||||||
version = "0.4.8";
|
version = "0.4.9.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EleutherAI";
|
owner = "EleutherAI";
|
||||||
repo = "lm-evaluation-harness";
|
repo = "lm-evaluation-harness";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-F8oy6XTovqiU7FQyuubRsiblSdvfZg9RPIyzRw2GH18=";
|
hash = "sha256-N5NRRabjWxPchwOIkjqYTCKInCmVSY6T5cAmdxNbCkU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
@ -84,34 +102,34 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
optional-dependencies = {
|
optional-dependencies = {
|
||||||
api = [
|
api = [
|
||||||
requests
|
|
||||||
aiohttp
|
aiohttp
|
||||||
|
requests
|
||||||
tenacity
|
tenacity
|
||||||
tqdm
|
|
||||||
tiktoken
|
tiktoken
|
||||||
|
tqdm
|
||||||
];
|
];
|
||||||
hf_transfer = [ hf-transfer ];
|
hf_transfer = [ hf-transfer ];
|
||||||
ifeval = [
|
ifeval = [
|
||||||
langdetect
|
|
||||||
immutabledict
|
immutabledict
|
||||||
|
langdetect
|
||||||
nltk
|
nltk
|
||||||
];
|
];
|
||||||
neuronx = [ optimum ] ++ optimum.optional-dependencies.neuronx;
|
neuronx = [ optimum ] ++ optimum.optional-dependencies.neuronx;
|
||||||
mamba = [
|
mamba = [
|
||||||
mamba-ssm
|
|
||||||
causal-conv1d
|
causal-conv1d
|
||||||
|
mamba-ssm
|
||||||
];
|
];
|
||||||
math = [
|
math = [
|
||||||
sympy
|
|
||||||
antlr4-python3-runtime
|
antlr4-python3-runtime
|
||||||
|
sympy
|
||||||
];
|
];
|
||||||
optimum = [ optimum ] ++ optimum.optional-dependencies.openvino;
|
optimum = [ optimum ] ++ optimum.optional-dependencies.openvino;
|
||||||
sentencepiece = [ sentencepiece ];
|
sentencepiece = [ sentencepiece ];
|
||||||
vllm = [ vllm ];
|
vllm = [ vllm ];
|
||||||
wandb = [
|
wandb = [
|
||||||
wandb
|
|
||||||
pandas
|
|
||||||
numpy
|
numpy
|
||||||
|
pandas
|
||||||
|
wandb
|
||||||
];
|
];
|
||||||
# Still missing dependencies for the following:
|
# Still missing dependencies for the following:
|
||||||
# deepsparse, gptq, ibm_watsonx_ai, multilingual, promptsource, sparseml,
|
# deepsparse, gptq, ibm_watsonx_ai, multilingual, promptsource, sparseml,
|
||||||
@ -122,16 +140,16 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
writableTmpDirAsHomeHook
|
||||||
]
|
]
|
||||||
++ optional-dependencies.api;
|
++ optional-dependencies.api;
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
export HOME=$TMP
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_deepsparse" # deepsparse is not available
|
"test_deepsparse" # deepsparse is not available
|
||||||
"test_model_tokenized_call_usage" # downloads a model
|
|
||||||
|
# download models from the internet
|
||||||
|
"test_get_batched_requests_with_no_ssl"
|
||||||
|
"test_model_tokenized_call_usage"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
@ -142,9 +160,13 @@ buildPythonPackage rec {
|
|||||||
"tests/test_prompt.py"
|
"tests/test_prompt.py"
|
||||||
"tests/test_task_manager.py"
|
"tests/test_task_manager.py"
|
||||||
"tests/test_tasks.py"
|
"tests/test_tasks.py"
|
||||||
|
"tests/test_unitxt_tasks.py"
|
||||||
|
|
||||||
# optimum-intel is not available
|
# optimum-intel is not available
|
||||||
"tests/models/test_openvino.py"
|
"tests/models/test_openvino.py"
|
||||||
|
|
||||||
|
# zeno-client is not packaged
|
||||||
|
"tests/scripts/test_zeno_visualize.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -2,13 +2,20 @@
|
|||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
|
||||||
|
# build-system
|
||||||
setuptools,
|
setuptools,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
jinja2,
|
jinja2,
|
||||||
mlx,
|
mlx,
|
||||||
numpy,
|
numpy,
|
||||||
protobuf,
|
protobuf,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
transformers,
|
transformers,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
lm-eval,
|
||||||
sentencepiece,
|
sentencepiece,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
@ -40,9 +47,10 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
writableTmpDirAsHomeHook
|
lm-eval
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
sentencepiece
|
sentencepiece
|
||||||
|
writableTmpDirAsHomeHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
@ -62,6 +70,7 @@ buildPythonPackage rec {
|
|||||||
"tests/test_prompt_cache.py::TestPromptCache::test_cache_with_generate"
|
"tests/test_prompt_cache.py::TestPromptCache::test_cache_with_generate"
|
||||||
"tests/test_prompt_cache.py::TestPromptCache::test_trim_cache_with_generate"
|
"tests/test_prompt_cache.py::TestPromptCache::test_trim_cache_with_generate"
|
||||||
# RuntimeError: [metal_kernel] No GPU back-end.
|
# RuntimeError: [metal_kernel] No GPU back-end.
|
||||||
|
"tests/test_losses.py"
|
||||||
"tests/test_models.py::TestModels::test_bitnet"
|
"tests/test_models.py::TestModels::test_bitnet"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user