Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Navigeer naar deze notebook op GitHub: book/ml_principles/labs/nlp_nanogpt

Via bovenstaande link kan je deze notebook openen in Google Colaboratory. In die omgeving kunnen we gebruik maken van gratis quota voor GPUs (en TPUs). GPU acceleratie is hier sterk aanbevolen voor zowel model training als model inference.

Colab setup

  • Als je de notebook voor het eerst opent op Colab, kies je in het menu rechts bovenaan Connect > Change runtime type: Python 3 en T4 GPU.

  • Pas nadat de GPU Runtime is opgestart ga je verder met onderstaande installatie.

  • ⚠️ Bij deze waarschuwing Warning: This notebook was not authored by Google selecteer je Run anyway.

!git clone https://github.com/karpathy/nanoGPT.git