transformers
8d2f0eee - Fix serve /v1/models crash when a cached config has architectures=null

Commit
21 days ago
Fix serve /v1/models crash when a cached config has architectures=null get_gen_models() iterated config["architectures"] without guarding for a null value. Some cached repos have "architectures": null in config.json, so listing models raised TypeError: 'NoneType' object is not iterable and returned HTTP 500. Skip those entries.
Author
Parents
Loading