git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.transformers: 3.4.0 -> 3.5.1

Changelog: https://github.com/huggingface/transformers/releases/tag/v3.5.1 https://github.com/huggingface/transformers/releases/tag/v3.5.0

commit76ca3425720cade81ac877f46493a42fa5ee6e49 authorDaniël de Kok <me@danieldk.eu> dateSat 14 Nov 2020, 10:38 (6 years ago) parentbff9a1a
1 file changed+7−3
pkgs/development/python-modules/transformers/default.nix+7−3
pkgs/development/python-modules/transformers/default.nix+7−3
@@ -18,13 +18,13 @@
1818
1919buildPythonPackage rec {
2020 pname = "transformers";
21− version = "3.4.0";
21+ version = "3.5.1";
2222
2323 src = fetchFromGitHub {
2424 owner = "huggingface";
2525 repo = pname;
2626 rev = "v${version}";
27− sha256 = "1v09gryxsg57d2cjwagna1535m8mbxlazdbhsww210lxa818m5qj";
27+ sha256 = "02z5zz0rq7mbgdmsm2ccfdbca57qy7iqp0vc7jspsmdfif4acwia";
2828 };
2929
3030 propagatedBuildInputs = [
@@ -47,7 +47,8 @@ buildPythonPackage rec {
4747
4848 postPatch = ''
4949 substituteInPlace setup.py \
50− --replace "tokenizers == 0.9.2" "tokenizers"
50+ --replace "tokenizers == 0.9.3" "tokenizers" \
51+ --replace "sentencepiece == 0.1.91" "sentencepiece"
5152 '';
5253
5354 preCheck = ''
@@ -70,11 +71,13 @@ buildPythonPackage rec {
7071 disabledTests = [
7172 "BlenderbotSmallTokenizerTest"
7273 "Blenderbot3BTokenizerTests"
74+ "GetFromCacheTests"
7375 "TokenizationTest"
7476 "TestTokenizationBart"
7577 "test_all_tokenizers"
7678 "test_batch_encoding_is_fast"
7779 "test_batch_encoding_pickle"
80+ "test_batch_encoding_word_to_tokens"
7881 "test_config_from_model_shortcut"
7982 "test_config_model_type_from_model_identifier"
8083 "test_from_pretrained_use_fast_toggle"
@@ -89,6 +92,7 @@ buildPythonPackage rec {
8992 "test_tokenizer_from_pretrained"
9093 "test_tokenizer_from_tokenizer_class"
9194 "test_tokenizer_identifier_with_correct_config"
95+ "test_tokenizer_identifier_non_existent"
9296 ];
9397
9498 meta = with stdenv.lib; {