class_docstr: Each `Instance` in a `Scenario` looks like this:
  
      <input> -> <reference1>
                 <reference2>
                 <reference3> [correct]
                 <reference4>
  
  For language modeling, we don't use the references (even if they exist), just feed the input:
  
      <input>
docstr: Takes a a list of `Instance`s and builds a list of corresponding `RequestState`s.
  Only requires eval instances.
docstr_tok: ["Takes","a","a","list","of","`","Instance","`","s","and","builds","a","list","of","corresponding","`","RequestState","`","s",".","Only","requires","eval","instances","."]
code: def adapt(
      self, instances: List[Instance], parallelism: int
  ) -> ScenarioState:
      """
      Takes a a list of `Instance`s and builds a list of corresponding `RequestState`s.
      Only requires eval instances.
      """
      # Pick out evaluation instances. This includes both valid and test splits.
      eval_instances: List[Instance] = [
          instance
          for instance in instances
          if instance.split in EVAL_SPLITS
      ]
      hlog(f"{len(eval_instances)} eval instances")
  
      all_request_states: List[RequestState] = flatten_list(
          parallel_map(self.generate_requests, instances, parallelism)
      )
      hlog(f"{len(all_request_states)} requests")
  
      return ScenarioState(self.adapter_spec, all_request_states)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/adaptation/adapters/language_modeling_adapter.py
imports: from typing import List, Tuple, Optional
  from helm.benchmark.adaptation.request_state import RequestState
  from helm.benchmark.adaptation.scenario_state import ScenarioState
  from helm.benchmark.scenarios.scenario import Instance, EVAL_SPLITS
  from helm.benchmark.window_services.window_service import EncodeResult
  from helm.common.general import flatten_list, parallel_map
  from helm.common.hierarchical_logger import hlog, htrack
  from helm.common.request import Request
  from helm.common.tokenization_request import TokenizationToken
  from .adapter import Adapter
label_desc: Use image node_id 1 for calling the LanguageModelingAdapter obj's underlying member method code with example usage: obj.adapt(instances, parallelism) and returns: ScenarioState