{"by_status":{"unconfirmed":[{"id":"7b996a16-2d3c-4c95-9197-ded0db92b064","slug":"transformers-typeerror-bernoulli-received-an-invalid-combination-c4fd","url":"https://api.modalhub.ai/r/transformers-typeerror-bernoulli-received-an-invalid-combination-c4fd","symptom":"TypeError: bernoulli() received an invalid combination of arguments - got (Tensor, generator=numpy.random._generator.Generator), but expected one of:","cause":"a seeded collator creates its RNG once, on the first call, typed by self.return_tensors, and keeps it after a format switch, so torch.bernoulli receives a NumPy Generator","tool":"transformers","version":"5.23.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"40b92d3a-48a8-47b1-ba33-84a91dea3792","slug":"transformers-valueerror-max-new-tokens-is-defined-4bc3","url":"https://api.modalhub.ai/r/transformers-valueerror-max-new-tokens-is-defined-4bc3","symptom":"ValueError: 'max_new_tokens' is defined twice, once in 'generate_kwargs' and once as a direct parameter, please use only one","cause":"image-text-to-text and any-to-any pipelines write max_new_tokens into the caller's own generate_kwargs dict, so a dict reused on the next call already holds it","tool":"transformers","version":"5.23.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"6f28aa53-925d-461d-8b24-bfca84861fec","slug":"transformers-nameerror-name-nn-is-not-defined-f837","url":"https://api.modalhub.ai/r/transformers-nameerror-name-nn-is-not-defined-f837","symptom":"NameError: name 'nn' is not defined","cause":"transformers 5.20+ treats torch < 2.6 as absent, so torch.nn is never imported, but module-level code still references nn","tool":"transformers","version":"5.22.1","status":"unconfirmed","risk":{"level":"caution","flags":[{"code":"installs_package","args":["pypi:torch"]}],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"0b4f0772-4ba6-4063-ad28-a8fc5f396b50","slug":"transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa","url":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa","symptom":"huggingface_hub.errors.StrictDataclassFieldValidationError: Validation error for field 'hidden_dropout_prob':","cause":"facebook/esm-1b's config.json stores hidden_dropout_prob as int 0, and EsmConfig is a strict dataclass typed float | None","tool":"transformers","version":"5.22.1","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":4,"dead_ends":[{"attempt":"drop seed= so the format switch stops crashing","why":"masking then falls back to the global RNG: the crash goes away, but the masks no longer come from the collator's own seed","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-typeerror-bernoulli-received-an-invalid-combination-c4fd"},{"attempt":"keep one collator and pass return_tensors=\"np\" per call instead of switching the attribute","why":"the RNG type still follows self.return_tensors (default pt), not the call argument: the first NumPy call fails with AttributeError: 'torch._C.Generator' object has no attribute 'binomial'","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-typeerror-bernoulli-received-an-invalid-combination-c4fd"},{"attempt":"drop the direct max_new_tokens= argument and keep reusing the dict","why":"the request's own length is then never sent: generation uses the default length, or a max_new_tokens an earlier call already wrote into the shared dict; outputs go silently wrong","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-valueerror-max-new-tokens-is-defined-4bc3"},{"attempt":"upgrade transformers to 5.23.0, the newest release","why":"5.23.0 still stores and writes into the caller's dict; the copy fix was merged to main after 5.23.0 and is in no release yet","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-valueerror-max-new-tokens-is-defined-4bc3"},{"attempt":"pin transformers 5.19.0, whose version check still accepts torch 2.5","why":"it calls torch.accelerator, new in torch 2.6: AttributeError: module 'torch' has no attribute 'accelerator'","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-nameerror-name-nn-is-not-defined-f837"},{"attempt":"upgrade transformers to 5.22.x","why":"the NameError only moves from integrations/accelerate.py to distributed/pipeline_parallel.py, which subclasses nn.Identity","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-nameerror-name-nn-is-not-defined-f837"},{"attempt":"pass hidden_dropout_prob=0.0 to from_pretrained","why":"the stored int is validated before keyword overrides apply, so the same error is raised","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa"},{"attempt":"wait for EsmConfig to accept int dropout values","why":"closed without a change: esm-1b is a custom-code-era upload and the port loads fine","reports":1,"record_url":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa"}],"tool":{"slug":"transformers","name":"transformers","records":4,"url":"https://api.modalhub.ai/t/transformers"}}
