utils/create_dummy_models.py/build_tiny_model_summary
def build_tiny_model_summary(results):
    """Build a summary: a dictionary of the form
    {
      model architecture name:
        {
          "tokenizer_classes": [...],
          "processor_classes": [...]
        }
      ..
    }
    """
    tiny_model_summary = {}
    for config_name in results:
        processors = [key for key, value in results[config_name]["processor"].items()]
        tokenizer_classes = [x for x in processors if x.endswith("TokenizerFast") or x.endswith("Tokenizer")]
        processor_classes = [x for x in processors if x not in tokenizer_classes]
        for framework in FRAMEWORKS:
            if framework not in results[config_name]:
                continue
            for arch_name in results[config_name][framework]:
                # tiny model is not created for `arch_name`
                if results[config_name][framework][arch_name] is None:
                    continue
                tiny_model_summary[arch_name] = {
                    "tokenizer_classes": tokenizer_classes,
                    "processor_classes": processor_classes,
                }

    return tiny_model_summary