class_docstr: Client for remote Megatron-LM server.
  
  This client expects an external Megatron-LM server to be run on localhost:5000. See the
  Megatron-LM respository for documentation on starting a Megatron text generation server:
  
  https://github.com/NVIDIA/Megatron-LM#gpt-text-generation
code: def _tokenize_response(self, text: str) -> List[Token]:
      tokenized_text = self.tokenize(
          TokenizationRequest(text, tokenizer="huggingface/gpt2")
      )
  
      # TODO(tgale): Support logprobs.
      tokens = [
          Token(text=str(token), logprob=0, top_logprobs={})
          for token in tokenized_text.raw_tokens
      ]
      return tokens
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/megatron_client.py
imports: import json
  import requests
  from typing import Any, Dict, List
  import traceback
  from helm.common.request import EMBEDDING_UNAVAILABLE_REQUEST_RESULT, Request, RequestResult, Sequence, Token
  from helm.common.tokenization_request import TokenizationRequest
  from helm.proxy.clients.huggingface_client import HuggingFaceClient
  from helm.proxy.clients.client import Client, wrap_request_time, truncate_sequence
label_desc: Use image node_id 2 for calling the MegatronClient obj's underlying member method code with example usage: obj._tokenize_response(text) and returns: tokens