随笔分类 -  大模型

如何在自己的项目中导入huggingface的模型--python版
摘要:使用huggingface的方式 建议使用colab在线测试代码和训练模型(需FQ)https://colab.research.google.com/ 6.1使用pipeline translator = pipeline( "translation", model="facebook/nllb- 阅读全文
posted @ 2025-05-15 09:26 alwaysnepenthe 阅读(61) 评论(0) 推荐(0)
pytorch 和 tensorflow 在同一环境中可能遇到的问题
摘要:问题背景 主包在实现一个语音助手功能的开发时,其中语音识别使用的模型是基于pytorch模型,在语言类别识别和翻译的模型是基于tensorflow训练的模型,主包傻傻的在原来的conda环境中经过严密对比numpy版本为1.26.4,python版本为3.10符合tensorflow版本2.10的安 阅读全文
posted @ 2025-05-13 13:39 alwaysnepenthe 阅读(124) 评论(0) 推荐(0)