{ "cells": [ { "cell_type": "markdown", "source": [ "# simple_wikipedia_LM\n", "\n", "\n", "phase 2 processing\n" ], "metadata": { "id": "BOFzKwFefa6L" } }, { "cell_type": "code", "source": [ "!pip install transformers datasets -q" ], "metadata": { "id": "D_iTn-fMWlzu", "outputId": "c582164f-39ba-4b1d-b3f9-a74f085ad36f", "colab": { "base_uri": "https://localhost:8080/" } }, "execution_count": 1, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.9/7.9 MB\u001b[0m \u001b[31m14.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m493.7/493.7 kB\u001b[0m \u001b[31m20.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m311.2/311.2 kB\u001b[0m \u001b[31m25.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.8/3.8 MB\u001b[0m \u001b[31m31.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.3/1.3 MB\u001b[0m \u001b[31m33.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m115.3/115.3 kB\u001b[0m \u001b[31m5.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m4.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m295.0/295.0 kB\u001b[0m \u001b[31m14.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25h" ] } ] }, { "cell_type": "code", "source": [ "!pip install -U -q transformers datasets accelerate\n", "from huggingface_hub import notebook_login\n", "notebook_login()" ], "metadata": { "id": "AqxVoWHpdoy5", "outputId": "5e802866-288f-40bf-8ace-48bfe780e1d3", "colab": { "base_uri": "https://localhost:8080/", "height": 162, "referenced_widgets": [ "5f47a846018d4fc6a60bfde5677833d9", "bcf58b3932d0416d80e3e3b3d6c90e2b", "60b3e2c3634b45ca96f69e607818ae5f", "5f58b6179d0f490a90201c095fb48890", "78b54cb47e864baf83054d01f2d4c279", "49ffc905460c479d951034ba13a501b0", "c8df497e15654a88a84ed4d0d0c9f621", "2cd202cfa3c741ba914e7c0e8bb8a6f6", "3026f5bf05f24ffd843e11db7035a58c", "35490afe67e54178bd3fbc6d80a59680", "d6716d7cd575429a8ad20216b3b1ddfa", "ed9f66a717014252ab42c7d1d658cd1a", "aa6e02b03f7241bb88837b81f3c952e1", "f0f611bc42094c0cb9e9ad72533e7df0", "b80526a5d8f54eddb39a938c6cc29f49", "ab335f41e9da400886e8791d30eae85d", "ff7d201c733f44c686a92345cab5cad1", "5d084cbe87f04d0e89617a83203b02b7", "ae3583835fca43a6a7417945a5172b57", "bc146f0045724cae9eae416cc2f4a1f6", "6f8f066b3a1f4bc68fea5c6d666547df", "81983f1f2ea34c3a8774f31d082c1f01", "d722650ea3f746e7a2b2e99e45e12921", "165b0d39e5c14f68b3d8eafe713c27be", "0e22cb91dd954ab185d5f22a50b915b5", "419bf8f8ff25443bb5b5dcbc5a0c640f", "7f571afd8cf54dc4bd9a675102345612", "cc2cb822b3974e3e95ec8a66eaa0f6c4", "7efda5be197f4e34a6ba4aa46276ccef", "3dbcb0e4ab164cb3b67b5376002dc503", "5bc586f552bd4f3b9f7926bcbe84fa26", "3e28b7c4d66a478fa1ad9f3efa78ac9a" ] } }, "execution_count": 67, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/261.4 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━━━━━━━\u001b[0m\u001b[90m╺\u001b[0m\u001b[90m━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m112.6/261.4 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m261.4/261.4 kB\u001b[0m \u001b[31m4.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25h" ] }, { "output_type": "display_data", "data": { "text/plain": [ "VBox(children=(HTML(value='