<jupyter_start><jupyter_text>GPU Setup<jupyter_code>! jupyter trust library/gpu.ipynb
!lscpu

gpu_info = !nvidia-smi
gpu_info = '\n'.join(gpu_info)
if gpu_info.find('failed') >= 0:
  print('Select the Runtime > "Change runtime type" menu to enable a GPU accelerator, ')
else:
  print(gpu_info)
import tensorflow
physical_devices = tensorflow.config.list_physical_devices('GPU')
print("Num GPUs:", len(physical_devices))<jupyter_output>Num GPUs: 0
{'fraction_non_alphanumeric': 0.12780269058295965, 'fraction_numerical': 0.004484304932735426, 'mean_word_length': 7.127272727272727, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '232974', 'license': 'Apache-2.0', 'n_tokens_mistral': 171, 'n_tokens_neox': 163, 'n_words': 36, 'path': 'benchmarks/earthquake/mar2022/library/gpu.ipynb', 'repo_name': 'rknuu/mlcommons', 'size': '446'}