File size: 386 Bytes
4089011
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from dataclasses import dataclass


@dataclass
class GenerationConfig:
    """Configuration for audio generation with enhanced parameters."""
    temperature: float = 0.9
    top_k: int = 50
    top_p: float = 0.95
    repetition_penalty: float = 1.1
    max_length: int = 2048
    min_length: int = 10
    do_sample: bool = True
    num_beams: int = 1
    early_stopping: bool = False