Skip to content

Commit ac5783d

Browse files
committed
python3Packages.colbert-ai: 0.2.21 -> 0.2.22
1 parent 3f52f99 commit ac5783d

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

pkgs/development/python-modules/colbert-ai/default.nix

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,15 @@
2323

2424
buildPythonPackage rec {
2525
pname = "colbert-ai";
26-
version = "0.2.21";
26+
version = "0.2.22";
2727
pyproject = true;
2828

2929
src = fetchPypi {
3030
inherit version;
3131
pname = "colbert_ai";
32-
hash = "sha256-qNb9tOInLysI7Tf45QlgchYNhBXR5AWFdRiYt35iW6s=";
32+
hash = "sha256-AK/P711xXw06cGvpDStbdKK7fEAgc4B861UVwAJqiIY=";
3333
};
3434

35-
# ImportError: cannot import name 'AdamW' from 'transformers'
36-
# https://github.com/stanford-futuredata/ColBERT/pull/390
37-
postPatch = ''
38-
substituteInPlace colbert/training/training.py \
39-
--replace-fail \
40-
"from transformers import AdamW, get_linear_schedule_with_warmup" \
41-
"from transformers import get_linear_schedule_with_warmup; from torch.optim import AdamW"
42-
'';
43-
44-
pythonRemoveDeps = [ "git-python" ];
45-
4635
build-system = [
4736
setuptools
4837
];

0 commit comments

Comments
 (0)