https://github.com/huggingface/transformers/pull/35592 changed the behavior of the model registry in Transformers. This is causing a bug with model registration.