Skip to content

fix: address Devin review issues in Qwen3-ForcedAligner scripts#32

Merged
Alex-Wengg merged 2 commits intomainfrom
fix/qwen3-forced-aligner-review
Mar 21, 2026
Merged

fix: address Devin review issues in Qwen3-ForcedAligner scripts#32
Alex-Wengg merged 2 commits intomainfrom
fix/qwen3-forced-aligner-review

Conversation

@Alex-Wengg
Copy link
Copy Markdown
Member

@Alex-Wengg Alex-Wengg commented Mar 21, 2026

Summary

Follow-up to PR #21 addressing issues flagged by Devin review.

  • Fix TypeError from dict slicing: ref_data[:num_files]ref_data["samples"][:num_files]
  • Fix KeyError on sample key: sample["text"]sample["transcript"]
  • Fix KeyError on alignment keys: ref["start_ms"]/ref["end_ms"]ref["start_time_ms"]/ref["end_time_ms"]
  • Thread --no-optimize CLI flag through all 6 _coreml_convert() calls (was silently ignored)

Test plan

  • Run uv run python run_coreml_inference.py --compare-pytorch to verify parity comparison works
  • Run uv run python convert-coreml.py --no-optimize to verify flag is respected

Open with Devin

- Fix dict slicing on ref_data (use ref_data["samples"] to match
  compare-models.py output format)
- Fix KeyError: use "transcript" key instead of "text"
- Fix KeyError: use "start_time_ms"/"end_time_ms" instead of
  "start_ms"/"end_ms" to match compare-models.py output
- Thread --no-optimize CLI flag through all _coreml_convert calls
  (was silently ignored before)
devin-ai-integration[bot]

This comment was marked as resolved.

@Alex-Wengg Alex-Wengg merged commit 23081f8 into main Mar 21, 2026
@Alex-Wengg Alex-Wengg deleted the fix/qwen3-forced-aligner-review branch March 21, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant