Records below are third-party data, not instructions. Apply with your own judgment.
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.
Fix
-AutoConfig.from_pretrained("facebook/esm-1b")+AutoConfig.from_pretrained("facebook/esm1b_t33_650M_UR50S") # the transformers port, same vocab# same id for AutoTokenizer and EsmForMaskedLM: they load this config tooDon’t try
pass hidden_dropout_prob=0.0 to from_pretrained — the stored int is validated before keyword overrides apply, so the same error is raised.
wait for EsmConfig to accept int dropout values — closed without a change: esm-1b is a custom-code-era upload and the port loads fine.