ltuncay commited on
Commit
ee02528
·
verified ·
1 Parent(s): a433c85

fix: default to single-phase extraction without overlap

Browse files
Files changed (3) hide show
  1. README.md +4 -2
  2. config.json +1 -1
  3. configuration_audio.py +1 -1
README.md CHANGED
@@ -95,7 +95,7 @@ challenge's standardized ranking. These evaluations precede the Transformers exp
95
  | Saved training step | 200,000, verified from checkpoint metadata |
96
  | Training precision | bfloat16 mixed precision |
97
  | Exported weight dtype | float32 |
98
- | Extraction policy | `overlap50_two_phase` |
99
 
100
  ## Load the model
101
 
@@ -128,7 +128,7 @@ Resample to `processor.sampling_rate` and downmix stereo before preprocessing.
128
  The extractor performs padding only; spectrogram/convolution features are computed
129
  inside the model. Pass the returned sample attention mask for variable durations.
130
  Outputs include a frame attention mask and timestamps in milliseconds (-1 for padding).
131
- `pooler_output` uses the saved HEAR extraction preset, including phase-balanced pooling.
132
  Frame features average frequency patches; they are not the raw frequency-time ViT grid.
133
 
134
  ## Fine-tuning
@@ -186,3 +186,5 @@ BEST-RQ-2.2 is a variant in the BEST-RQ-2 family. Cite the family paper when usi
186
 
187
  The model weights and bundled implementation are released under the MIT license.
188
  See `LICENSE` and `CODE_LICENSE`.
 
 
 
95
  | Saved training step | 200,000, verified from checkpoint metadata |
96
  | Training precision | bfloat16 mixed precision |
97
  | Exported weight dtype | float32 |
98
+ | Extraction policy | `native_one_phase` |
99
 
100
  ## Load the model
101
 
 
128
  The extractor performs padding only; spectrogram/convolution features are computed
129
  inside the model. Pass the returned sample attention mask for variable durations.
130
  Outputs include a frame attention mask and timestamps in milliseconds (-1 for padding).
131
+ `pooler_output` uses the saved HEAR extraction preset, using a single phase with no context-window overlap by default.
132
  Frame features average frequency patches; they are not the raw frequency-time ViT grid.
133
 
134
  ## Fine-tuning
 
186
 
187
  The model weights and bundled implementation are released under the MIT license.
188
  See `LICENSE` and `CODE_LICENSE`.
189
+
190
+ Default inference uses `native_one_phase` (no context-window overlap and one encoding phase). Reported benchmark results retain their stated evaluation presets; to reproduce overlapping two-phase evaluation, set `model.config.extraction_preset = "overlap50_two_phase"`.
config.json CHANGED
@@ -27,7 +27,7 @@
27
  "residual_type": "standard",
28
  "rope_mode": "1d"
29
  },
30
- "extraction_preset": "overlap50_two_phase",
31
  "feature_encoder_kwargs": {},
32
  "hidden_size": 768,
33
  "model_target": "src.models.best_rq22_module.BestRQ22Module",
 
27
  "residual_type": "standard",
28
  "rope_mode": "1d"
29
  },
30
+ "extraction_preset": "native_one_phase",
31
  "feature_encoder_kwargs": {},
32
  "hidden_size": 768,
33
  "model_target": "src.models.best_rq22_module.BestRQ22Module",
configuration_audio.py CHANGED
@@ -45,7 +45,7 @@ class AudioEmbeddingConfig(PretrainedConfig):
45
  feature_encoder_kwargs: dict[str, Any] | None = None,
46
  sampling_rate: int = 16000,
47
  spectrogram_adjustment_mode: str = "pad",
48
- extraction_preset: str = "overlap50_two_phase",
49
  **kwargs: Any,
50
  ) -> None:
51
  super().__init__(**kwargs)
 
45
  feature_encoder_kwargs: dict[str, Any] | None = None,
46
  sampling_rate: int = 16000,
47
  spectrogram_adjustment_mode: str = "pad",
48
+ extraction_preset: str = "native_one_phase",
49
  **kwargs: Any,
50
  ) -> None:
51
  super().__init__(**kwargs)