sovthpaw commited on
Commit
e696ea6
·
verified ·
1 Parent(s): 0be7038

Upload scripts/omnistep-jammit with huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/omnistep-jammit +70 -0
scripts/omnistep-jammit ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # omnistep-jammit — bash wrapper for ACE-Step music generation
3
+ # (the legacy `jammit` script at ~/bin/jammit, updated for OmniStep 12A3B)
4
+ #
5
+ # Usage:
6
+ # omnistep-jammit "your prompt" [options]
7
+ #
8
+ # Options:
9
+ # --duration_seconds SECONDS Duration in seconds (default: 60)
10
+ # --infer_steps STEPS Inference steps (default: 8 turbo)
11
+ # --guidance_scale SCALE Guidance scale (default: 7.0)
12
+ # --infinite false|true Infinite loop mode (default: false)
13
+ # --lyrics TEXT Lyrics (default: none, instrumental)
14
+ # --instrumental Force instrumental
15
+ # --help, -h Show this help
16
+
17
+ set -e
18
+
19
+ OMNISTEP_DIR="$(cd "$(dirname "$0")/.." && pwd)"
20
+ SCRIPTS_DIR="$OMNISTEP_DIR/scripts"
21
+
22
+ if [ ! -f "$SCRIPTS_DIR/run_omnistep_6a3b.py" ]; then
23
+ echo "❌ Error: run_omnistep_6a3b.py not found at $SCRIPTS_DIR"
24
+ echo " Make sure you're running this from the OmniStep 12A3B repo."
25
+ exit 1
26
+ fi
27
+
28
+ if [ "$1" = "--help" ] || [ "$1" = "-h" ] || -z "$1" ]; then
29
+ cat <<EOF
30
+ 🎵 omnistep-jammit — OmniStep 12A3B ACE-Step music generation
31
+ (OmniStep 12A3B = Qwen2.5-Omni-3B + ACE-Step v1.5 XL 4B, Darwin-merged)
32
+
33
+ Usage:
34
+ omnistep-jammit "your prompt" [options]
35
+
36
+ Options:
37
+ --duration_seconds SECONDS Duration in seconds (default: 60)
38
+ --infer_steps STEPS Inference steps (default: 8 turbo)
39
+ --guidance_scale SCALE Guidance scale (default: 7.0)
40
+ --infinite Infinite background music loop (Evolutionary Radio)
41
+ --lyrics TEXT Add lyrics
42
+ --instrumental Force instrumental
43
+ --help, -h This help
44
+
45
+ Examples:
46
+ omnistep-jammit "chill lofi beats for late-night coding" --duration 120
47
+ omnistep-jammit "aggressive metal, 808s" --infer_steps 20
48
+ omnistep-jammit "warm ambient pad" --infinite # infinite background music
49
+
50
+ The diffusion (music) part runs at F16 (unquantized) for max quality.
51
+ The transformer (text/multimodal) part can be quantized via the 4 GGUF
52
+ quantizations (F16, Q8_0, Q4_K_M, Q4_0) shipped in this repo.
53
+ EOF
54
+ exit 0
55
+ fi
56
+
57
+ # Detect --infinite mode → delegate to the radio script
58
+ if [[ " $* " == *" --infinite "* ]] || [[ "$1" == "--infinite" ]]; then
59
+ # Strip --infinite from args, delegate to omnistep_radio.py
60
+ args=()
61
+ for arg in "$@"; do
62
+ if [ "$arg" != "--infinite" ]; then
63
+ args+=("$arg")
64
+ fi
65
+ done
66
+ exec python3 "$SCRIPTS_DIR/omnistep_radio.py" "${args[@]}"
67
+ fi
68
+
69
+ # One-shot mode → delegate to run_omnistep_6a3b.py music
70
+ exec python3 "$SCRIPTS_DIR/run_omnistep_6a3b.py" music "$@"