碾压 OpenAI,DeepSeek-R1 发布!如何在本地实现 DeepSeek?

近日,幻方量化旗下 AI 公司深度求索(DeepSeek)正式发布 DeepSeek-R1 模型。在数学、代码、自然语言推理等任务上,该模型性能比肩 OpenAI o1 正式版。DeepSeek 称,R1 在后训练阶段大规模使用了强化学习技术,在仅有极少标注数据的情况下,极大提升了模型推理能力。

DeepSeek 不仅将 R1 训练技术全部公开,还蒸馏了 6 个小模型开源给社区,允许用户借此训练其他模型。

API 价格方面,每百万输入 tokens 1 元(缓存命中)/4 元(缓存未命中),每百万输出 tokens 16 元,较 o1 正式版低 27-55 倍。

DeepSeek-R1 可以说是一个选能型选手,在各项任务上展现了超乎想象的能力,特别是在 AIME 和 MATH-500 这些高难度挑战上,DeepSeek-R1 的成绩简直让人目瞪口呆,跟 OpenAI o1 比起来,毫不逊色,甚至还有点小超越。你想没想过,自己也能在本地实现这样一个功能强大的 DeepSeek 呢?
今天我来手把手教大家,使用一款 AI 搜索开发框架--LeetTools 轻松在本地实现 DeepSeek。
演示
📌 安装与配置 LeetTools
创建虚拟环境并安装 LeetTools
1)从 anaconda.com 下载并安装 naconda
2)从 code.visualstudio.com 下载并安装 Visual Studio
3)打开 anaconda,从左侧菜单选择 Environment,再点击下方的 Creat,为 LeetTools 创建一个虚拟环境

4)在弹出的对话框中,给虚拟环境起一个名字,比如 LeetTools,接着勾选 Python,选择版本 3.11.11,然后选择 Create,这样就创建了 LeetTools 的虚拟环境。

5)打开 Visual Studio

6)选择最左侧菜单栏的 Extension 按钮,安装 Python,Python Debugger,Pylance,Git Extension Pack,Git History,Github Repository,gitignore,Gitlens 扩展插件

7)点击最左侧菜单栏的 Source Control,然后点击 Clone Repository 按钮

8)在弹出的地址框中输入 LeetTools 的 Github 地址:🔗https://github.com/leettools-dev/leettools

9)在弹出的对话框中,选择下方的新建文件夹,建一个 LeetTools 的存储数据的文件夹,然后选择该文件夹,点击右下方的 Select as Repository Destination,完成前期的配置工作,接下来就是 LeetTools 安装的过程了

10)然后在桌面上端的菜单栏里选择,Terminal,New Terminal,就在 Visual Studio 里打开了一个终端窗口然后就可以开始 LeetTools 的安装了。

2. 设置环境变量
3. 运行 LeetTools 命令
示例代码:
定制化场景应用
通过 LeetTools ,开发者可以轻松实现 DeepSeek 的强大功能。当然,LeetTools 的能力远不止于此。在它的开发框架上,开发者们可以大展身手,根据自身需求,开发出各种定制化的场景应用,让智能搜索真正融入到生活的方方面面。
版权声明: 本文为 InfoQ 作者【智领云科技】的原创文章。
原文链接:【http://xie.infoq.cn/article/61fb57d0078429e519f8ab207】。文章转载请联系作者。
评论