Before you begin, ensure you have the following:
- Git: Install Git from its official website.
- Docker: Install Docker from its official website.
- Groq API Key: Log in to the Groq Console to generate a new API key.
- Linux/MacOS: No extra setup needed.
- Windows: Install WSL and enable Docker's WSL integration by following this guide.
Clone the GitHub repository to your local machine:
git clone https://github.com/Rakshanda3/Getting_Started_with_Language_Models.gitChange to the cloned repository directory:
cd Getting_Started_with_Language_ModelsUpdate the repository to the latest version:
git pull origin mainEnable execute permissions for the setup script:
chmod u+x docker_image_setup.sh
⚠️ Warning: Ensure port8888is free. The script will automatically clean up this port if it's in use by stopping and removing any Docker container using it.
Run the setup script to build and start the Docker container:
docker build -t getting_started_with_language_models .Run the Docker container and map the ports. This will allow you to access Jupyter Notebook at port 8888:
docker run -p 8888:8888 -v $(pwd):/usr/src/app getting_started_with_language_models- Once the container starts, the terminal will display a URL (e.g.,
http://127.0.0.1) with a token. - Copy and paste this URL into your browser to access the Jupyter Notebook interface.