Views
No views yet
app.py, lora_ui.pylora_train.pyqwen_caption_app.py, qwen_audio_captioning.py, scripts/annotations/af3_chatgpt_pipeline.py, scripts/pipeline/, services/pipeline_api.pyreact-ui/handler.py, acestep/scripts/hf_clone.pyscripts/endpoint/, scripts/jobs/1python -m pip install --upgrade pip
2python -m pip install -r requirements.txt
3python app.pyhttp://localhost:7860.1python -m pip install --upgrade pip
2python -m pip install -r requirements.txt.env from .env.example and fill secrets1HF_TOKEN=hf_xxx
2HF_AF3_ENDPOINT_URL=https://YOUR_AF3_ENDPOINT.endpoints.huggingface.cloud
3OPENAI_API_KEY=sk-...
4OPENAI_MODEL=gpt-5-mini
5AF3_MODEL_ID=nvidia/audio-flamingo-3-hf1python scripts/hf_clone.py space --repo-id YOUR_USERNAME/YOUR_SPACE_NAME
2python scripts/hf_clone.py af3-nvidia-endpoint --repo-id YOUR_USERNAME/YOUR_AF3_NVIDIA_ENDPOINT_REPOcustom.handler.py exists in the endpoint repo.HF_TOKEN, AF3_NV_DEFAULT_MODE=think).1python scripts/pipeline/run_af3_chatgpt_pipeline.py \
2 --dataset-dir ./train-dataset \
3 --backend hf_endpoint \
4 --endpoint-url "$HF_AF3_ENDPOINT_URL" \
5 --openai-api-key "$OPENAI_API_KEY"1python scripts/pipeline/refine_dataset_json_with_openai.py \
2 --dataset-dir ./train-dataset \
3 --enable-web-searchsource.rich_details.python app.pyscripts/endpoint/..zip or adapter files),
then load it without retraining in this Space..env (never commit this file):1HF_TOKEN=hf_xxx
2HF_AF3_ENDPOINT_URL=https://bc3r76slij67lskb.us-east-1.aws.endpoints.huggingface.cloud
3OPENAI_API_KEY=sk-...
4OPENAI_MODEL=gpt-5-mini
5AF3_MODEL_ID=nvidia/audio-flamingo-3-hfpython af3_gui_app.py.\scripts\dev\run_af3_gui.ps1http://127.0.0.1:8008.1# Linux/macOS
2export HF_TOKEN=hf_xxx
3
4# Windows PowerShell
5$env:HF_TOKEN="hf_xxx"python scripts/hf_clone.py space --repo-id YOUR_USERNAME/YOUR_SPACE_NAMEpython scripts/hf_clone.py endpoint --repo-id YOUR_USERNAME/YOUR_ENDPOINT_REPOpython scripts/hf_clone.py qwen-endpoint --repo-id YOUR_USERNAME/YOUR_QWEN_ENDPOINT_REPOpython scripts/hf_clone.py af3-endpoint --repo-id YOUR_USERNAME/YOUR_AF3_ENDPOINT_REPOcustom so it loads the custom handler.py.python scripts/hf_clone.py af3-nvidia-endpoint --repo-id YOUR_USERNAME/YOUR_AF3_NVIDIA_ENDPOINT_REPO1python scripts/hf_clone.py all \
2 --space-repo-id YOUR_USERNAME/YOUR_SPACE_NAME \
3 --endpoint-repo-id YOUR_USERNAME/YOUR_ENDPOINT_REPO1.
2|- app.py
3|- lora_ui.py
4|- lora_train.py
5|- qwen_caption_app.py
6|- qwen_audio_captioning.py
7|- af3_chatgpt_pipeline.py
8|- af3_gui_app.py
9|- handler.py
10|- acestep/
11|- scripts/
12| |- hf_clone.py
13| |- dev/
14| | |- run_af3_gui.py
15| | `- run_af3_gui.ps1
16| |- annotations/
17| | `- qwen_caption_dataset.py
18| |- pipeline/
19| | `- run_af3_chatgpt_pipeline.py
20| |- endpoint/
21| | |- generate_interactive.py
22| | |- test.ps1
23| | |- test.bat
24| | |- test_rnb.bat
25| | `- test_rnb_2min.bat
26| `- jobs/
27| `- submit_hf_lora_job.ps1
28| `- submit_hf_qwen_caption_job.ps1
29|- services/
30| `- pipeline_api.py
31|- react-ui/
32|- utils/
33| `- env_config.py
34|- docs/
35| |- deploy/
36| `- guides/
37|- summaries/
38| `- findings.md
39`- templates/hf-endpoint/.wav, .flac, .mp3, .ogg, .opus, .m4a, .aacsong_001.wavsong_001.json1{
2 "caption": "melodic emotional rnb pop with warm pads",
3 "lyrics": "[Verse]\\n...",
4 "bpm": 92,
5 "keyscale": "Am",
6 "timesignature": "4/4",
7 "vocal_language": "en",
8 "duration": 120
9}python qwen_caption_app.py1python scripts/annotations/qwen_caption_dataset.py \
2 --dataset-dir ./dataset_inbox \
3 --backend local \
4 --model-id Qwen/Qwen2-Audio-7B-Instruct \
5 --output-dir ./qwen_annotations \
6 --copy-audio.json sidecars next to source audio by default for direct ACE-Step LoRA training.python lora_train.py --dataset-dir ./qwen_annotations/dataset --model-config acestep-v15-base1python scripts/pipeline/run_af3_chatgpt_pipeline.py \
2 --audio "./train-dataset/Andrew Spacey - Wonder (Prod Beat It AT).mp3" \
3 --backend hf_endpoint \
4 --endpoint-url "$HF_AF3_ENDPOINT_URL" \
5 --hf-token "$HF_TOKEN" \
6 --openai-api-key "$OPENAI_API_KEY" \
7 --artist-name "Andrew Spacey" \
8 --track-name "Wonder"1python scripts/pipeline/run_af3_chatgpt_pipeline.py \
2 --dataset-dir ./train-dataset \
3 --backend hf_endpoint \
4 --endpoint-url "$HF_AF3_ENDPOINT_URL" \
5 --openai-api-key "$OPENAI_API_KEY"1python scripts/pipeline/refine_dataset_json_with_openai.py \
2 --dataset-dir ./train-dataset \
3 --enable-web-search1python scripts/pipeline/refine_dataset_json_with_openai.py \
2 --dataset-dir ./train-dataset \
3 --recursive \
4 --enable-web-search \
5 --output-dir ./train-dataset-refinedpython af3_gui_app.pyuvicorn services.pipeline_api:app --host 0.0.0.0 --port 8008 --reload1cd react-ui
2npm install
3npm run devhttp://localhost:5173 (manual) or http://127.0.0.1:8008 (single-command).python scripts/endpoint/generate_interactive.pyscripts/endpoint/test.ps1scripts/endpoint/test.batsummaries/findings.mddocs/deploy/SPACE.mddocs/deploy/QWEN_SPACE.mddocs/deploy/ENDPOINT.mddocs/deploy/AF3_ENDPOINT.mddocs/deploy/AF3_NVIDIA_ENDPOINT.mddocs/guides/qwen2-audio-train.md, docs/guides/af3-chatgpt-pipeline.mdHF_TOKEN, HF_AF3_ENDPOINT_URL, OPENAI_API_KEY, .env)..gitignore..env is git-ignored; keep real credentials only in local .env.git status1git add .
2git commit -m "Consolidate AF3/Qwen pipelines, endpoint templates, and docs"git push github main