Add per-task metrics #2582
Annotations
10 errors
test:
flair/__init__.py#L1
mypy-status
mypy exited with status 1.
|
test:
flair/embeddings/document.py#L1
flair/embeddings/document.py
697: error: Argument "dtype" to "zeros" has incompatible type "Union[dtype, Tensor, Module]"; expected "Optional[dtype]" [arg-type]
|
test:
flair/embeddings/token.py#L1
flair/embeddings/token.py
1469: error: Item "Tensor" of "Union[Tensor, Module]" has no attribute "spm" [union-attr]
1469: error: Item "Tensor" of "Union[Any, Tensor, Module]" has no attribute "vocab_size" [union-attr]
1469: error: "Tensor" not callable [operator]
|
test:
flair/models/sequence_tagger_model.py#L1
flair/models/sequence_tagger_model.py
865: error: Unexpected keyword argument "use_auth_token" [call-arg]
866: error: Item "None" of "Optional[list[RepoSibling]]" has no attribute "__iter__" (not iterable) [union-attr]
|
test:
tests/embeddings/test_transformer_document_embeddings.py#L37
test_if_loaded_embeddings_have_all_attributes[False]
ValueError: Could not find any model with name '/home/runner/work/flair/flair/tests/resources/tasks/single.pt'
|
test:
tests/embeddings/test_transformer_word_embeddings.py#L93
TestTransformerWordEmbeddings.test_transformer_jit_embeddings[False]
_pickle.UnpicklingError: Weights only load failed. In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make `weights_only=True` compatible with your use case: WeightsUnpickler error: Unsupported operand 149
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
|
test:
tests/embeddings/test_transformer_word_embeddings.py#L283
TestTransformerWordEmbeddings.test_transformers_keep_tokenizer_when_saving[False]
_pickle.UnpicklingError: Weights only load failed. In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make `weights_only=True` compatible with your use case: WeightsUnpickler error: Unsupported operand 149
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
|
test:
tests/embeddings/test_transformer_word_embeddings.py#L296
TestTransformerWordEmbeddings.test_transformers_keep_tokenizer_bloom_when_saving[False]
_pickle.UnpicklingError: Weights only load failed. In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make `weights_only=True` compatible with your use case: WeightsUnpickler error: Unsupported operand 149
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
|
test:
tests/model_test_utils.py#L118
TestDeepNCMDecoder.test_train_load_use_model[False]
_pickle.UnpicklingError: Weights only load failed. In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make `weights_only=True` compatible with your use case: WeightsUnpickler error: Unsupported operand 149
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
|
test:
tests/models/test_deepncm_classifier.py#L89
TestDeepNCMDecoder.test_train_load_use_classifier[False]
_pickle.UnpicklingError: Weights only load failed. In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make `weights_only=True` compatible with your use case: WeightsUnpickler error: Unsupported operand 149
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
|