File size: 1,386 Bytes
bf56a88
 
 
 
 
 
 
 
ebac62f
bf56a88
 
 
 
 
ebac62f
bf56a88
ebac62f
bf56a88
7ecaef8
 
 
 
bf56a88
 
 
7f940d3
bf56a88
 
7f940d3
 
bf56a88
 
7f940d3
 
 
 
 
 
 
 
 
 
 
ebac62f
7f940d3
 
 
 
 
 
 
 
 
 
 
 
 
 
bf56a88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
library_name: audio-interv
tags:
  - ace-step
  - activation-steering
  - audio
  - caa
  - diffusion
  - electronic-music
  - interpretability
  - music
  - steering
---

# CAA — `electronic_music` (ACE-Step)

Steering vectors for the **electronic_music** concept on ACE-Step, computed via contrastive activation addition (CAA).

## Paper

TADA! Tuning Audio Diffusion Models through Activation Steering — [https://huggingface.co/papers/2602.11910](https://huggingface.co/papers/2602.11910)

## Quickstart

```python
from src.steering import SteerableACEModel, CAASteeringController

model = SteerableACEModel(device="cuda")
model.pipeline.load()
ctrl = CAASteeringController.from_pretrained("lukasz-staniszewski/ace-step-caa-rock-genre", alpha=20.0)

with model.steer(ctrl):
    audio = model.generate(
        prompt="instrumental music", lyrics="[inst]",
        audio_duration=10.0, infer_step=30, manual_seed=0,
    )
```

## Generation config

```json
{
  "method": "standard_caa",
  "concept": "electronic_music",
  "lyrics": "[inst]",
  "num_cfg_passes": 2,
  "save_all_cfg_passes": true,
  "audio_duration": 30.0,
  "num_inference_steps": 30,
  "seed": 10,
  "device": "cuda",
  "save_dir": "steering_vectors/caa",
  "guidance_scale_text": 0.0,
  "guidance_scale_lyric": 0.0,
  "guidance_scale": 5.0,
  "guidance_interval": 1.0,
  "guidance_interval_decay": 0.0
}
```