Download upstreams/duo/scripts/zero_shot_duo.sh from jyliuAI/diffusion_baseline: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/jyliuAI/diffusion_baseline/resolve/main/upstreams/duo/scripts/zero_shot_duo.sh
- Command line
-
hf download hf://jyliuAI/diffusion_baseline/upstreams/duo/scripts/zero_shot_duo.sh
-
curl -L -o zero_shot_duo.sh https://huggingface.co/jyliuAI/diffusion_baseline/resolve/main/upstreams/duo/scripts/zero_shot_duo.sh
1.49 kB
| #SBATCH -J zeroshot_duo # Job name | |
| #SBATCH -o watch_folder/%x_%j.out # log file (out & err) | |
| #SBATCH -N 1 # Total number of nodes requested | |
| #SBATCH --get-user-env # retrieve the users login environment | |
| #SBATCH --mem=32000 # server memory requested (per node) | |
| #SBATCH -t 960:00:00 # Time limit (hh:mm:ss) | |
| #SBATCH --partition=kuleshov # Request partition | |
| #SBATCH --constraint="[a5000|a6000|a100]" | |
| #SBATCH --ntasks-per-node=1 | |
| #SBATCH --gres=gpu:1 # Type/number of GPUs needed | |
| #SBATCH --open-mode=append # Do not overwrite logs | |
| #SBATCH --requeue # Requeue upon preemption | |
| checkpoint_path=/share/kuleshov/ssahoo/flow-ode/flow-ode-VlCQLK-small-conjugate-OWT-anneal/checkpoints/last.ckpt | |
| export HYDRA_FULL_ERROR=1 | |
| datasets=("ag_news" | |
| "scientific_papers_pubmed" | |
| "scientific_papers_arxiv" | |
| "lambada" | |
| "wikitext2" | |
| "wikitext103" | |
| "ptb" | |
| "lm1b-gpt2") | |
| for data in "${datasets[@]}"; do | |
| echo "$data" | |
| srun python -u -m main \ | |
| mode=ppl_eval \ | |
| loader.batch_size=16 \ | |
| loader.eval_batch_size=16 \ | |
| loader.eval_global_batch_size=128 \ | |
| data="$data" \ | |
| data.insert_valid_eos=False \ | |
| model=small \ | |
| algo=duo_base \ | |
| model.length=1024 \ | |
| eval.checkpoint_path=$checkpoint_path \ | |
| sampling.num_sample_batches=0 \ | |
| +wandb.offline=true | |
| done |