<jupyter_start><jupyter_text><jupyter_code># Hints from :
# https://medium.com/analytics-vidhya/how-to-access-files-from-google-cloud-storage-in-colab-notebooks-8edaf9e6c020
# https://stackoverflow.com/questions/57772453/login-on-colab-with-gcloud-without-service-account<jupyter_output><empty_output><jupyter_text>Authenticate GCP<jupyter_code>from google.colab import auth
auth.authenticate_user()<jupyter_output><empty_output><jupyter_text>Validate key<jupyter_code>!cat adc.json<jupyter_output><empty_output><jupyter_text>Install GCloud SDK into a new directory<jupyter_code>!curl https://sdk.cloud.google.com | bash<jupyter_output><empty_output><jupyter_text>Install GCloud Alpha components<jupyter_code>gcloud1="/root/google-cloud-sdk/bin/gcloud"
!$gcloud1 components install alpha
project_id="YOUR_PROJECT_ID"
!$gcloud1 config set project $project_id
!$gcloud1 alpha compute tpus tpu-vm create probml-00-mjsml \
  --zone us-east1-d \
  --accelerator-type v3-32 \
  --version v2-alpha<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12549019607843137, 'fraction_numerical': 0.024509803921568627, 'mean_word_length': 7.508333333333334, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 3, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '95020', 'license': 'MIT', 'n_tokens_mistral': 407, 'n_tokens_neox': 392, 'n_words': 46, 'path': 'notebooks/Old/GCP_CC.ipynb', 'repo_name': 'arpitvaghela/probml-notebooks', 'size': '1020'}