class_docstr: A simple PyTorch interface for ULM
class_docstr_tok: ["A","simple","PyTorch","interface","for","ULM"]
code: def __init__(self, cfg, task, models):
      super().__init__(cfg, task, models)
      self.model = self.models[0]
      self.model.eval()
  
file_path: textlesslib/examples/gslm/sampler.py
imports: import typing
  from fairseq import hub_utils, utils
  from fairseq.hub_utils import GeneratorHubInterface
label_desc: Use image node_id 1 to create a new UnitLanguageModelSampler object from inherited base classes: GeneratorHubInterface with example: obj = UnitLanguageModelSampler(cfg, task, models)