Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-music-system / .github/workflows/cloud-train.yml |
| Date | Not specified in source |
| Repository | Janady13/ai-music-system |
| Revision | 017052c0e72c6175378aebb7a7f9dd96e82c3ce2 |
| Branch | codex/create-ai-for-music-generation |
| Path or archive member | .github/workflows/cloud-train.yml |
| Original SHA-256 | bd7e6cb4c7a416025184da09c8ff67797e400b93484d744320e56eac88de2aac |
| Git blob SHA | 7c21a605ee9d13658db26c4a4d4446bd52e9810e |
| Reading-copy SHA-256 | bd7e6cb4c7a416025184da09c8ff67797e400b93484d744320e56eac88de2aac |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/ai-music-system / .github/workflows/cloud-train.yml | codex/create-ai-for-music-generation | 017052c0e72c6175378aebb7a7f9dd96e82c3ce2 | Open original |
| Janady13/ai-music-system / .github/workflows/cloud-train.yml | codex/create-ai-for-music-generation-ifwcfc | cd5207850253ee238f8a267c043b1e3c070ed81a | Open original |
| Janady13/ai-music-system / .github/workflows/cloud-train.yml | codex/create-ai-for-music-generation | 017052c0e72c6175378aebb7a7f9dd96e82c3ce2 | Open original |
Recovered source transcript
Download complete source text ↓75 lines · 1.9 KB
name: cloud-train
on:
push:
branches: [ main ]
schedule:
- cron: "*/30 * * * *" # every 30 minutes
workflow_dispatch:
jobs:
train:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v4
- name: python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: create venv
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip wheel setuptools
- name: install deps
run: |
. .venv/bin/activate
pip install -r requirements.txt || true
# ensure vendored audiocraft
if [ -d vendor/audiocraft ]; then
pip install -e vendor/audiocraft
else
pip install git+https://github.com/facebookresearch/audiocraft.git@0d9f0a9
fi
- name: prepare data
run: |
. .venv/bin/activate
mkdir -p data/raw data/music32k
# if no raw files exist, add a tiny sample so the loop runs
if [ ! "$(ls -A data/raw 2>/dev/null)" ]; then
printf "lofi hip hop beats\n" > data/raw/sample.txt
fi
python tools/resample_to_32k.py data/raw data/music32k
- name: train
env:
STEPS: "400"
run: |
. .venv/bin/activate
python train_musicgen.py
echo "done" > TRAIN_OK
- name: upload checkpoints
if: always()
uses: actions/upload-artifact@v4
with:
name: checkpoints-${{ github.run_id }}
path: |
checkpoints/**
TRAIN_OK
if-no-files-found: warn