-
Notifications
You must be signed in to change notification settings - Fork 0
add v3 support #4
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
Conversation
Pull Request Review: Add Parakeet v3 SupportOverviewThis PR adds support for the Parakeet v3 model alongside the existing v2 model, with improved benchmarking metrics (WER and CER). The implementation is generally solid with good performance results, but there are several areas that need attention. Code Quality & Best PracticesStrengths:
Issues:1. Magic Number Without Documentation (src/eddy_c.cpp:379) 2. Silent Fallback Logic (src/eddy_c.cpp:379) 3. Windows-Only Legacy Path Handling (src/eddy_c.cpp:401-406) Potential Bugs1. CRITICAL: Vocabulary Size Validation Missing (src/models/parakeet-v2/tokenizer.cpp:24-34) 2. Integer Overflow Risk (src/models/parakeet-v2/tokenizer.cpp:39) 3. Benchmark Metric Calculation Changed (benchmarks/benchmark.py:401-404)
Performance ConsiderationsPositive:
Concerns:1. Redundant String Construction (src/eddy_c.cpp:388-394) 2. Double Iteration Over Vocabulary Security Concerns1. Unchecked File Path Concatenation (src/eddy_c.cpp:412-416) 2. No Input Validation on blank_token_id Test CoverageCRITICAL ISSUE: No automated tests for this functionality The PR adds significant new functionality but includes:
Recommendations:
Additional Issues1. Inconsistent Default Behavior 2. Missing Documentation
3. Breaking Change Not Highlighted Recommendations SummaryMust Fix (Blocking):
Should Fix:
Nice to Have:
ConclusionThis is a solid PR that successfully adds v3 support with good performance results. However, it has several security and correctness issues that should be addressed before merging. The lack of automated tests is concerning for a core feature addition. Recommendation: Request changes - address critical issues (validation, tests, breaking change documentation) before merging. Great work on the implementation! The code is clean and the benchmarks show excellent performance. With the suggested fixes, this will be a strong addition to the codebase. Review generated with assistance from Claude Code |
BrandonWeng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Uh oh!
There was an error while loading. Please reload this page.