class_docstr: DialoGPT Decoder.
  
  This decoder is initialized with the pretrained model from Hugging Face.
class_docstr_tok: ["DialoGPT","Decoder",".","This","decoder","is","initialized","with","the","pretrained","model","from","Hugging","Face","."]
code: def _init_from_pretrained(self, opt):
      # load model
      model_sz = opt["gpt2_size"]
      fle_key = f"microsoft/DialoGPT-{model_sz}"
      return GPT2Model.from_pretrained(fle_key)
  
file_path: ParlAI/parlai/agents/hugging_face/dialogpt.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.agents.hugging_face.dict import DialoGPTDictionaryAgent
  from parlai.agents.hugging_face.gpt2 import Gpt2Agent, GPT2Decoder, HFGPT2Model
  from parlai.utils.misc import warn_once
label_desc: Use image node_id 3 for calling the DialoGPTDecoder obj's underlying member method code with example usage: obj._init_from_pretrained(opt) and returns: GPT2Model