Support Fun-CosyVoice3 eagle3 speculative decoding#198
Merged
Conversation
01cc81b to
672eec2
Compare
yghstill
reviewed
Jan 12, 2026
| input_len=input_ids.shape[1], | ||
| ) | ||
|
|
||
| def prepare_generation_cosyvoice3( |
Collaborator
There was a problem hiding this comment.
GenerationManager要不要拆开,cosyvoice3的继承自GenerationManager
| return (state.input_ids, state.new_token, step) if log else state.input_ids | ||
|
|
||
|
|
||
| class CosyVoice3Eagle3Model(nn.Module): |
Collaborator
There was a problem hiding this comment.
不能复用Eagle3Model里的一些成员函数?
| # limitations under the License. | ||
|
|
||
| from .eagle3 import Eagle3Model | ||
| from .eagle3 import CosyVoice3Eagle3Model, Eagle3Model |
Collaborator
There was a problem hiding this comment.
CosyVoice3Eagle3Model放在Eagle3Model的后面,保持继承的关系顺序
其他init文件中内容也修改下
| self.BenchmarkConfig = pytorch_benchmark.BenchmarkConfig | ||
| self.BenchmarkEngine = pytorch_benchmark.BenchmarkEngine | ||
| self.BenchmarkMode = pytorch_benchmark.BenchmarkMode | ||
| elif self.deploy_backend == "pytorch_tts": |
Collaborator
There was a problem hiding this comment.
tts模型还有什么可以判断的字段,pytorch_tts有些trick
yghstill
approved these changes
Jan 13, 2026
dawnranger
pushed a commit
to dawnranger/AngelSlim
that referenced
this pull request
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.