multimodal-yield-estimation / multimodal_yield_estimation.slurm
Sarikaa-Sridhar's picture
multi-modal yield estimation code base
4191737 verified
Raw History Blame Contribute Delete
757 Bytes
#!/bin/bash
#SBATCH --job-name=yield-multimodal
#SBATCH --time=01:00:00
#SBATCH --account=<your_account>
#SBATCH --output=yield-multimodal.%j.out
#SBATCH --mem=32G
#SBATCH --cpus-per-task=4
#SBATCH --gpus-per-node=1
# Activate an environment with requirements.txt installed
source /path/to/miniconda3/etc/profile.d/conda.sh
conda activate /path/to/your/env
module load cuda/12.6.2
cd /path/to/multimodal-yield-estimation
mkdir -p predictions
python scripts/inference_single_hf.py --hf_model_dir . --sample_json examples/sample_input.json --week 12 --output_json predictions/single.json
python scripts/inference_batch_hf.py --hf_model_dir . --input_jsonl examples/sample_batch.jsonl --output_json predictions/batch.json --output_csv predictions/batch.csv