From the course: Applied AI: Getting Started with Hugging Face Transformers
Setting up the exercise files
From the course: Applied AI: Getting Started with Hugging Face Transformers
Setting up the exercise files
- [Narrator] In this video, we will set up the exercise files and the environment to use for this course. All course exercises are built using Python 3.9. We will be using Anaconda and Jupyter Notebooks for these exercises. You can download and install Anaconda from the website, anaconda.com/products/distribution for your specific operating system. Once downloaded, we will go to the Anaconda GUI. Here we will create a new virtual environment called transformers one. We are going to go click Create at the bottom. Enter the name of the virtual environment transformers-1 and pick Python the latest 3.9 version for creating the environment. We are going to click create here. This is going to create the environment and it'll take some time to set up. The environment is now created. Now we go back to home, and then we going to install Jupyter Notebooks in this environment by clicking install at the bottom. Jupyter Notebooks has been installed in this environment. Now let's go to the command prompt window. Please note that if you are on Windows you will want to use the Anaconda command prompt for the same. The exercise files for this course have been downloaded on my computer onto the folder /Users/linkedin/ExerciseFiles Please download the exercise files on your computer in a similar folder. Navigate to this folder on the command prompt. We can explore the exercise files here by using the LS command. Now let's activate the new virtual environment we created using the command conda activate transformers-1. The virtual environment is now activated. Then we can start the Jupyter Notebook using the command jupyter notebook. Please make sure that you are in the same folder as the exercise files are before using the command. This command then opens the Jupyter Notebook in the browser. The exercise files can be seen in the route directory. We will use these files in the later exercises. Before we get started we need to install the prerequisite Python modules for this course. To perform this open the notebook Code_00_XX Setup Environment. Run this notebook to set up the exercise files. It may take some time to execute and install all the dependencies. You will know when this process is done when this star will go away from this block. The setup environment is now complete. In the next chapter, we will review the basics of machine learning for natural language processing.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.