<jupyter_start><jupyter_text>Clone light-tensor repository.<jupyter_code>!git clone https://github.com/adeobootpin/light-tensor.git<jupyter_output><empty_output><jupyter_text>Download MNIST data set. This will be used for training neural networks.<jupyter_code>!wget https://data.deepai.org/mnist.zip
!unzip /content/mnist.zip
!gunzip /content/train-images-idx3-ubyte.gz
!gunzip /content/train-labels-idx1-ubyte.gz
!gunzip /content/t10k-images-idx3-ubyte.gz
!gunzip /content/t10k-labels-idx1-ubyte.gz<jupyter_output><empty_output><jupyter_text>Change directory to light-tensor folder.<jupyter_code>%cd light-tensor/<jupyter_output>/content/light-tensor<jupyter_text>Build the light-tensor library and unit tests.<jupyter_code>!make unit-tests<jupyter_output><empty_output><jupyter_text>Run CPU unit tests.<jupyter_code>!./test /content/train-images-idx3-ubyte /content/train-labels-idx1-ubyte /content/t10k-images-idx3-ubyte /content/t10k-labels-idx1-ubyte -cpu<jupyter_output><empty_output><jupyter_text>Run GPU unit tests.  Remember to ensure that your notebook runtime type is set to "GPU".<jupyter_code>!./test /content/train-images-idx3-ubyte /content/train-labels-idx1-ubyte /content/t10k-images-idx3-ubyte /content/t10k-labels-idx1-ubyte -gpu<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12978889757623144, 'fraction_numerical': 0.018764659890539485, 'mean_word_length': 6.485380116959064, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '213118', 'license': 'MIT', 'n_tokens_mistral': 497, 'n_tokens_neox': 491, 'n_words': 67, 'path': 'l_ten_unit_tests.ipynb', 'repo_name': 'adeobootpin/light-tensor', 'size': '1279'}