File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
pkgs/development/python-modules/colbert-ai Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 2323
2424buildPythonPackage 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 ] ;
You can’t perform that action at this time.
0 commit comments