code: def gpt2_medium(checkpoint=False):
      return GPTLMModel(
          hidden_size=1024,
          num_layers=24,
          num_attention_heads=16,
          checkpoint=checkpoint,
      )
  
file_path: ColossalAI/examples/language/gpt/experiments/pipeline_parallel/model_zoo.py
imports: from torch import nn
  from transformers import GPT2Config, GPT2LMHeadModel
label_desc: Use image node_id 1 for calling a global function with example usage: gpt2_medium(checkpoint) and returns: GPTLMModel