class_docstr: ## Dataset for fine-tuning GPT-NeoX
  
  This is not optimized to very large datasets.
class_docstr_tok: ["#","#","Dataset","for","fine-tuning","GPT-NeoX","This","is","not","optimized","to","very","large","datasets","."]
code: def __len__(self):
      return self.n_samples
  
file_path: annotated_deep_learning_paper_implementations/labml_nn/neox/utils/text_dataset.py
imports: from pathlib import PurePath, Path
  from typing import Optional, List
  import torch
  import torch.utils.data
  from labml import lab
  from labml import monit
  from labml.logger import inspect
  from labml.utils.download import download_file
  from labml_nn.neox.tokenizer import get_tokenizer
label_desc: Use image node_id 2 for calling the NeoXDataset obj's underlying member method code with example usage: obj.__len__() and returns: self