Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dcc:itsol:whisper:scripts [2025/02/03 08:49] – added note on changed dependencies giuliodcc:itsol:whisper:scripts [2025/05/09 14:04] (current) – changed "" to <code></code> giulio
Line 13: Line 13:
 ---- ----
  
 +<code>
 +#!/bin/bash
 +#SBATCH --time=08:00:00
 +#SBATCH --gpus-per-node=1
 +#SBATCH --mem=16000
  
-''#!/bin/bash'' +module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1 
- +source $HOME/.envs/whisper/bin/activate 
-''#SBATCH %%--%%time=08:00:00'' +whisper $HOME/whisper_audio/* --model large-v2 --output_dir $HOME/whisper_output/ 
- +</code>
-''#SBATCH %%--%%gpus-per-node=1'' +
- +
-''#SBATCH %%--%%mem=16000'' +
- +
-\\ +
- +
-''module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1'' +
- +
-''source $HOME/.envs/whisper/bin/activate'' +
- +
-''whisper $HOME/whisper_audio/%%--%%model large-v2 %%--%%output_dir $HOME/whisper_output/'' +
 ---- ----
  
Line 105: Line 98:
  
 ++++ Click to display the script | ++++ Click to display the script |
 +<code>
 +#!/bin/bash
 +#SBATCH --time=08:00:00
 +#SBATCH --gpus-per-node=1
 +#SBATCH --mem=16000
  
-''#!/bin/bash'' +module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1 
- +source $HOME/.envs/whisper/bin/activate 
-''#SBATCH %%--%%time=08:00:00'' +whisper $HOME/whisper_audio/* --model large-v2 --language English --output_dir $HOME/whisper_output/ 
- +</code>
-''#SBATCH %%--%%gpus-per-node=1'' +
- +
-''#SBATCH %%--%%mem=16000'' +
- +
-\\ +
- +
-''module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1'' +
- +
-''source $HOME/.envs/whisper/bin/activate'' +
- +
-''whisper $HOME/whisper_audio/%%--%%model large-v2 %%--%%language English %%--%%output_dir $HOME/whisper_output/'' +
 ++++ ++++
 \\ \\
Line 133: Line 119:
  
 ++++ Click to display the script | ++++ Click to display the script |
 +<code>
 +#!/bin/bash
 +#SBATCH --time=08:00:00
 +#SBATCH --gpus-per-node=1
 +#SBATCH --mem=16000
  
-''#!/bin/bash'' +module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1 
- +source $HOME/.envs/whisper/bin/activate 
-''#SBATCH %%--%%time=08:00:00'' +whisper $HOME/whisper_audio/* --model large-v2 --task translate --output_dir $HOME/whisper_output/ 
- +</code>
-''#SBATCH %%--%%gpus-per-node=1'' +
- +
-''#SBATCH %%--%%mem=16000'' +
- +
-\\ +
- +
-''module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1'' +
- +
-''source $HOME/.envs/whisper/bin/activate'' +
- +
-''whisper $HOME/whisper_audio/%%--%%model large-v2 %%--%%task translate %%--%%output_dir $HOME/whisper_output/'' +
 ++++  ++++