Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression Test Pipeline #120

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

Conversation

Abhinay1997
Copy link
Contributor

@Abhinay1997 Abhinay1997 commented Apr 20, 2024

  • Add English text normlaization.
  • Add WER calculations.
  • Compare and check norm outputs from Python implementation
  • Add WER to the regression tests once Memory and Latency Regression Tests #99 is merged

@Abhinay1997
Copy link
Contributor Author

Code is still messy. Needs cleanup once the normalization starts working.

@Abhinay1997
Copy link
Contributor Author

Running tests locally. Adding more unit tests for the new normalization code.

@Abhinay1997 Abhinay1997 marked this pull request as ready for review May 28, 2024 03:22
@ZachNagengast ZachNagengast changed the title English Normalisation and WER Utils Regression Test Pipeline Jun 25, 2024
@ZachNagengast ZachNagengast linked an issue Jun 25, 2024 that may be closed by this pull request
@ZachNagengast ZachNagengast added the enhancement Improves existing code label Jun 25, 2024
Copy link
Contributor

@atiorh atiorh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abhinay1997 As discussed offline, here are the last few items before we can merge this one:

  • Removing example test result JSONs
  • Removing the Fraction implementation altogether
  • Adding AudioEncoder latency measurements to LatencyStats

We discussed the following as nice to haves (could defer to a future PR):

  • Writing the following static attributes to the resulting JSON:
"static_attributes": 
- whisperkit_version (string)
- os (string)
- encoder_compute_units (string)
- decoder_compute_units (string)
- enable_word_timestamps (boolean)
- enable_eager_decoding (boolean)
- enable_vad (boolean)
- silence_threshold 
- is_low_power_mode (boolean)
- is_stream_simulated (boolean)
  • Periodically (e.g. 1 minute) measuring the following stats in a separate thread and writing the timeseries results to the final JSON:
"system_measurements":
- thermal_state (string)
- device_temperature (int)
- memory_total_available_gb (float)
- memory_total_used_gb (float)
- memory_app_allocated_gb (float)
- memory_app_used_gb (float)
- memory_swap_used_gb (float)
- battery_level (float)
- disk_total_space_gb (float)
- disk_free_space_gb (float)

@Abhinay1997
Copy link
Contributor Author

@atiorh made the changes except for the AudioEncoder latency stats. Need to add a callback for that. Discussing with Zack on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves existing code
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants