Tabular Regression
Transformers
Safetensors
yield-text-image
feature-extraction
crop-yield-estimation
digital-agriculture
multimodal
multi-temporal
regression
custom_code
Instructions to use ICICLE-AI/multimodal-yield-estimation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ICICLE-AI/multimodal-yield-estimation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ICICLE-AI/multimodal-yield-estimation", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download multimodal_yield_estimation.slurm from ICICLE-AI/multimodal-yield-estimation: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/ICICLE-AI/multimodal-yield-estimation/resolve/main/multimodal_yield_estimation.slurm
- Command line
-
hf download hf://ICICLE-AI/multimodal-yield-estimation/multimodal_yield_estimation.slurm
-
curl -L -o multimodal_yield_estimation.slurm https://huggingface.co/ICICLE-AI/multimodal-yield-estimation/resolve/main/multimodal_yield_estimation.slurm
757 Bytes
| #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 | |