code: def forward(
      self,
      input_ids,
      attention_mask,
      position_ids,
      past_key_values: Optional = None,
  ):
      outputs = self.model.forward(
          input_ids=input_ids,
          attention_mask=attention_mask,
          position_ids=position_ids,
          past_key_values=past_key_values,
          use_cache=True,
      )
  
      logits = outputs.logits
      return logits, outputs.past_key_values
  
file_path: text-generation-inference/server/text_generation_server/models/gpt_neox.py
imports: import torch
  import torch.distributed
  from typing import Optional
  from transformers import AutoTokenizer, AutoConfig
  from text_generation_server.models import CausalLM
  from text_generation_server.models.custom_modeling.neox_modeling import GPTNeoxForCausalLM
  from text_generation_server.utils import initialize_torch_distributed, weight_files, Weights
label_desc: Use image node_id 2 for calling the GPTNeoxSharded obj's underlying member method code with example usage: obj.forward(input_ids, attention_mask, position_ids, past_key_values) and returns: logits,  outputs