This Repo contains code related to AI/ML training
To access and work with this repository using Google Colab, follow these steps:
-
Open Google Colab
Go to https://colab.research.google.com and sign in with your Google account. -
Open the Notebook
- If you have Jupyter notebooks (
.ipynbfiles) in this repository, you can open them directly in Colab:- Click on File > Open notebook > GitHub tab, then enter the repository URL or username/repo to browse and open notebooks.
- Alternatively, use the URL pattern:
https://colab.research.google.com/github/{username}/{repository}/blob/main/{notebook}.ipynb
- If you have Jupyter notebooks (
-
Create a New Notebook (optional)
If you want to create a new notebook and run code interactively, click File > New notebook. -
Set Runtime to GPU/TPU (Optional)
For faster training or inference, you can enable hardware accelerators:- Go to Runtime > Change runtime type
- Select GPU or TPU from the Hardware accelerator dropdown
- Click Save
-
Install Dependencies
Colab comes with many pre-installed ML libraries. For additional dependencies, install them using shell commands:!pip install -r requirements.txt
or install specific libraries inline:
!pip install your-library-name
-
Upload Data (If Needed)
To upload files from your local machine:from google.colab import files uploaded = files.upload()
Alternatively, mount your Google Drive for larger datasets:
from google.colab import drive drive.mount('/content/drive')
-
Run the Code
Use the code cells to run training, evaluation, or inference scripts as explained in the Usage section of this README.
Following these steps will help you quickly start running and experimenting with the code in this repository within a Google Colab environment.