Skip to content

Community Software

Software, OnDemand apps, and example code contributed by Duke research groups and Research Computing staff.

Do you have software or code that would benefit the larger DCC community? We'll provide a hosting location and storage, give you access to manage the files, and list it here. Email rescomputing@duke.edu to get started.

Software on the DCC

AlphaFold

Thanks to the Duke Human Vaccine Institute, AlphaFold container images and databases are installed on the DCC,

  • AlphaFold 2: /opt/apps/community/alphafold2
  • AlphaFold 3: /opt/apps/community/alphafold3, with a sample job script at /opt/apps/community/alphafold3/scripts/run_AF3_test.job

Copy the sample script to your group directory and edit it for your inputs. To connect with other AlphaFold users at Duke, enroll in the community listserv.

DCC Whisper

DCC Whisper transcribes audio on the Duke Compute Cluster and adds speaker labels through diarization. It runs as a Slurm job using the shared Whisper large-v3 model, with GPU and CPU modes available. The centrally managed installation is available to DCC users without installing a separate environment or downloading models.

Before transferring audio, confirm that it is approved for use on the DCC. The DCC supports Public and Restricted data; Sensitive data, including PHI/ePHI, HIPAA data, and FERPA student records, is not permitted. A data use agreement (DUA) may prohibit DCC use regardless of the general classification. If eligibility is uncertain, use Duke COMPASS or contact Research Computing before transferring files.

Getting started

Load the module and create separate input and output directories in /work:

module load dcc-whisper
mkdir -p /work/$USER/whisper-input
mkdir -p /work/$USER/whisper-output

Copy approved audio into /work/$USER/whisper-input. Supported input extensions are mp3, mp4, mpeg, mpga, m4a, wav, and webm.

To submit the default GPU job:

whisper-submit

The submission command prints a Slurm job ID to use for monitoring and support. GPU mode defaults to the gpu-common partition, one GPU, 4 CPUs, and 16 GB RAM.

Users who can tolerate interruption may request scavenger-gpu:

whisper-submit --partition scavenger-gpu

Scavenger jobs can be preempted without warning. DCC Whisper requeues the job, keeps atomically completed transcripts, and retranscribes the file that was inprogress.

To submit a CPU job:

whisper-submit --mode cpu 

Useful options

--account NAME                 Use a specific Slurm account.
--partition NAME               Override the default partition.
--language CODE                Specify language using code (see below)
--task translate               To translate to English.
--time D-HH:MM:SS              Set a walltime.
--input DIR                    Override /work/$USER/whisper-input.
--output DIR                   Override /work/$USER/whisper-output.
--test-only                    Validate and estimate without submitting.
--allow-no-diarization         Permit unlabeled SPEAKER_00 fallback.
--move-inputs-after-success    Move inputs only after successful output.
--overwrite                    Deliberately replace existing output.

Run the following for the complete built-in help:

whisper-submit --help

Supported Languages

Use --language CODE to specify the spoken language, such as en for English, es for Spanish, fr for French, zh for Chinese (Mandarin), or ja for Japanese. Omit this option to allow automatic language detection.

For example, to transcribe Spanish audio:

whisper-submit --language es

The following language codes are supported:

Code Language Code Language
af Afrikaans am Amharic
ar Arabic as Assamese
az Azerbaijani ba Bashkir
be Belarusian bg Bulgarian
bn Bengali bo Tibetan
br Breton bs Bosnian
ca Catalan cs Czech
cy Welsh da Danish
de German el Greek
en English es Spanish
et Estonian eu Basque
fa Persian (Farsi) fi Finnish
fo Faroese fr French
gl Galician gu Gujarati
ha Hausa haw Hawaiian
he Hebrew hi Hindi
hr Croatian ht Haitian Creole
hu Hungarian hy Armenian
id Indonesian is Icelandic
it Italian ja Japanese
jw Javanese ka Georgian
kk Kazakh km Khmer
kn Kannada ko Korean
la Latin lb Luxembourgish
ln Lingala lo Lao
lt Lithuanian lv Latvian
mg Malagasy mi Māori
mk Macedonian ml Malayalam
mn Mongolian mr Marathi
ms Malay mt Maltese
my Burmese (Myanmar) ne Nepali
nl Dutch nn Norwegian Nynorsk
no Norwegian oc Occitan
pa Punjabi pl Polish
ps Pashto pt Portuguese
ro Romanian ru Russian
sa Sanskrit sd Sindhi
si Sinhala sk Slovak
sl Slovenian sn Shona
so Somali sq Albanian
sr Serbian su Sundanese
sv Swedish sw Swahili
ta Tamil te Telugu
tg Tajik th Thai
tk Turkmen tl Tagalog
tr Turkish tt Tatar
uk Ukrainian ur Urdu
uz Uzbek vi Vietnamese
yi Yiddish yo Yoruba
zh Chinese (Mandarin) yue Cantonese

Results and support

By default, results are written to /work/$USER/whisper-output

/work is not backed up, and files are purged after 75 days. Copy results that must be retained to approved durable group storage. See DCC storage for details.

Use squeue -j <job-id> to check the queue and sacct -j <job-id> --format=JobID,State,ExitCode,Elapsed to check the final job state.

For help, contact rescomputing@duke.edu with the Slurm job ID, CPU or GPU mode, partition, final job state and exit code.

OnDemand apps

Microbiome RStudio

Created by Josh Granek at the Duke Center for Human Systems Immunology to support bioinformatics for the microbiome community at Duke. This app launches an RStudio server from a microbiome-focused Apptainer image on one or more nodes.

Customizing an app

If you need extra packages, a custom container used with the existing Jupyter Lab or RStudio app is usually enough. To publish a new OnDemand app for the community, contact us.

Community code

The DukeRC/code repository on GitHub collects code from Duke researchers and staff who use Research Computing resources. It includes the scripts that accompany the pages in Examples, such as MPI, parallel R, and local LLM inference with vLLM and Ollama.

To contribute, open a pull request against the repository or email us. Questions and discussion go in the Community Forum.