class_docstr: Cache for a gptneox.cpp model.
class_docstr_tok: ["Cache","for","a","gptneox.cpp","model","."]
code: def __setitem__(
      self,
      key: Sequence[gptneox_cpp.gptneox_token],
      value: "GptneoxState",
  ):
      key = tuple(key)
      if key in self.cache_state:
          del self.cache_state[key]
      self.cache_state[key] = value
      while self.cache_size > self.capacity_bytes:
          self.cache_state.popitem(last=False)
  
imports: import os
  import sys
  import uuid
  import time
  import math
  import multiprocessing
  import ctypes
  from typing import List, Optional, Union, Generator, Sequence, Iterator, Deque, Tuple
  from collections import deque, OrderedDict
  from bigdl.llm.utils.common import invalidInputError
  from bigdl.llm.ggml.model.generation import GenerationMixin
  from .None import gptneox_cpp
  from .gptneox_types import *
label_desc: Use image node_id 6 for calling the GptneoxCache obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types