class_docstr: Abstract class offering interface which should be implemented by all NeMo models.
class_docstr_tok: ["Abstract","class","offering","interface","which","should","be","implemented","by","all","NeMo","models","."]
docstr: Generates a filter for HuggingFace models.
  
  Additionally includes default values of some metadata about results returned by the Hub.
  
  Metadata:
      resolve_card_info: Bool flag, if set, returns the model card metadata. Default: False.
      limit_results: Optional int, limits the number of results returned.
  
  Returns:
      A Hugging Face Hub ModelFilter object.
docstr_tok: ["Generates","a","filter","for","HuggingFace","models",".","Additionally","includes","default","values","of","some","metadata","about","results","returned","by","the","Hub",".","Metadata",":","resolve_card_info",":","Bool","flag",",","if","set",",","returns","the","model","card","metadata",".","Default",":","False",".","limit_results",":","Optional","int",",","limits","the","number","of","results","returned",".","Returns",":","A","Hugging","Face","Hub","ModelFilter","object","."]
code: def get_hf_model_filter(cls) -> ModelFilter:
      """
      Generates a filter for HuggingFace models.
  
      Additionally includes default values of some metadata about results returned by the Hub.
  
      Metadata:
          resolve_card_info: Bool flag, if set, returns the model card metadata. Default: False.
          limit_results: Optional int, limits the number of results returned.
  
      Returns:
          A Hugging Face Hub ModelFilter object.
      """
      model_filter = ModelFilter(library="nemo")
  
      # Attach some additional info
      model_filter.resolve_card_info = False
      model_filter.limit_results = None
  
      return model_filter
  
imports: import hashlib
  import inspect
  import traceback
  from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from dataclasses import dataclass, field
  from enum import Enum
  from functools import total_ordering
  from pathlib import Path
  from typing import Dict, Iterable, List, Optional, Tuple, Union
  import hydra
  import torch
  import wrapt
  from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download
  from huggingface_hub.hf_api import ModelInfo
  from omegaconf import DictConfig, OmegaConf
  import nemo
  from nemo.core.connectors.save_restore_connector import SaveRestoreConnector
  from nemo.core.neural_types import NeuralType, NeuralTypeComparisonResult
  from nemo.utils import logging
  from nemo.utils.cloud import maybe_download_from_cloud
  from nemo.utils.data_utils import resolve_cache_dir
  from nemo.utils.model_utils import import_class_by_path, maybe_update_config_version
label_desc: Use image node_id 4 for calling the Model obj's underlying member method code with example usage: obj.get_hf_model_filter(cls) and returns: model_filter