Commit 1db3ea5
GPU-accelerated Phrase-Boosting (GPU-PB) for AED decoding (NVIDIA-NeMo#14108)
* add initial scripts
Signed-off-by: andrusenkoau <[email protected]>
* add boosting tree construction
Signed-off-by: andrusenkoau <[email protected]>
* add pb support to rnnt greedy decoding for python impl only
Signed-off-by: andrusenkoau <[email protected]>
* first step for the integration of PB for rnnt cuda decoding
Signed-off-by: andrusenkoau <[email protected]>
* some fixes
Signed-off-by: andrusenkoau <[email protected]>
* revert changes for rnnt decoding
Signed-off-by: andrusenkoau <[email protected]>
* add initial step for pb for aed model
Signed-off-by: andrusenkoau <[email protected]>
* fix a bug with fusion models integration for aed beam decoding
Signed-off-by: andrusenkoau <[email protected]>
* partial fix for eos score increasing after detection of context phrase
Signed-off-by: andrusenkoau <[email protected]>
* fix node score in the context graph
Signed-off-by: andrusenkoau <[email protected]>
* fix backoff weight for end node
Signed-off-by: andrusenkoau <[email protected]>
* add dummy boosting tree
Signed-off-by: andrusenkoau <[email protected]>
* add tests for the boosting tree
Signed-off-by: andrusenkoau <[email protected]>
* add more tests
Signed-off-by: andrusenkoau <[email protected]>
* minor fixes
Signed-off-by: andrusenkoau <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
* minor fixes
Signed-off-by: andrusenkoau <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
* minor fixes
Signed-off-by: andrusenkoau <[email protected]>
* fix not closed file
Signed-off-by: andrusenkoau <[email protected]>
* minor fix
Signed-off-by: andrusenkoau <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
* Update tests/collections/asr/test_boosting_tree.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* Update tests/collections/asr/decoding/test_multi_task_decoding.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* Update scripts/asr_context_biasing/build_gpu_boosting_tree.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* Update scripts/asr_context_biasing/compute_key_words_fscore.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* add asr model path + name
Signed-off-by: andrusenkoau <[email protected]>
* add bt config
Signed-off-by: andrusenkoau <[email protected]>
* add loading boosting tree from config
Signed-off-by: andrusenkoau <[email protected]>
* add a new test for test_boosting_tree_model_from_config
Signed-off-by: andrusenkoau <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
* minor fix
Signed-off-by: andrusenkoau <[email protected]>
* pr fixes
Signed-off-by: andrusenkoau <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
* minor fixes
Signed-off-by: andrusenkoau <[email protected]>
* minor fix
Signed-off-by: andrusenkoau <[email protected]>
* Update scripts/asr_context_biasing/build_gpu_boosting_tree.py
Co-authored-by: Vladimir Bataev <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* Update scripts/asr_context_biasing/build_gpu_boosting_tree.py
Co-authored-by: Vladimir Bataev <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
* Apply isort and black reformatting
Signed-off-by: andrusenkoau <[email protected]>
---------
Signed-off-by: andrusenkoau <[email protected]>
Signed-off-by: andrusenkoau <[email protected]>
Signed-off-by: Andrei Andrusenko <[email protected]>
Co-authored-by: andrusenkoau <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Co-authored-by: Vladimir Bataev <[email protected]>
Signed-off-by: Amir Hussein <[email protected]>1 parent 7cc2f0d commit 1db3ea5
File tree
12 files changed
+1473
-51
lines changed- nemo/collections/asr
- modules/transformer
- parts
- context_biasing
- submodules
- scripts/asr_context_biasing
- tests/collections/asr
- decoding
12 files changed
+1473
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 44 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
510 | | - | |
| 509 | + | |
511 | 510 | | |
512 | | - | |
| 511 | + | |
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
| |||
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
527 | | - | |
528 | | - | |
529 | | - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
530 | 529 | | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | | - | |
536 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | | - | |
544 | | - | |
545 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
546 | 554 | | |
547 | 555 | | |
548 | | - | |
549 | | - | |
550 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
551 | 563 | | |
552 | 564 | | |
553 | 565 | | |
| |||
583 | 595 | | |
584 | 596 | | |
585 | 597 | | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
590 | 604 | | |
591 | 605 | | |
592 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
593 | 611 | | |
594 | 612 | | |
595 | 613 | | |
| |||
605 | 623 | | |
606 | 624 | | |
607 | 625 | | |
608 | | - | |
609 | | - | |
610 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
611 | 632 | | |
612 | 633 | | |
613 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments