TencentGameMate / chinese_speech_pretrain

chinese speech pretrained models
965 stars 83 forks source link

如何将预训练的权重转换成huggingface格式? #54

Open CodeMrSheep opened 2 months ago

CodeMrSheep commented 2 months ago

请问我也基于fairseq预训练了一个hubert_large的权重(.pt),但是怎么将这个权重转换成huggingface格式(.bin)呢

LiuShixing commented 2 months ago

你找找huggingface的transformers ,里面好像有转换脚本

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: LimYoung @.> 发送时间: 2024年5月23日 18:03 收件人: TencentGameMate/chinese_speech_pretrain @.> 抄送: Subscribed @.***> 主题: Re: [TencentGameMate/chinese_speech_pretrain] 如何将预训练的权重转换成huggingface格式? (Issue #54)

请问我也基于fairseq预训练了一个hubert_large的权重(.pt),但是怎么将这个权重转换成huggingface格式(.bin)呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>