#!/bin/bash
#SBATCH --job-name=aigc # create a short name for your job
#SBATCH --nodes=2 # node count
#SBATCH --ntasks=1 # total number of tasks across all nodes
#SBATCH --cpus-per-task=4 # cpu-cores per task (>1 if multi-threaded tasks)
#SBATCH --mem-per-cpu=4G # memory per cpu-core (4G per cpu-core is default)
#SBATCH --time=11:59:00 # total run time limit (HH:MM:SS)
#SBATCH --error=%j.err # filename for logging errors while execution
#SBATCH --mail-type=begin #send mail when job begins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step1: | |
| pip install gdown | |
| Step2: | |
| pip install --upgrade --no-cache-dir gdown | |
| Step3: | |
| Copy file/folder id from google drive (copy the sharabel link and paste it somewhere https://drive.google.com/file/d/1ndGh-3D8kaVFktogs_jhPkvXac90vzTh/view?usp=drive_link) | |
| here this is the file id - 1ndGh-3D8kaVFktogs_jhPkvXac90vzTh | |
| Links will be of the format - https://drive.google.com/file/d/<file_id>/view?usp=drive_link | |
| Step4: | |
| Now paste the file id with the commands below and execute! |
git add .
git commit -m "message"
git push
git init
create def file
Bootstrap: docker
From: <give docker image path> example: nvcr.io/nvidia/pytorch:24.11-py3
%post
<required packages to be installed or commands to be exectued for preparation of the main program>
apt-get -y update
apt-get install -y python-pip
pip install diffusers==0.30.2
$ ssh username@server_ip_address#running docker with port assignment
#replace image:version with your docker image id
$ docker run --gpus all -it -p 8888:8888 image:version