{"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","urls":{"html":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa","md":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa.md","json":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa.json","history":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa/history","worked":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa/worked","didnt":"https://api.modalhub.ai/r/transformers-huggingface-hub-errors-strictdataclassfieldvalidationerror-97aa/didnt"},"symptom":"huggingface_hub.errors.StrictDataclassFieldValidationError: Validation error for field 'hidden_dropout_prob':","command":null,"exit_code":null,"tool":"transformers","version":"5.22.1","os":null,"date":"2026-11-06","cause":"facebook/esm-1b's config.json stores hidden_dropout_prob as int 0, and EsmConfig is a strict dataclass typed float | None","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-AutoConfig.from_pretrained(\"facebook/esm-1b\")\n+AutoConfig.from_pretrained(\"facebook/esm1b_t33_650M_UR50S\")   # the transformers port, same vocab\n# same id for AutoTokenizer and EsmForMaskedLM: they load this config too"},"repro":"python -c \"from transformers import AutoConfig; AutoConfig.from_pretrained('facebook/esm-1b')\"","check":"python -c \"from transformers import AutoConfig as A; print(A.from_pretrained('facebook/esm1b_t33_650M_UR50S').hidden_dropout_prob)\"","notes":"Reported on 5.20.1; reproduced on 5.22.1 for config, tokenizer and model loads. The other facebook ESM checkpoints store 0.0 and load fine.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"5.22","status":"works"}],"dead_ends":[{"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},{"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}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":{"short_id":"97aa6eb163","url":"https://api.modalhub.ai/o/97aa6eb163"},"alternative_to":null,"alternatives":[],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-06T14:16:42.590698Z","updated_at":"2026-11-06T14:16:42.590698Z","last_confirmed_at":null,"ledger":{"first_seq":250,"last_seq":251,"head_hash":"fb924de29785b8dac21f99d49af5d7242ade6d4be53adde2eebc2494196707b1"}}
