<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>BLOG</title>
        <link>https://blog.real-xc.com/</link>
        <description>XC’s Blog 🤣</description>
        <lastBuildDate>Fri, 04 Dec 2026 10:30:48 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, C on Earth-616</copyright>
        <item>
            <title><![CDATA[Claude Code 配置 Antigravity中的模型]]></title>
            <link>https://blog.real-xc.com/article/2e1e968e-85f9-8059-bc0d-db187b8c3662</link>
            <guid>https://blog.real-xc.com/article/2e1e968e-85f9-8059-bc0d-db187b8c3662</guid>
            <pubDate>Wed, 07 Jan 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Google给了每个使用Antigravity的账户（含免费账户）一些Gemini和Claude模型额度，包括当下最强的coding模型claude-opus-4-5-thinking]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2e1e968e85f98059bc0ddb187b8c3662"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2e1e968e85f980e78a0ef4dcefb95bd4" data-id="2e1e968e85f980e78a0ef4dcefb95bd4"><span><div id="2e1e968e85f980e78a0ef4dcefb95bd4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980e78a0ef4dcefb95bd4" title="Claude Code 配置指南"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Claude Code 配置指南</span></span></h2><div class="notion-text notion-block-2e1e968e85f980e1b86ef72c187e25e7">Google 为每个 Antigravity 账户（包括免费账户）提供了 Gemini 和 Claude 模型的使用额度，其中包括目前最强的编程模型 claude-opus-4-5-thinking。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f980819451d14f57564231" data-id="2e1e968e85f980819451d14f57564231"><span><div id="2e1e968e85f980819451d14f57564231" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980819451d14f57564231" title="一、前置准备：Antigravity Tools"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、前置准备：Antigravity Tools</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f9801f8f69e5e29f6b1592" data-id="2e1e968e85f9801f8f69e5e29f6b1592"><span><div id="2e1e968e85f9801f8f69e5e29f6b1592" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f9801f8f69e5e29f6b1592" title="1.1 什么是 Antigravity Tools"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 什么是 Antigravity Tools</span></span></h4><div class="notion-text notion-block-2e1e968e85f980ae8bbbf2e15906105f">Antigravity Tools 是一个 API 代理工具，与 Antigravity IDE（Google 推出的 AI 驱动开发环境）不同，它将 Antigravity IDE 内置的模型通过标准 API 接口对外提供服务，并支持多账号额度共享和管理。</div><div class="notion-text notion-block-2e1e968e85f980a59947f133bcf453c5"><b>项目地址：</b><a class="notion-link" href="https://github.com/lbjlaq/Antigravity-Manager" target="_blank" rel="noopener noreferrer">https://github.com/lbjlaq/Antigravity-Manager</a></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980b28d1bf6e589a312ee" data-id="2e1e968e85f980b28d1bf6e589a312ee"><span><div id="2e1e968e85f980b28d1bf6e589a312ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980b28d1bf6e589a312ee" title="1.2 配置 Antigravity Tools"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 配置 Antigravity Tools</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980e4abc0e14865be4419" data-id="2e1e968e85f980e4abc0e14865be4419"><span><div id="2e1e968e85f980e4abc0e14865be4419" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980e4abc0e14865be4419" title="步骤 1：登录 Google 账户"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">步骤 1：登录 Google 账户</span></span></h4><div class="notion-text notion-block-2e1e968e85f980fc8e44e78baf27f37f">打开 Antigravity Tools，使用你的 Google 账户登录。通常常用的 Google 账户都具有 Antigravity 访问权限和模型使用额度。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e1e968e85f980b2bd9bd71465c33451"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8789648c-9d31-40d7-9e4c-65d74fcb5a0a%3Afile-20260107160944751.png?table=block&amp;id=2e1e968e-85f9-80b2-bd9b-d71465c33451&amp;t=2e1e968e-85f9-80b2-bd9b-d71465c33451" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980cfba0be5ace7a17d85" data-id="2e1e968e85f980cfba0be5ace7a17d85"><span><div id="2e1e968e85f980cfba0be5ace7a17d85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980cfba0be5ace7a17d85" title="步骤 2：管理账号额度"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">步骤 2：管理账号额度</span></span></h4><div class="notion-text notion-block-2e1e968e85f98012bc02c15ea35aaec1">在&quot;账号管理&quot;页面可以添加多个账号，并查看每个账号的额度使用情况。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e1e968e85f980708624e4eb75712d1b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70bb0631-e354-4590-91bf-95919c813fd9%3Afile-20260107161009045.png?table=block&amp;id=2e1e968e-85f9-8070-8624-e4eb75712d1b&amp;t=2e1e968e-85f9-8070-8624-e4eb75712d1b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f98001918bc138ab959788" data-id="2e1e968e85f98001918bc138ab959788"><span><div id="2e1e968e85f98001918bc138ab959788" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98001918bc138ab959788" title="步骤 3：配置 API 反代服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">步骤 3：配置 API 反代服务</span></span></h4><div class="notion-text notion-block-2e1e968e85f980319b9dddd37d7c6fa5">在&quot;API 反代&quot;页面进行如下配置：</div><ol start="1" class="notion-list notion-list-numbered notion-block-2e1e968e85f9803dbfa1f0dc2e9b11fd" style="list-style-type:decimal"><li>完成基本设置</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-2e1e968e85f9800d92f3db79bd84e2d2" style="list-style-type:decimal"><li>点击右上角&quot;启动服务&quot;</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-2e1e968e85f9805c8a93fee130903a71" style="list-style-type:decimal"><li>复制生成的 API 密钥</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e1e968e85f980758678f9899e62e8a5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4c99614f-7b52-44e4-b9f8-23bde8f1e773%3Afile-20260107161030677.png?table=block&amp;id=2e1e968e-85f9-8075-8678-f9899e62e8a5&amp;t=2e1e968e-85f9-8075-8678-f9899e62e8a5" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-2e1e968e85f980f6b742daee613fb8df"><div>注意： 务必完成基本设置后再启动服务。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980ce9e68fbabee0e4c27" data-id="2e1e968e85f980ce9e68fbabee0e4c27"><span><div id="2e1e968e85f980ce9e68fbabee0e4c27" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980ce9e68fbabee0e4c27" title="步骤 4：了解模型映射关系"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">步骤 4：了解模型映射关系</span></span></h4><div class="notion-text notion-block-2e1e968e85f980a48092ff5893844335"><b>Antigravity 内置的模型列表：</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e1e968e85f980dc9018c1b17d8d4232"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3d85114b-8511-44f0-99e8-626a1abbd14a%3Afile-20260107161055918.png?table=block&amp;id=2e1e968e-85f9-80dc-9018-c1b17d8d4232&amp;t=2e1e968e-85f9-80dc-9018-c1b17d8d4232" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-2e1e968e85f98050b270ea6e6ea025b3"><div>提示： 如果在其他 Chatbot 工具中添加自定义供应商时看到了更多模型，这些实际上是 Antigravity Tools 对已有模型的映射。你可以在&quot;API 反代&quot;页面自定义模型名称与实际模型的映射关系。</div></blockquote><div class="notion-text notion-block-2e1e968e85f980a283e7d1af28fe8c89"><b>自定义模型映射示例（可选）：</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e1e968e85f980438af6d1e3fd9b3d5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac75a640f-6606-4426-a6a8-36531e2bf7c1%3Afile-20260107161110576.png?table=block&amp;id=2e1e968e-85f9-8043-8af6-d1e3fd9b3d5f&amp;t=2e1e968e-85f9-8043-8af6-d1e3fd9b3d5f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f98089b939ce7e405fb2c4" data-id="2e1e968e85f98089b939ce7e405fb2c4"><span><div id="2e1e968e85f98089b939ce7e405fb2c4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98089b939ce7e405fb2c4" title="二、配置 Claude Code"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、配置 Claude Code</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f9809992d5cafd41fc7906" data-id="2e1e968e85f9809992d5cafd41fc7906"><span><div id="2e1e968e85f9809992d5cafd41fc7906" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f9809992d5cafd41fc7906" title="2.1 什么是 Claude Code"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1 什么是 Claude Code</span></span></h4><div class="notion-text notion-block-2e1e968e85f9804c9edeebf60eb1926f"><a class="notion-link" href="https://claude.ai/code" target="_blank" rel="noopener noreferrer">Claude Code</a> 是由 Anthropic 推出的命令行（CLI）AI 编程助手。它直接在终端中运行，利用 Claude 大语言模型，通过自然语言指令帮助开发者完成编码、调试、代码生成、文档编写、重构等任务，是终端环境中的&quot;AI 结对编程伙伴&quot;。它能够深入理解项目上下文，执行复杂任务，实现自动化编程。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980dcac15d11b1c6e0120" data-id="2e1e968e85f980dcac15d11b1c6e0120"><span><div id="2e1e968e85f980dcac15d11b1c6e0120" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980dcac15d11b1c6e0120" title="2.2 使用自定义 API 配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2 使用自定义 API 配置</span></span></h4><div class="notion-text notion-block-2e1e968e85f9800e961ae8bbf3aa921a">如果你没有 Claude Max 订阅，无法直接在 Claude Code 中进行登录授权，可以通过自定义 <code class="notion-inline-code">base_url</code> 和 <code class="notion-inline-code">model</code> 的方式配置 Claude Code 使用的模型。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f9801f8795f200385cbc79" data-id="2e1e968e85f9801f8795f200385cbc79"><span><div id="2e1e968e85f9801f8795f200385cbc79" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f9801f8795f200385cbc79" title="2.3 环境变量说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.3 环境变量说明</span></span></h4><div class="notion-text notion-block-2e1e968e85f980e6b76fe30ff85f0000">Claude Code 通过环境变量进行配置，主要包括：</div><table class="notion-simple-table notion-block-2e1e968e85f9809eb9f2c5f4d68bfda4"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-2e1e968e85f980ba94e5d023e978887c"><td class="" style="width:120px"><div class="notion-simple-table-cell">环境变量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">说明</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9801da66be54ca9ece49d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">all_proxy</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">代理设置（支持 http、https、socks5 协议）</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f98039b913eb42a7eb5ed8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_AUTH_TOKEN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">API 认证令牌</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f980d69ecbdc30de8a1e08"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_BASE_URL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">API 基础地址</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9802d8d28cb835c4bd64b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认使用的模型</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f980c59962c495cd8658de"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_SONNET_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Sonnet 系列默认模型</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9808d8ca1ec0de30201a2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_OPUS_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Opus 系列默认模型</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9809287b9c06ee2d5657d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_HAIKU_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Haiku 系列默认模型</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9805097f4eac1294e4b85"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_SMALL_FAST_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">快速轻量模型</div></td></tr></tbody></table><blockquote class="notion-quote notion-block-2e1e968e85f9803a9c0bc3bb56eb511a"><div>代理说明： all_proxy 是通用代理变量，适用于大多数情况。如果遇到代理不生效的问题，可能需要额外设置 http_proxy 和 https_proxy。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f98002ab53c7cec1492ca1" data-id="2e1e968e85f98002ab53c7cec1492ca1"><span><div id="2e1e968e85f98002ab53c7cec1492ca1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98002ab53c7cec1492ca1" title="2.4 CMD 配置方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.4 CMD 配置方法</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980faa1e3ea6deb07a813" data-id="2e1e968e85f980faa1e3ea6deb07a813"><span><div id="2e1e968e85f980faa1e3ea6deb07a813" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980faa1e3ea6deb07a813" title="方法一：临时设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法一：临时设置</span></span></h4><div class="notion-text notion-block-2e1e968e85f980b0a06cc4771f096c15">临时设置仅在当前 CMD 窗口有效，关闭窗口后失效。</div><div class="notion-text notion-block-2e1e968e85f980e48d63d6fe846fe024">在 CMD 中直接输入以下命令：</div><div class="notion-text notion-block-2e1e968e85f980099961efecd992e905"><b>适用场景：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980f9afe1c57912564645"><li>临时测试不同配置</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9805f8b4bf87ad6ef7aa5"><li>不影响其他 CMD 窗口</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980d8b1d5caaaed6adf34"><li>快速切换配置</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980f6a3f6d23dc72404e4" data-id="2e1e968e85f980f6a3f6d23dc72404e4"><span><div id="2e1e968e85f980f6a3f6d23dc72404e4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980f6a3f6d23dc72404e4" title="方法二：永久设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法二：永久设置</span></span></h4><div class="notion-text notion-block-2e1e968e85f980aa980def52ad4f0182">使用 <code class="notion-inline-code">setx</code> 命令将环境变量永久保存到系统中：</div><div class="notion-text notion-block-2e1e968e85f98059986be8246c46550e"><b>重要提示：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980099452ece43ffbfa36"><li>使用 <code class="notion-inline-code">setx</code> 后需要<b>重新打开 CMD 窗口</b>才能生效</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98067a5ead513672b577f"><li>已经打开的 CMD 窗口不会自动更新</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98021a822fd533c94d99e"><li>配置会永久保存，系统重启后依然有效</li></ul><div class="notion-text notion-block-2e1e968e85f9801380e9c4c5f7c52b17"><b>适用场景：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98023bdaadf4971c9f1ef"><li>长期使用固定配置</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9807389b9f843c6e787b7"><li>避免每次手动设置</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9808a9932f63fb40320d7"><li>多个项目使用相同配置</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f98002a4faf0c10dbd673e" data-id="2e1e968e85f98002a4faf0c10dbd673e"><span><div id="2e1e968e85f98002a4faf0c10dbd673e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98002a4faf0c10dbd673e" title="方法三：批处理文件（推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法三：批处理文件（推荐）</span></span></h4><div class="notion-text notion-block-2e1e968e85f980d781a6d481bd6f12af">创建一个批处理文件，方便快速切换和应用配置。</div><div class="notion-text notion-block-2e1e968e85f980ab9315cc1ad47ff32b"><b>步骤：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-2e1e968e85f9804b930fcadb65d50d7b" style="list-style-type:decimal"><li>在任意位置创建 <code class="notion-inline-code">set_claude_env.bat</code> 文件</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-2e1e968e85f9805bbfb9f32a8f6604e9" style="list-style-type:decimal"><li>文件内容如下：</li></ol><ol start="1" class="notion-list notion-list-numbered notion-block-2e1e968e85f98000ab45c9d7b276f0d0" style="list-style-type:decimal"><li>使用方法：</li></ol><div class="notion-text notion-block-2e1e968e85f980e9bc9ded4ca9f90c5b"><b>适用场景：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9802a9725d69d739a11e3"><li>需要频繁切换配置</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980dfa3d7d4a82a571b97"><li>需要更直观的配置确认</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980db8f9cfff8f573ab07"><li>团队共享配置文件</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980a38e91c6f68c5db01a"><li>创建多个批处理文件对应不同配置</li></ul><div class="notion-text notion-block-2e1e968e85f98058b5aad55390cca3b9"><b>进阶用法：</b></div><div class="notion-text notion-block-2e1e968e85f98074b5fcf39ea3d61351">可以创建多个批处理文件用于不同场景：</div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980419530f8c64a4d483d"><li><code class="notion-inline-code">set_claude_fast.bat</code> - 使用快速模型</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98057994ccad036319706"><li><code class="notion-inline-code">set_claude_thinking.bat</code> - 使用思考模型</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980a1afd7c1ca2cd1c35b"><li><code class="notion-inline-code">set_claude_default.bat</code> - 默认配置</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980ae9240cb41b8e51a2e" data-id="2e1e968e85f980ae9240cb41b8e51a2e"><span><div id="2e1e968e85f980ae9240cb41b8e51a2e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980ae9240cb41b8e51a2e" title="2.5 验证配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.5 验证配置</span></span></h4><div class="notion-text notion-block-2e1e968e85f98042999fc0b029ef0c6a">设置环境变量后，使用以下命令验证：</div><div class="notion-text notion-block-2e1e968e85f9800685f5de0acb13478c">如果输出正确的值，说明配置成功。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f98015b6d4ca75f7183f79" data-id="2e1e968e85f98015b6d4ca75f7183f79"><span><div id="2e1e968e85f98015b6d4ca75f7183f79" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98015b6d4ca75f7183f79" title="2.6 推荐的模型配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.6 推荐的模型配置</span></span></h4><table class="notion-simple-table notion-block-2e1e968e85f980568c79f310a44f4dbf"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-2e1e968e85f980378af7d186408fd75b"><td class="" style="width:120px"><div class="notion-simple-table-cell">环境变量</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">推荐模型</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">说明</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f98052a0fbc396ba9b14a8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">claude-sonnet-4-5</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">默认主力模型，平衡性能和速度</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9803faf6eeef7a2039586"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_SONNET_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">claude-sonnet-4-5</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Sonnet 系列最新版本</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f98004a9bccaf17f4f204b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_OPUS_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">claude-opus-4-5-thinking</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最强推理模型，适合复杂任务</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9805b9bd1eb5b763037a3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_DEFAULT_HAIKU_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">gemini-3-flash</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">快速响应模型</div></td></tr><tr class="notion-simple-table-row notion-block-2e1e968e85f9804084cad1bb381e0070"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ANTHROPIC_SMALL_FAST_MODEL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">gemini-3-flash</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">最轻量快速模型</div></td></tr></tbody></table><blockquote class="notion-quote notion-block-2e1e968e85f980da9139d2ccee02dbfe"><div><code class="notion-inline-code">ANTHROPIC_SMALL_FAST_MODEL</code> 可能已经失效，只需要配置<code class="notion-inline-code">ANTHROPIC_DEFAULT_HAIKU_MODEL</code> 就行，这里我用了很快响应的 <code class="notion-inline-code">gemini-3-flash</code> ，你也可以设置其他模型。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f98088b369fbd8b1a773a4" data-id="2e1e968e85f98088b369fbd8b1a773a4"><span><div id="2e1e968e85f98088b369fbd8b1a773a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98088b369fbd8b1a773a4" title="2.7 可用模型列表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.7 可用模型列表</span></span></h4><div class="notion-text notion-block-2e1e968e85f980faafd2fb1987198027">根据 Antigravity Tools 配置，以下模型可用：</div><div class="notion-text notion-block-2e1e968e85f98070b17df07de358a8d9"><b>Gemini 系列：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980f4b198d99dd9e9aad7"><li><code class="notion-inline-code">gemini-3-flash</code> - 快速版本</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9808dafbde7ca3e36f928"><li><code class="notion-inline-code">gemini-3-pro-high</code> - 高性能版本</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980ef8155e93e1587b642"><li><code class="notion-inline-code">gemini-3-pro-low</code> - 低成本版本</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9804eb053cb06d899d82f"><li><code class="notion-inline-code">gemini-3-pro-image</code> - 图像处理版本</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9808ba9bcecbb7d3e96ce"><li><code class="notion-inline-code">gemini-2.5-flash</code> - 2.5 快速版</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9806e80a1dae901a238b1"><li><code class="notion-inline-code">gemini-2.5-flash-lite</code> - 2.5 轻量版</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980bf9d99f0fbe80e8174"><li><code class="notion-inline-code">gemini-2.5-pro</code> - 2.5 专业版</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980c2a176f1f9e57e3507"><li><code class="notion-inline-code">gemini-2.5-flash-thinking</code> - 2.5 思考版</li></ul><div class="notion-text notion-block-2e1e968e85f980e19109edbb900de24e"><b>Claude 系列：</b></div><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98062a314faf609be27b1"><li><code class="notion-inline-code">claude-sonnet-4-5</code> - Sonnet 4.5</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9804ca938d78f89719ef3"><li><code class="notion-inline-code">claude-sonnet-4-5-thinking</code> - Sonnet 4.5 思考模式</li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f980dfa6dad3d0125b0044"><li><code class="notion-inline-code">claude-opus-4-5-thinking</code> - Opus 4.5 思考模式</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f980c3b7b0c3756cd6b851" data-id="2e1e968e85f980c3b7b0c3756cd6b851"><span><div id="2e1e968e85f980c3b7b0c3756cd6b851" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980c3b7b0c3756cd6b851" title="三、常见问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三、常见问题</span></span></h3><div class="notion-text notion-block-2e1e968e85f980f2a8d7e96db109c0fe"><b>Q: setx 设置后为什么没有生效？</b></div><div class="notion-text notion-block-2e1e968e85f9804e87c1fb6730c2c75b">A: <code class="notion-inline-code">setx</code> 命令只对新打开的 CMD 窗口生效，需要关闭当前窗口后重新打开。</div><div class="notion-text notion-block-2e1e968e85f98007918beced106c31c4"><b>Q: 如何取消某个环境变量？</b></div><div class="notion-text notion-block-2e1e968e85f9801e8ef6ee172a5673d4">A: 使用以下命令：</div><div class="notion-text notion-block-2e1e968e85f980d09786d4a606f60578"><b>Q: 如何在不同项目间切换配置？</b></div><div class="notion-text notion-block-2e1e968e85f98095b0ddc66f50944a25">A: 推荐使用方法三（批处理文件），为每个项目创建独立的配置文件。</div><div class="notion-text notion-block-2e1e968e85f98076a979da4b839b0851"><b>Q: 代理设置不生效怎么办？</b></div><div class="notion-text notion-block-2e1e968e85f9809ebeaffcf77072c297">A: 请检查以下几点：</div><ol start="1" class="notion-list notion-list-numbered notion-block-2e1e968e85f9805c95ebd55275026997" style="list-style-type:decimal"><li>代理地址和端口是否正确</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-2e1e968e85f980c4831adccf4076f6c8" style="list-style-type:decimal"><li>代理软件是否正在运行</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-2e1e968e85f9802ea9b4ed61e7a16f87" style="list-style-type:decimal"><li>使用 <code class="notion-inline-code">echo %all_proxy%</code> 确认变量已设置</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-2e1e968e85f980579fd5fa18a71fd6d5" style="list-style-type:decimal"><li>如果 <code class="notion-inline-code">all_proxy</code> 不生效，尝试同时设置 <code class="notion-inline-code">http_proxy</code> 和 <code class="notion-inline-code">https_proxy</code>：
注意：对于 HTTP 代理使用 <code class="notion-inline-code">http://</code> 前缀；对于 SOCKS5 代理使用 <code class="notion-inline-code">socks5://</code> 前缀</li><ol class="notion-list notion-list-numbered notion-block-2e1e968e85f980579fd5fa18a71fd6d5" style="list-style-type:lower-alpha"></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f98048bba6ce98fe07fdcf" data-id="2e1e968e85f98048bba6ce98fe07fdcf"><span><div id="2e1e968e85f98048bba6ce98fe07fdcf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98048bba6ce98fe07fdcf" title="四、其他终端的配置方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四、其他终端的配置方法</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f980a0bc03c393aa4a5b22" data-id="2e1e968e85f980a0bc03c393aa4a5b22"><span><div id="2e1e968e85f980a0bc03c393aa4a5b22" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980a0bc03c393aa4a5b22" title="4.1 PowerShell"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.1 PowerShell</span></span></h4><div class="notion-text notion-block-2e1e968e85f980028ca2eb306c7dbfaf"><b>临时设置：</b></div><div class="notion-text notion-block-2e1e968e85f980e5b600e7b7696a2a0d"><b>永久设置（用户级别）：</b></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-2e1e968e85f9804eb44fc8c46aee9bbc" data-id="2e1e968e85f9804eb44fc8c46aee9bbc"><span><div id="2e1e968e85f9804eb44fc8c46aee9bbc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f9804eb44fc8c46aee9bbc" title="4.2 Git Bash / WSL"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4.2 Git Bash / WSL</span></span></h4><div class="notion-text notion-block-2e1e968e85f980669505cf5f0f1b93ba"><b>临时设置：</b></div><div class="notion-text notion-block-2e1e968e85f98008b132ce8394877177"><b>永久设置：</b></div><div class="notion-text notion-block-2e1e968e85f9800c8e2fcafce87370fc">在 <code class="notion-inline-code">~/.bashrc</code> 或 <code class="notion-inline-code">~/.zshrc</code> 文件末尾添加：</div><div class="notion-text notion-block-2e1e968e85f980019e9dfe1df60f7e2d">保存后执行 <code class="notion-inline-code">source ~/.bashrc</code> 或 <code class="notion-inline-code">source ~/.zshrc</code> 使配置生效。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f980cf8fc0ebb4d8615cd8" data-id="2e1e968e85f980cf8fc0ebb4d8615cd8"><span><div id="2e1e968e85f980cf8fc0ebb4d8615cd8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f980cf8fc0ebb4d8615cd8" title="五、其他 Code Agent 配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五、其他 Code Agent 配置</span></span></h3><div class="notion-text notion-block-2e1e968e85f980b8886ccecb314d37b5">类似的配置方法也适用于其他 Code Agent 工具，如 OpenCode 等。具体配置可参考各工具的官方文档。</div><hr class="notion-hr notion-block-2e1e968e85f98048b9edf6737a89f553"/><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2e1e968e85f9804b9975f58fe8a70c86" data-id="2e1e968e85f9804b9975f58fe8a70c86"><span><div id="2e1e968e85f9804b9975f58fe8a70c86" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f9804b9975f58fe8a70c86" title="相关链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">相关链接</span></span></h3><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98023a23afcca7034239e"><li><a class="notion-link" href="https://claude.ai/code" target="_blank" rel="noopener noreferrer">Claude Code 官方网站</a></li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f98049aca9d82102f8eead"><li><a class="notion-link" href="https://docs.anthropic.com/" target="_blank" rel="noopener noreferrer">Anthropic API 文档</a></li></ul><ul class="notion-list notion-list-disc notion-block-2e1e968e85f9804c8ec5d3d59820bdbe"><li><a class="notion-link" href="https://github.com/lbjlaq/Antigravity-Manager" target="_blank" rel="noopener noreferrer">Antigravity Manager GitHub</a></li></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Github 加速|代理网站]]></title>
            <link>https://blog.real-xc.com/article/256e968e-85f9-80c1-b8b2-ed2c23966d9f</link>
            <guid>https://blog.real-xc.com/article/256e968e-85f9-80c1-b8b2-ed2c23966d9f</guid>
            <pubDate>Thu, 21 Aug 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-256e968e85f980c1b8b2ed2c23966d9f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-256e968e85f9803e9e90dadb07cdce20" data-id="256e968e85f9803e9e90dadb07cdce20"><span><div id="256e968e85f9803e9e90dadb07cdce20" class="notion-header-anchor"></div><a class="notion-hash-link" href="#256e968e85f9803e9e90dadb07cdce20" title="GitHub镜像加速"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">GitHub镜像加速</span></span></h3><div class="notion-callout notion-gray_background_co notion-block-256e968e85f98062a1b4ceb7ac17e58e"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-256e968e85f9808f87dfd4a4ffa02dd2"> 一种方式是直接将GitHub的链接中的github修改为kkgithub。</div></div></div><div class="notion-blank notion-block-256e968e85f9800a8868d14011bceb6e"> </div><div class="notion-callout notion-gray_background_co notion-block-256e968e85f980e5ad3fd7376ee278ac"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><div class="notion-text notion-block-256e968e85f980f2a591c742981dcd64">另一种是在GitHub链接添加前缀：https://ghfast.top/</div><div class="notion-text notion-block-256e968e85f9807a859ad938ccfd99e2">相似功能的代理前缀：
https://gitclone.com/</div><div class="notion-text notion-block-256e968e85f9803fb908e1e78f7c5ad6">https://git.yylx.win/</div><div class="notion-text notion-block-256e968e85f9803f9449f536933734fe">https://gh.llkk.cc/</div></div></div><div class="notion-text notion-block-256e968e85f9802ab12bc59455609867">
使用示例如下：
https://ghproxy.link/
</div><div class="notion-text notion-block-256e968e85f9809ab3bac04ab5941e3f">git clone 一般仓库
git clone https://ghfast.top/https://github.com/stilleshan/dockerfiles
git clone 私有仓库
Clone 私有仓库需要用户在 Personal access tokens 申请 Token 配合使用.git clone https://user:your_token@ghfast.top/https://github.com/your_name/your_private_repo
</div><div class="notion-text notion-block-256e968e85f980f4a31eecd1bab02bd5">还有一种：
在仓库url中增加gitclone.com的前缀，别的地方不变，即https://github.com/修改为https://gitclone.com/github.com/
</div><div class="notion-text notion-block-256e968e85f980e282c7de8163bfeec8">另外的加速 ：
git clone https://git.yylx.win/github.com/chflame163/ComfyUI_LayerStyle.git
git clone https://gh.llkk.cc/https://github.com/microsoft/vscode</div><div class="notion-blank notion-block-2e1e968e85f980ccbd69e2d728ca1585"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-2e1e968e85f98057b278ea9cca7f1547" data-id="2e1e968e85f98057b278ea9cca7f1547"><span><div id="2e1e968e85f98057b278ea9cca7f1547" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2e1e968e85f98057b278ea9cca7f1547" title="docker加速镜像站"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker加速镜像站</span></span></h3><div class="notion-blank notion-block-2e1e968e85f9808fb86aed32d6ef5bb9"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LoRA 训练参数]]></title>
            <link>https://blog.real-xc.com/article/7b119511-e1e8-4040-a79f-93991804e59b</link>
            <guid>https://blog.real-xc.com/article/7b119511-e1e8-4040-a79f-93991804e59b</guid>
            <pubDate>Fri, 27 Sep 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[一些lora训练参数的经验]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-7b119511e1e84040a79f93991804e59b"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-bc75ba57378e4f258d60bf2c08fe7283" data-id="bc75ba57378e4f258d60bf2c08fe7283"><span><div id="bc75ba57378e4f258d60bf2c08fe7283" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bc75ba57378e4f258d60bf2c08fe7283" title="LoRA 培训高级参数调整"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>LoRA 培训高级参数调整</b></span></span></h4><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-c9df765be5084ce5bbfe7cd4665fc81b" data-id="c9df765be5084ce5bbfe7cd4665fc81b"><span><div id="c9df765be5084ce5bbfe7cd4665fc81b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c9df765be5084ce5bbfe7cd4665fc81b" title="LoRA 原则"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>LoRA 原则</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-73ca14b62ec548419bbab57bc70a73b4" data-id="73ca14b62ec548419bbab57bc70a73b4"><span><div id="73ca14b62ec548419bbab57bc70a73b4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#73ca14b62ec548419bbab57bc70a73b4" title="LoRA 有什么用途？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>LoRA 有什么用途？</b></span></span></h4><blockquote class="notion-quote notion-block-3fa11c8b4ee94a0a9322abde726ce12f"><div>常见的LoRA包括 角色、加速、 风格</div></blockquote><div class="notion-text notion-block-07438b865f4142d89d781174e0cb2cc3">Lora 允许在保持 Checkpoint 权重不变的情况下对整个图像进行微调。在这种情况下，只需要调整 Lora 就可以生成特定的图像，而无需修改整个 Checkpoint。对于一些人工智能从未接触过的图像，则使用 Lora 进行微调。这使人工智能艺术具有一定程度的 &quot;可控性&quot;。</div><div class="notion-text notion-block-e8d5f61467134e46ba18e947514cadf1">目前，训练过的模型都是在官方训练过的模型（SD1.5、SDXL）上进行的 &quot;改进&quot;。当然，也可以对他人创建的模型进行改进。</div><div class="notion-text notion-block-131dc1ee54854bf49dd7f68d2bc7fb69">Lora 训练：人工智能首先根据提示生成图像，然后将这些图像与训练集中的数据集进行比较。通过引导人工智能根据生成的差异不断微调嵌入向量，生成的结果逐渐接近数据集。最终，经过微调的模型可以生成与数据集完全等同的结果，从而在人工智能生成的图像与数据集之间形成关联，使两者越来越相似。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980a491ccdb2faa90d4fc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:960px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad0394460-00f9-466e-9fc8-a916550d2f4a%3Aimage.png?table=block&amp;id=119e968e-85f9-80a4-91cc-db2faa90d4fc&amp;t=119e968e-85f9-80a4-91cc-db2faa90d4fc" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-0f1c6e6ea77c4542902371c6a013ba10"><li>与 Checkpoint 相比，LoRA 的文件大小更小，可以节省时间和资源。此外，它还可以在 Checkpoint 的基础上调整权重，实现不同的效果。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-04194434c2ba47ce8a1b76237b3b8531" data-id="04194434c2ba47ce8a1b76237b3b8531"><span><div id="04194434c2ba47ce8a1b76237b3b8531" class="notion-header-anchor"></div><a class="notion-hash-link" href="#04194434c2ba47ce8a1b76237b3b8531" title="LoRA 训练流程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>LoRA 训练流程</b></span></span></h3><blockquote class="notion-quote notion-block-d59df5aa06db4422bc7f0dc9c5f36d1e"><div>五个步骤准备数据集 - 图像预处理 - 设置参数 - 监控 Lora 训练过程 - 完成训练</div></blockquote><ul class="notion-list notion-list-disc notion-block-b6a9fc868d764bb9a45b8bc0619d1645"><li>以面部 Lora 训练为例。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-cee59f320ee04bb5b508561ff8755370" data-id="cee59f320ee04bb5b508561ff8755370"><span><div id="cee59f320ee04bb5b508561ff8755370" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cee59f320ee04bb5b508561ff8755370" title="准备数据集"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>准备数据集</b></span></span></h4><div class="notion-text notion-block-12578224e2384407ad5421e4081afede">上传数据集时，必须坚持 &quot;样本多样化 &quot;的原则。这意味着数据集应包括不同角度、姿势、光线条件等的图像，并确保图像的高分辨率。这一步的主要目的是帮助人工智能理解图像。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980d0a4f6fec79032861d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:960px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7adc71ba-6afa-4ae4-9995-c2e9b0a6c995%3Aimage.png?table=block&amp;id=119e968e-85f9-80d0-a4f6-fec79032861d&amp;t=119e968e-85f9-80d0-a4f6-fec79032861d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-dc648b712e204797a2ff1a522eec8fc0" data-id="dc648b712e204797a2ff1a522eec8fc0"><span><div id="dc648b712e204797a2ff1a522eec8fc0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#dc648b712e204797a2ff1a522eec8fc0" title="图像预处理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>图像预处理</b></span></span></h4><div class="notion-text notion-block-fb8ddb8010d8421fa63848b10cf7b5ac">I.裁剪图像 II.标记 III.触发词</div><div class="notion-text notion-block-8981ea29f9994ee3aaa0c99f3a8af2c4"><b>I.裁剪图像</b></div><div class="notion-text notion-block-e6e2c5fca7bc4e52a802e5686248b2c3">为了让人工智能通过图像更好地辨别物体，通常最好保持一致的图像尺寸。可以根据所需输出选择 512*512（1:1）、512*768（2:3）或 768*512（3:2）。在Flux等较新的模型中，可以做到1024*1024的裁剪和训练；</div><div class="notion-text notion-block-2ba7eaf00af3460ea0a696c57864720f">裁剪模式：中心裁剪/焦点裁剪/无裁剪</div><div class="notion-text notion-block-7b914072dcb043cda6725a75269c93d5">中心裁剪：裁剪图像的中心区域。</div><div class="notion-text notion-block-fe76bb077ba4484a807207cfff4e580f">焦距裁剪：自动识别图像的主要主体。</div><div class="notion-text notion-block-ae7fbfcb3576452b926d5bd1b67e690f">聚焦作物中心物体</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980568cb0ef2d32988c4c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:720px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab4a4ec24-5ac1-44d7-ba5b-fcc2d94fc449%3Aimage.png?table=block&amp;id=119e968e-85f9-8056-8cb0-ef2d32988c4c&amp;t=119e968e-85f9-8056-8cb0-ef2d32988c4c" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980d1b486ddf9210e4a1f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:720px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8b05c383-968b-4205-8298-37e553d3572e%3Aimage.png?table=block&amp;id=119e968e-85f9-80d1-b486-ddf9210e4a1f&amp;t=119e968e-85f9-80d1-b486-ddf9210e4a1f" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-62e988afe63e4f4690fc47250cd1432b"><li>与居中裁剪相比，聚焦裁剪更有可能保留数据集的主体，因此一般建议使用聚焦裁剪。</li></ul><div class="notion-text notion-block-9fa02bf19ef347ddb15875b9251ce5f1"><b>II.标记</b></div><div class="notion-text notion-block-8561b97c54dd48bca9c47787020f4087">为数据集中的图像提供文字描述（caption），让人工智能从图像中的文字中学习。方便学习文生图的训练对应关系，尤其是涉及风格和场景训练的时候；</div><div class="notion-text notion-block-0b26caa1691147ecb21efffcc8453a37">标记算法：BLIP/Deepbooru/Florence </div><ul class="notion-list notion-list-disc notion-block-cfb748d47cd5407cb0eeb25fb8f7b9df"><li>BLIP：自然语言标记，例如 &quot;黑头发的女孩&quot;。</li></ul><ul class="notion-list notion-list-disc notion-block-3397bf96ddb84c92b1ff33623dd0b10f"><li>Deepbooru：短语标签，例如 &quot;一个女孩，黑色头发&quot;。</li></ul><ul class="notion-list notion-list-disc notion-block-f00b6853e9c14d2ba3bd318c774c6025"><li>Florence2 ：更详细的画面描述信息；</li></ul><ul class="notion-list notion-list-disc notion-block-38e6366e9fa44deb898b3620b6dc2067"><li>标记阈值：值越小，描述越精细，建议为 0.6。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f98056bb27cbc20c404f33"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:864px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8ed6c81d-ab22-49fd-9e54-3ea306351715%3Aimage.png?table=block&amp;id=119e968e-85f9-8056-bb27-cbc20c404f33&amp;t=119e968e-85f9-8056-bb27-cbc20c404f33" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-02bba38ef9c241fb8cc2a014cb0294a1">标记过程：删除固定特征（如身体特征......），让人工智能自主学习这些特征。同样，也可以添加一些希望将来调整的特征（服装、配饰、动作、背景......）。</div><ul class="notion-list notion-list-disc notion-block-30ede0c3f799473b9f705ca3c3f94ba5"><li>例如，如果希望生成的所有图像都是黑头发和黑眼睛，可以删除这两个标记。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980ae8291fa88adec77be"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:960px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A33f2652b-91dc-4817-9dc1-5e57d343aaff%3Aimage.png?table=block&amp;id=119e968e-85f9-80ae-8291-fa88adec77be&amp;t=119e968e-85f9-80ae-8291-fa88adec77be" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3217e2efce084be9a487e8cd69c285e9"><b>III.触发词</b></div><div class="notion-text notion-block-70a7fa95eaa54e2db785fb2dd1a5dcb7">能触发 &quot;Lora &quot;激活的词，有效地将字符特征整合到一个词中。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980f699e1f6c90c7d9f97"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:960px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa4e8016f-8c2a-4c8a-84e6-fecf7ff24787%3Aimage.png?table=block&amp;id=119e968e-85f9-80f6-99e1-f6c90c7d9f97&amp;t=119e968e-85f9-80f6-99e1-f6c90c7d9f97" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-22b8b48d14e94d4eafb77fa5d786544a" data-id="22b8b48d14e94d4eafb77fa5d786544a"><span><div id="22b8b48d14e94d4eafb77fa5d786544a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#22b8b48d14e94d4eafb77fa5d786544a" title="参数设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>参数设置</b></span></span></h4><div class="notion-text notion-block-516e9801a6334f8198781158f8dd943f">基础模型：建议选择与 Lora 风格非常匹配的高质量、稳定的基础模型，因为这样人工智能更容易匹配功能和记录差异。</div><div class="notion-text notion-block-8fe76ec5137641c4833a062fee1c554b"><b>推荐基本型号：（基本上Flux和SD3等较新的模型相比之前的SD1.5 和SDXL系列有了较大的进步）</b></div><div class="notion-text notion-block-9410fa83f7444e8aad3e22ece4e0f64d">逼真：SD1.5、ChilloutMix、MajicMIX Realistic、Realistic Vision</div><div class="notion-text notion-block-d5158ee178da4d7f9cb7415596d7406a">动漫：AnyLoRA, Anything | 万象熔炉, ReV Animated</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-def6e3cf358f488992f0e63a21857374" data-id="def6e3cf358f488992f0e63a21857374"><span><div id="def6e3cf358f488992f0e63a21857374" class="notion-header-anchor"></div><a class="notion-hash-link" href="#def6e3cf358f488992f0e63a21857374" title="高级配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>高级配置</b></span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980f99145ea4d81948717"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:597px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2e424b69-6e63-47fe-bea2-f652675b0f49%3Aimage.png?table=block&amp;id=119e968e-85f9-80f9-9145-ea4d81948717&amp;t=119e968e-85f9-80f9-9145-ea4d81948717" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-fb6e9865003543f097c0b0535dfdf9ba"><b>训练参数：</b></div><div class="notion-text notion-block-ffbe68d3f3f44394b2d6f1e175f48542">重复（单个图像重复）：学习单个图像的次数。重复次数越多，学习效果越好，但重复次数过多可能会导致图像僵化。建议：动漫：8；写实：15。</div><div class="notion-text notion-block-dc4169741e4b48caa43d9fc900af1ee8">epoch（周期）：一个周期等于数据集数量乘以重复次数。它表示模型在训练集上训练了多少步。例如，如果训练集中有 20 张图像，重复次数设为 10，那么模型将学习 20 * 10 = 200 个步骤。如果 Epoch 设置为 10，那么 Lora 训练总共将有 2000 个步骤。建议动漫20；现实：10。</div><div class="notion-text notion-block-3d8dca2d1985414c8a4bac9cb192dd4c">批量大小：指人工智能同时学习的图像数量。例如，当设置为 2 时，人工智能一次学习 2 幅图像，从而缩短整体训练时间。不过，同时学习多张图像可能会导致每张图像的精度相对降低。</div><div class="notion-text notion-block-23cfcfac02e74e2ead611b308115543c">混合精度：建议使用 fp16。</div><div class="notion-text notion-block-605f5b3db8b84eab9ed8fa0519801ed0"><b>样本设置：</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f980faaad8df0ad5b2f5a9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:602px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7346e1b3-5e42-4a08-a8b2-5d0fbc9dcd9a%3Aimage.png?table=block&amp;id=119e968e-85f9-80fa-aad8-df0ad5b2f5a9&amp;t=119e968e-85f9-80fa-aad8-df0ad5b2f5a9" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-70e3979ec7fa4db6895c30a11d291bef">分辨率：确定最终模型效果的预览图像大小。只是训练过程中用于验证（evaluation）的生成样本；</div><ul class="notion-list notion-list-disc notion-block-da017cf13e7e4c7a86adfff44dfcccd5"><li>512*512 768*768 1024*1024 都行</li></ul><div class="notion-text notion-block-e44f42e366da4553b5f3369f9f84ec1e">种子：控制随机生成的图像。使用相同的 r 种子和提示时，很可能会生成相同/相似的图像。</div><div class="notion-text notion-block-ae16eac5c15f4014a6f8798277aefe9b">Sampler \ Prompts \ Negative Prompts：主要展示最终模型预览图的效果。</div><div class="notion-text notion-block-4b2707c9b3b846089363ddcafc9fca74"><b>保存设置：</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f98067a51dd8733da4f16a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:585px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A748899fe-c86d-443d-b3e2-14cb95a11720%3Aimage.png?table=block&amp;id=119e968e-85f9-8067-a51d-d8733da4f16a&amp;t=119e968e-85f9-8067-a51d-d8733da4f16a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-154491eccafc42b8afc407014509caea">决定LoRAs的最终数量。如果设置为 2，而epoch为 10，那么最终将保存 5 个LoRAs。</div><div class="notion-text notion-block-26e24ed42e7b40e7b835504eaea10978">保存精度：建议使用 fp16。</div><div class="notion-text notion-block-b6b973bf7ce24d44b39c3276cb9d7f18"><b>学习率和优化器</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f98004a471e0c0b7e6eb34"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:597px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A14478ce5-e0b4-463f-bc3c-599856ddd547%3Aimage.png?table=block&amp;id=119e968e-85f9-8004-a471-e0c0b7e6eb34&amp;t=119e968e-85f9-8004-a471-e0c0b7e6eb34" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-b6fe73d1309a43f0885150a71da2dacd">学习率：它表示人工智能学习数据集的强度。学习率越高，人工智能的学习能力越强，但也可能导致输出图像的差异。当数据集增加时，建议尝试降低学习率。建议从默认值开始，然后根据训练结果进行调整。建议从较低的学习率逐步提高，建议为 0.0001。</div><div class="notion-text notion-block-3d68be17c04e458a8be3e434f6119ff7">unet lr：设置 unet lr 后，学习率将不会生效。建议设置为 0.0001。（1*e-4）</div><div class="notion-text notion-block-52f2d80dd83b439bbc41eff00260be54">文本编码器 LR：它决定对标记的灵敏度。通常，文本编码器 lr 设置为 unet lr 的 1/2 或 1/10。</div><div class="notion-text notion-block-a6369f81c7bf45a1b7599a4582bd5e20">Lr 调度器：它主要控制学习率的衰减。不同的调度程序对最终结果的影响微乎其微。一般情况下，使用默认的 &quot;余弦 &quot;调度程序，但也可以使用升级版的 &quot;带重启的余弦&quot;。它通过多次重启和衰减来充分学习数据集，避免了训练过程中 &quot;局部最优解 &quot;的干扰。如果使用 &quot;带重启的余弦&quot;，请将重启次数设置为 3-5。</div><div class="notion-text notion-block-b85e0748505c43038c7738e69f38fd06">优化器：它决定了人工智能在训练过程中如何把握学习过程，直接影响学习效果。建议使用 AdamW8bit。</div><div class="notion-text notion-block-a82fa3c930c4409d8769c23dfb217c73">狮子新引入的优化器，学习率通常比 AdamW 小 10 倍左右。</div><div class="notion-text notion-block-a1774c6f827c42898af798a17f01b80c">Prodigy：如果所有学习率都设置为 1，Prodigy 将自动调整学习率以达到最佳效果，适合初学者使用。</div><div class="notion-text notion-block-8f913bcf53494c37a7762c42715297c3"><b>网络</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-119e968e85f9808cbabfc9e558321402"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:585px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A592922c4-6e4d-4d47-96bc-98bd57ca894e%3Aimage.png?table=block&amp;id=119e968e-85f9-808c-babf-c9e558321402&amp;t=119e968e-85f9-808c-babf-c9e558321402" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-df31347790ae4540a468cd3b4a125753">用于为人工智能输入数据建立合适的 Lora 模型基础。</div><div class="notion-text notion-block-f125287ef8d24e65a4f9ed2b516baf70">网络等级Rank：它直接影响 Lora 的大小。rank越大，训练时需要微调的数据就越多。128=140MB+；64=70MB+；32=40MB+。</div><div class="notion-text notion-block-a2681799f5044492a47507fdf9996161"><b>推荐使用：</b></div><div class="notion-text notion-block-54269d14260f46e29583158abe6146f9">现实：64/128</div><div class="notion-text notion-block-d67ce1843a784a60b57dad724d6f052f">动画8/16/32</div><div class="notion-text notion-block-c7a18a41840e4411a890e94fba77ce80">设置过高的值会使人工智能学习得太深，捕捉到许多不相关的细节，类似于 &quot;过度拟合&quot;。</div><div class="notion-text notion-block-eb37392eb0b94eb2aebcafe25eaf4ad2">Alpha：可以理解为 Lora 对原始模型权重的影响程度。它越接近 Rank，对原始模型权重的影响就越小，而越接近 0，对原始模型权重的影响就越明显。Alpha 通常不会超过 Rank。目前，Alpha 通常设置为 Rank 的一半。如果设为 1，则对权重的影响最大。</div><div class="notion-text notion-block-03df80abe0d14e05852db8671010f756"><b>标记设置：</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-885592feb5824842af2f11dbbd646d7e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:589px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A79b9ab75-0754-48e4-a359-897c61b8b997%3Aimage.png?table=block&amp;id=885592fe-b582-4842-af2f-11dbbd646d7e&amp;t=885592fe-b582-4842-af2f-11dbbd646d7e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-782a0fa38cc64d69a947ec8abdac4ba8">一般来说，标签越靠前，其权重就越大。因此，通常建议启用 &quot;随机字幕&quot;。shuffle caption</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-b65be89b2da74ca5a7bc07077c7b270c" data-id="b65be89b2da74ca5a7bc07077c7b270c"><span><div id="b65be89b2da74ca5a7bc07077c7b270c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b65be89b2da74ca5a7bc07077c7b270c" title="LoRA 训练问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>LoRA 训练问题</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-68546cbd4d6c41bfb3185847743f52d9" data-id="68546cbd4d6c41bfb3185847743f52d9"><span><div id="68546cbd4d6c41bfb3185847743f52d9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#68546cbd4d6c41bfb3185847743f52d9" title="拟合过度/拟合不足"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>拟合过度/拟合不足</b></span></span></h4><div class="notion-text notion-block-d2e8f3438e084f4a910066a9fb853dbe">过度拟合：当数据集有限或人工智能过于精确地匹配数据集时，会导致 Lora 生成的图像与数据集大体相似，从而导致模型的泛化能力较差。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-c8a3c68555644f84b1bbd32d7731b9f4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:655px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad85fc425-872a-41a6-b5dd-055fc7395025%3Aimage.png?table=block&amp;id=c8a3c685-5564-4f84-b1bb-d32d7731b9f4&amp;t=c8a3c685-5564-4f84-b1bb-d32d7731b9f4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-47d2eb5d96124f6681fe1dd813ec0d0f">右上方的图像在外观和姿态上都与左边的数据集非常相似。</div><div class="notion-text notion-block-566fede6ce3e44f4895a7bc6ab421a7c"><b>过度拟合的原因</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-e416976024a0435dbbeda19415b8fc9d" style="list-style-type:decimal"><li>缺乏数据集。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-e00fdb59a39c4ddfbe62591f08dd09d6" style="list-style-type:decimal"><li>参数设置不正确（标签、学习率、步骤、优化器等）。</li></ol><div class="notion-text notion-block-b129e660b2be4f14ba7e027812911af3"><b>防止过度拟合</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-a09af58efc6f4a2c857a58cdab292d88" style="list-style-type:decimal"><li>适当 <b>降低学习率</b>。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-c5763677169c41d49484ec8776da5c11" style="list-style-type:decimal"><li>缩短epoch。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-a446f988af8b452685b6514f56018c65" style="list-style-type:decimal"><li>降低Rank，提高 Alpha。</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-866df1f24e034c9294d7b1add8354922" style="list-style-type:decimal"><li>减少重复。</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-281de058feb848b6863dd4babf9b47ce" style="list-style-type:decimal"><li>利用正则化进行训练。</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-d727846e6e4d44d3b942bb9d6b6e60af" style="list-style-type:decimal"><li>增加数据集。</li></ol><div class="notion-text notion-block-e9d9a70d67ed40ec8288d605cd39e7c0">拟合不足：模型在训练过程中未能充分学习数据集的特征，导致生成的图像与数据集不匹配。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d94d772397e946549afd284275b36ab6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:720px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2ba698fe-861d-4a42-8e55-efdc4f3742b1%3Aimage.png?table=block&amp;id=d94d7723-97e9-4654-9afd-284275b36ab6&amp;t=d94d7723-97e9-4654-9afd-284275b36ab6" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-951529325ff6431fa9f1d07de977979d">可以看到，Lora 生成的图像未能充分保留数据集的特征--它们很不相似。</div><div class="notion-text notion-block-9ef146dbc46c4503bd20c76a74ce2f96"><b>不拟合的原因：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-92d2750d4aa34bfea832582aec2788af" style="list-style-type:decimal"><li>模型复杂度低</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-ae9c5182083d4f599cddf3642ad64096" style="list-style-type:decimal"><li>特征数量不足</li></ol><div class="notion-text notion-block-32c1c0e1d6cc457aba9344839873d07f"><b>防止不拟合：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-329df9726e0447809c762efbf77707dd" style="list-style-type:decimal"><li>适当<b>提高学习率</b></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-43ff385349d94b9184d0e951553b6f90" style="list-style-type:decimal"><li>增加epoch</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-32124b84fa3c4936903179d6f288e843" style="list-style-type:decimal"><li>提高Rank，降低 Alpha</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-8254c253e0eb45399edbd1ac2b47ae27" style="list-style-type:decimal"><li>增加重复次数 repeat</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-91c6212ceef1461585552d2cdc60b51c" style="list-style-type:decimal"><li>减少正则化约束</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-e366d0934ac6483e9e1c50f3e8a7350c" style="list-style-type:decimal"><li>为数据集添加更多特征（高质量）</li></ol></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama搭配Open-webUI本地部署模型]]></title>
            <link>https://blog.real-xc.com/article/151e968e-85f9-80ac-a7f5-e47ab706f394</link>
            <guid>https://blog.real-xc.com/article/151e968e-85f9-80ac-a7f5-e47ab706f394</guid>
            <pubDate>Tue, 03 Dec 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[网络总是卡卡的，不妨试试本地跑LLM模型]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-151e968e85f980aca7f5e47ab706f394"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-151e968e85f980939e26f1b13392fa85" data-id="151e968e85f980939e26f1b13392fa85"><span><div id="151e968e85f980939e26f1b13392fa85" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f980939e26f1b13392fa85" title="1、安装ollama"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、安装ollama</span></span></h3><div class="notion-text notion-block-151e968e85f98023b3b2e66a69d51ea0">官网：<a class="notion-link" href="https://ollama.com/" target="_blank" rel="noopener noreferrer">https://ollama.com/</a>, 根据对应平台下载ollama </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f98037bbafff6307550ae4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8da615ad-5d1c-4a17-901e-dcfceec41a8f%3Aimage.png?table=block&amp;id=151e968e-85f9-8037-bbaf-ff6307550ae4&amp;t=151e968e-85f9-8037-bbaf-ff6307550ae4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f9803fa9e1fd66eadfe75f">检测ollama是否运行，以Linux Ubuntu为例：</div><div class="notion-text notion-block-151e968e85f9808aa1b2ee68eb31956e"><code class="notion-inline-code">curl </code><code class="notion-inline-code"><a class="notion-link" href="http://127.0.0.1:11434/" target="_blank" rel="noopener noreferrer">http://127.0.0.1:11434</a></code></div><div class="notion-text notion-block-151e968e85f980019d7bfd795352dc53">返回： Ollama is running</div><div class="notion-text notion-block-151e968e85f980998dd0d3021a97cd53">Windows可以在浏览器打开 <code class="notion-inline-code"><a class="notion-link" href="http://127.0.0.1:11434/" target="_blank" rel="noopener noreferrer">http://127.0.0.1:11434</a></code> ，同样浏览器返回”Ollama is running“ </div><div class="notion-text notion-block-151e968e85f980ce8426f2d5244c245f">Ollama默认的host为localhost(127.0.0.1) ，想要使其他机器访问，需要设置允许所有连接：</div><div class="notion-text notion-block-151e968e85f980cba9d2c1168225aaad">修改Ollama的配置文件，以Linux为例：<code class="notion-inline-code">vim /etc/systemd/system/ollama.service</code> </div><div class="notion-text notion-block-151e968e85f980e38c84d79b73acefb0">一般的Ollama配置如下：</div><div class="notion-text notion-block-151e968e85f980c28b54cc1da6ce79b3">修改之后，使得修改生效：</div><div class="notion-text notion-block-151e968e85f98057b18cf6c7a8342af6"><code class="notion-inline-code">sudo systemctl daemon-reload
sudo systemctl restart ollama</code></div><div class="notion-text notion-block-151e968e85f98012a7e6fbe00bb5f2ae">重新检查服务状态：</div><div class="notion-text notion-block-151e968e85f980989a59e10d2659b6c9"><code class="notion-inline-code">sudo systemctl status ollama</code></div><div class="notion-text notion-block-151e968e85f9804b8d33fc828aee72fc">没有问题的话，会显示：</div><div class="notion-text notion-block-151e968e85f9806c95dbd26013685caa">● ollama.service - Ollama Service</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-151e968e85f980a69229cd0b00984f2c" data-id="151e968e85f980a69229cd0b00984f2c"><span><div id="151e968e85f980a69229cd0b00984f2c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f980a69229cd0b00984f2c" title="Ollama常用命令："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Ollama常用命令：</span></span></h4><table class="notion-simple-table notion-block-151e968e85f980ea94f0e51f95235457"><tbody><tr class="notion-simple-table-row notion-block-697d1417c58640638db0ef7b2bc9c73a"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">Ollama + command</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">说明</div></td></tr><tr class="notion-simple-table-row notion-block-f3523e42d6a94bc4b4eed4817caef314"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">serve</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">启动服务</div></td></tr><tr class="notion-simple-table-row notion-block-b0cd31159de04dde9fbed5b51d5eabe1"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">create</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">从本地一个模型文件，可以是自己训练的或者gguf或者其他格式的模型进行启动</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f9804c830cf42ed751f0c9"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">show </div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">显示模型详细信息</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f980289771c6a6198c2ef8"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">run </div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">运行模型</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f9803ab2bcd6a17018963f"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">stop</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">停止运行模型</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f980f0803ee343240b5aea"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">pull</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">下载模型到本地</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f980deb9ecca0a1dbb805d"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">push</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">上传到ollama</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f980708853eb8024b3c305"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">list</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">显示本地所有模型</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f98066aa84f6fe0e2871d6"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">ps </div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">显示正在运行的所有模型</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f980f9b267cefbbb028d9a"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">cp</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">复制</div></td></tr><tr class="notion-simple-table-row notion-block-151e968e85f9803a80aacf39de7c9205"><td class="" style="width:166.625px"><div class="notion-simple-table-cell">rm</div></td><td class="" style="width:661px"><div class="notion-simple-table-cell">删除</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-151e968e85f9805888f4c84204108b5f" data-id="151e968e85f9805888f4c84204108b5f"><span><div id="151e968e85f9805888f4c84204108b5f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f9805888f4c84204108b5f" title="2、安装open-webUI"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、安装open-webUI</span></span></h3><div class="notion-text notion-block-151e968e85f980a9848de8cf077c8562"><a class="notion-external notion-external-mention" href="https://github.com/open-webui/open-webui" target="_blank" rel="noopener noreferrer"><div class="notion-external-image"><svg viewBox="0 0 260 260"><g><path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z" fill="#161614"></path></g></svg></div><div class="notion-external-description"><div class="notion-external-title">open-webui</div><div class="notion-external-subtitle"><div class="notion-preview-card-domain-warp"><div class="notion-preview-card-logo"><svg viewBox="0 0 260 260"><g><path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z" fill="#161614"></path></g></svg></div><div class="notion-preview-card-domain">Github</div></div><div class="notion-preview-card-title">open-webui</div><div class="notion-external-subtitle-item"><div class="notion-external-subtitle-item-name">Owner</div><span class="notion-external-subtitle-item-desc">open-webui</span></div><div class="notion-external-subtitle-item"><div class="notion-external-subtitle-item-name">Updated</div><span class="notion-external-subtitle-item-desc">Dec 3, 2024</span></div><div class="notion-preview-card-github-shields"><img src="https://img.shields.io/github/stars/open-webui/open-webui?logo=github" alt=""/><img src="https://img.shields.io/github/last-commit/open-webui/open-webui" alt=""/></div></div></div></a>, </div><div class="notion-text notion-block-151e968e85f980a784c5dc8cf6d9bc2f">较新版本是可以使用pip 安装，但是要求python=3.11</div><div class="notion-text notion-block-151e968e85f980c0b1eff47b55aee6c7"><code class="notion-inline-code">pip install open-webui</code></div><div class="notion-text notion-block-151e968e85f98055b1d6cfc7ddf002e9">我这里当前使用版本：<div class="notion-text-children"><div class="notion-text notion-block-151e968e85f9801ca4face13b998fbb9">Name: open-webui
Version: 0.4.7</div></div></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-151e968e85f9807c9644f6a77b0e909d" data-id="151e968e85f9807c9644f6a77b0e909d"><span><div id="151e968e85f9807c9644f6a77b0e909d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f9807c9644f6a77b0e909d" title="启动Open-webui"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">启动Open-webui</span></span></h4><div class="notion-text notion-block-151e968e85f980ee9fc1e61603ec6efa"><code class="notion-inline-code">open-webui serve</code></div><div class="notion-text notion-block-151e968e85f980c5aeafc75fb1f4ecfd">之后就可以通过浏览器打开默认的地址“<a class="notion-link" href="http://127.0.0.1:8080/" target="_blank" rel="noopener noreferrer">http://127.0.0.1:8080/</a>”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f98000adcdcfff01c92859"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ab73e9dde-dfee-453a-beea-ab0000f937b1%3Aimage.png?table=block&amp;id=151e968e-85f9-8000-adcd-cfff01c92859&amp;t=151e968e-85f9-8000-adcd-cfff01c92859" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-151e968e85f980f683a8e0964a567bd1" data-id="151e968e85f980f683a8e0964a567bd1"><span><div id="151e968e85f980f683a8e0964a567bd1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f980f683a8e0964a567bd1" title="3、相关设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3、相关设置</span></span></h3><div class="notion-text notion-block-151e968e85f980fabc44e850956b967e">初次使用Open-webui需要进行相关设置：设置一个管理员账号用于相关管理配置；</div><div class="notion-text notion-block-151e968e85f9808cbdeec21638d3e7b9">设置与Ollama的连接：</div><div class="notion-text notion-block-151e968e85f9804ab7def969093bafcf">打开管理员右上角的设置：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980899481fcdabfa60b82"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9a14dbb7-1544-4928-8d26-e60ab95d865f%3Aimage.png?table=block&amp;id=151e968e-85f9-8089-9481-fcdabfa60b82&amp;t=151e968e-85f9-8089-9481-fcdabfa60b82" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f98015b4b1d53f91dfa9b6">设置主题、界面显示语言；</div><div class="notion-text notion-block-151e968e85f9804a8b83dd8f5808eb0e">在“管理员设置- 外部连接”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f98049a454f682f8f345d7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A01c039c5-5e44-4ac9-9920-40e99fe86b69%3Aimage.png?table=block&amp;id=151e968e-85f9-8049-a454-f682f8f345d7&amp;t=151e968e-85f9-8049-a454-f682f8f345d7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f980969ea1ed9e43c77e54">（可选）选择启用或关闭open AI  API，并填入对应API key；</div><div class="notion-text notion-block-151e968e85f9800abc9bd7be730d6e2d">（可选）选择启用或关闭Ollama API，填入上文提及的修改的Ollama的服务地址，这里进行API可以性检测；</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f9801ca3c2e2c0abd2e75f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A68a53e86-1b6a-4004-af18-3bac782e6ec5%3Aimage.png?table=block&amp;id=151e968e-85f9-801c-a3c2-e2c0abd2e75f&amp;t=151e968e-85f9-801c-a3c2-e2c0abd2e75f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-151e968e85f980d39774ed957c2b066b" data-id="151e968e85f980d39774ed957c2b066b"><span><div id="151e968e85f980d39774ed957c2b066b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f980d39774ed957c2b066b" title="4、 模型选择"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4、 模型选择</span></span></h3><div class="notion-text notion-block-151e968e85f9804dbb8cc211fa9f856f">上述外部连接设置以后，就可以在“设置-模型”中看到所有Ollama下载的本地模型；</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980408e58f325b342c12c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A92f11887-f3bd-4679-8ae6-22b6083c4731%3Aimage.png?table=block&amp;id=151e968e-85f9-8040-8e58-f325b342c12c&amp;t=151e968e-85f9-8040-8e58-f325b342c12c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f9805b926be515746ffe0e">可以在右侧对模型进行启用或关闭管理；</div><div class="notion-text notion-block-151e968e85f980e1b894d9e44510d7ae">在新对话中也可以随时对模型进行切换：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980928f55ee0be26feb83"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A40ca59ff-02eb-494f-9eab-a2113aeddefb%3Aimage.png?table=block&amp;id=151e968e-85f9-8092-8f55-ee0be26feb83&amp;t=151e968e-85f9-8092-8f55-ee0be26feb83" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f9808fb1adf5ece37a6c2e">或者同时添加不同模型进行对比</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980eb8086e6a79f7fa478"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1e12a6c9-0e06-441d-b889-27c1e9e870b1%3Aimage.png?table=block&amp;id=151e968e-85f9-80eb-8086-e6a79f7fa478&amp;t=151e968e-85f9-80eb-8086-e6a79f7fa478" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f980e5a4fff803623d6c5b">设置联网搜索：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980d78048ff74f85312e4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A894bdadb-1717-429c-b775-8132d8ec0e3c%3Aimage.png?table=block&amp;id=151e968e-85f9-80d7-8048-ff74f85312e4&amp;t=151e968e-85f9-80d7-8048-ff74f85312e4" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f9801da205de85156ea9a1">并在对话中开启联网搜索：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f9803286d2e5deb78fe73d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae6915986-f2a8-48b5-9f34-7773d5dbbe9d%3Aimage.png?table=block&amp;id=151e968e-85f9-8032-86d2-e5deb78fe73d&amp;t=151e968e-85f9-8032-86d2-e5deb78fe73d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-151e968e85f98026b656f2f3a31a961b">其他设置：TTS，whisper语音识别等</div><div class="notion-text notion-block-151e968e85f980cea4f5c78150dca927">更多对话高级设置：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-151e968e85f980c2a5adf13be82c8242"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:600px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A93a73954-e0e4-465c-b779-3a95b92b8b68%3Aimage.png?table=block&amp;id=151e968e-85f9-80c2-a5ad-f13be82c8242&amp;t=151e968e-85f9-80c2-a5ad-f13be82c8242" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-151e968e85f9803ba668f525ced9d6d2" data-id="151e968e85f9803ba668f525ced9d6d2"><span><div id="151e968e85f9803ba668f525ced9d6d2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#151e968e85f9803ba668f525ced9d6d2" title="显存占用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">显存占用</span></span></h3><div class="notion-text notion-block-151e968e85f9806095cfedd498fd5cbb">Nvidia比较新的驱动中，可以在Windows10 以上Windows系统中通过共享系统内存的方式，实现超过显卡本身显存的利用；</div><div class="notion-text notion-block-151e968e85f9808f90a8e36485311923">大模型的显存占用，可以在<a class="notion-link" href="https://huggingface.co/spaces/hf-accelerate/model-memory-usage" target="_blank" rel="noopener noreferrer">https://huggingface.co/spaces/hf-accelerate/model-memory-usage</a> 进行计算</div><div class="notion-text notion-block-151e968e85f9802abdddf6d6f6416578">一般Q6、Q8 量化的模型，运行时显存占用大致与模型体积相近；</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1dfccf86126149cb8397f281a512e82e" data-id="1dfccf86126149cb8397f281a512e82e"><span><div id="1dfccf86126149cb8397f281a512e82e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1dfccf86126149cb8397f281a512e82e" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h3><ul class="notion-list notion-list-disc notion-block-b9cb6b1ea5ea4eb696ac68819028411e"><li>Ollama是一个本地运行LLM模型的工具，可通过配置实现跨机器访问</li></ul><ul class="notion-list notion-list-disc notion-block-4cc141e5711f44598e74031e716222d5"><li>Open-webUI提供友好的用户界面，支持多模型对比、联网搜索等功能</li></ul><ul class="notion-list notion-list-disc notion-block-7af5854509614980af92d783e5222f3d"><li>系统配置需要设置管理员账号、Ollama API连接和模型选择</li></ul><ul class="notion-list notion-list-disc notion-block-62430b27e0184525a496cd21a5f0e1af"><li>支持模型的动态切换、多模型对话对比和高级对话设置</li></ul><ul class="notion-list notion-list-disc notion-block-9f4d4a53cfdd4499b25c5a01b9410a14"><li>通过显存共享技术，可以运行超出显卡实际显存的模型</li></ul><div class="notion-blank notion-block-151e968e85f9806e9762e6135f234b4f"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[微调Atom-7b-chat对话模型]]></title>
            <link>https://blog.real-xc.com/article/38b34385-84da-4de4-97a4-931868cd1be9</link>
            <guid>https://blog.real-xc.com/article/38b34385-84da-4de4-97a4-931868cd1be9</guid>
            <pubDate>Wed, 23 Oct 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[使用LlamaFamily微调]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-38b3438584da4de497a4931868cd1be9"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0f346c1f2aea4de09dee6250fb9e0058" data-id="0f346c1f2aea4de09dee6250fb9e0058"><span><div id="0f346c1f2aea4de09dee6250fb9e0058" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0f346c1f2aea4de09dee6250fb9e0058" title="🔵 中文预训练模型Atom"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>🔵 中文预训练模型Atom</b></span></span></h3><div class="notion-text notion-block-dee5742b2d484aceb5b450e143092dad"><b>原子大模型Atom</b>由Llama中文社区和原子回声联合打造。</div><table class="notion-simple-table notion-block-0b03c4aedfdf49a6b1474721731a3ef8"><tbody><tr class="notion-simple-table-row notion-block-3e256617416043798d0a0cf01aa64446"><td class="" style="width:120px"><div class="notion-simple-table-cell">类别</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">模型名称</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">🤗模型加载名称</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">下载地址</div></td></tr><tr class="notion-simple-table-row notion-block-5f10f8b555304a5ba7905e9fcf04aca1"><td class="" style="width:120px"><div class="notion-simple-table-cell">预训练</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Atom-7B</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">FlagAlpha/Atom-7B</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://huggingface.co/FlagAlpha/Atom-7B" target="_blank" rel="noopener noreferrer">HuggingFace</a> | <a class="notion-link" href="https://modelscope.cn/models/FlagAlpha/Atom-7B" target="_blank" rel="noopener noreferrer">ModelScope</a> | <a class="notion-link" href="https://wisemodel.cn/models/FlagAlpha/Atom-7B" target="_blank" rel="noopener noreferrer">WiseModel</a></div></td></tr><tr class="notion-simple-table-row notion-block-39fd03b018bf4cdd9865a85833df7639"><td class="" style="width:120px"><div class="notion-simple-table-cell">Chat</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Atom-7B-Chat</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">FlagAlpha/Atom-7B-Chat</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://huggingface.co/FlagAlpha/Atom-7B-Chat" target="_blank" rel="noopener noreferrer">HuggingFace</a> | <a class="notion-link" href="https://modelscope.cn/models/FlagAlpha/Atom-7B-Chat" target="_blank" rel="noopener noreferrer">ModelScope</a> | <a class="notion-link" href="https://wisemodel.cn/models/FlagAlpha/Atom-7B-Chat" target="_blank" rel="noopener noreferrer">WiseModel</a></div></td></tr></tbody></table><div class="notion-text notion-block-1fc02659939244f5ab9fd017fe52456a">Atom系列模型包含Atom-13B、Atom-7B和Atom-1B，基于Llama2做了中文能力的持续优化。Atom-7B和Atom-7B-Chat目前已完全开源，支持商用，可在<a class="notion-link" href="https://huggingface.co/FlagAlpha" target="_blank" rel="noopener noreferrer">Hugging Face</a>仓库获取模型，详情见<a class="notion-link" href="https://github.com/LlamaFamily/Llama-Chinese?tab=readme-ov-file#%E5%9F%BA%E4%BA%8Ellama2%E7%9A%84%E4%B8%AD%E6%96%87%E9%A2%84%E8%AE%AD%E7%BB%83%E6%A8%A1%E5%9E%8Batom" target="_blank" rel="noopener noreferrer">Atom-7B下载</a>。Atom大模型针对中文做了以下优化：</div><ul class="notion-list notion-list-disc notion-block-36c06e2edbb74b0ca643a4d4dedff119"><li>大规模的中文数据预训练</li></ul><div class="notion-text notion-block-deb202e7820b46f7a685b533eec1157a">原子大模型Atom在Llama2的基础上，采用大规模的中文数据进行持续预训练，包含百科、书籍、博客、新闻、公告、小说、金融数据、法律数据、医疗数据、代码数据、专业论文数据、中文自然语言处理竞赛数据集等，详见<a class="notion-link" href="https://github.com/LlamaFamily/Llama-Chinese?tab=readme-ov-file#-%E6%95%B0%E6%8D%AE%E6%9D%A5%E6%BA%90" target="_blank" rel="noopener noreferrer">📝 数据来源</a>。</div><div class="notion-text notion-block-b3c70263e45248a19fc2fd351cbe098b">同时对庞大的数据进行了过滤、打分、去重，筛选出超过1T token的高质量中文数据，持续不断加入训练迭代中。</div><ul class="notion-list notion-list-disc notion-block-ca054f1d564840e8979ab16d6b95df33"><li>更高效的中文词表 为了提高中文文本处理的效率，我们针对Llama2模型的词表进行了深度优化。首先，我们基于数百G的中文文本，在该模型词表的基础上扩展词库至65,000个单词。经过测试，我们的改进使得中文编码/解码速度提高了约350％。此外，我们还扩大了中文字符集的覆盖范围，包括所有emoji符号😊。这使得生成带有表情符号的文章更加高效。</li></ul><ul class="notion-list notion-list-disc notion-block-ce28344b2f1c46e18213e0000a2f0ded"><li>自适应上下文扩展 Atom大模型默认支持4K上下文，利用位置插值PI和Neural Tangent Kernel （NTK）方法，经过微调可以将上下文长度扩增到32K。</li></ul><ul class="notion-list notion-list-disc notion-block-2433a88cbb4743bbb6d6a6f8c8d3ccfa"><li>📝 中文数据</li></ul><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-632625ab64a54852ad0dc7555e85c0f8" data-id="632625ab64a54852ad0dc7555e85c0f8"><span><div id="632625ab64a54852ad0dc7555e85c0f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#632625ab64a54852ad0dc7555e85c0f8" title="💡 模型微调"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>💡 模型微调</b></span></span></h3><div class="notion-blank notion-block-5f3a7cd30c194cbbb1f7fd36f80de642"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[国内可用docker镜像（24.6）]]></title>
            <link>https://blog.real-xc.com/article/70adaeba-9fc1-47b0-9bf7-6039e7834d49</link>
            <guid>https://blog.real-xc.com/article/70adaeba-9fc1-47b0-9bf7-6039e7834d49</guid>
            <pubDate>Thu, 01 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[24年可用docker镜像]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-70adaeba9fc147b09bf76039e7834d49"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-row"><a class="notion-bookmark notion-block-143e968e85f98049aa48fe27227a157a" href="https://dockerpull.org/" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">DockerPull 镜像加速</div><div class="notion-bookmark-description">多平台容器镜像代理服务,支持 Docker Hub, GitHub, Google, k8s 等镜像仓库.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fimgs.yzcdn.net%2Ffavicon.ico?table=block&amp;id=143e968e-85f9-8049-aa48-fe27227a157a&amp;t=143e968e-85f9-8049-aa48-fe27227a157a" alt="DockerPull 镜像加速" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://dockerpull.org/</div></div></div></a></div><div class="notion-text notion-block-407c4bc9ae65457e993f88c2ca27b30e">转载：</div><div class="notion-row"><a class="notion-bookmark notion-block-143e968e85f9805fa805fac21d0f1acf" href="https://www.coderjia.cn/archives/dba3f94c-a021-468a-8ac6-e840f85867ea" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">目前国内可用Docker镜像源汇总（截至2024年11月）</div><div class="notion-bookmark-description">在国内使用 Docker 的朋友们，可能都遇到过配置镜像源来加速镜像拉取的操作。然而，最近几个月发现许多曾经常用的国内镜像站（包括各种云服务商和高校镜像站）已经无法使用。因此，本人开始搜索并汇总了目前可用的镜像站和镜像加速地址，并计划定期测试它们的可用性，并更新这个列表。如果您知道新的可用站点，也欢</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fcoderjia-1254377750.cos.ap-shanghai.myqcloud.com%2Fblog%2F%25E5%25A4%25B4%25E5%2583%258F-%25E6%258A%25A0%25E5%259B%25BE-%25E6%2599%25AE%25E6%25B8%2585.png?table=block&amp;id=143e968e-85f9-805f-a805-fac21d0f1acf&amp;t=143e968e-85f9-805f-a805-fac21d0f1acf" alt="目前国内可用Docker镜像源汇总（截至2024年11月）" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.coderjia.cn/archives/dba3f94c-a021-468a-8ac6-e840f85867ea</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fcoderjia-1254377750.cos.ap-shanghai.myqcloud.com%2Fblog%2F202411011436681.png?table=block&amp;id=143e968e-85f9-805f-a805-fac21d0f1acf&amp;t=143e968e-85f9-805f-a805-fac21d0f1acf" alt="目前国内可用Docker镜像源汇总（截至2024年11月）" loading="lazy" decoding="async"/></div></a></div><div class="notion-text notion-block-143e968e85f980359c25ee977fc54ff4">转载：</div><div class="notion-row"><a class="notion-bookmark notion-block-6c88aab048d140b28b503f82d1d484a6" href="https://linux.do/t/topic/114516" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">DockerHub国内镜像源列表（2024年6月18日 亲测可用）</div><div class="notion-bookmark-description">DockerHub国内镜像源列表 此列表只收录无需限定条件的DockerHub镜像源，感谢这些公益服务者。  2024年6月18日 亲测可用      DockerHub镜像仓库 镜像加速器地址     Docker镜像加速站 https://hub.uuuadc.top/    docker.1panel.live    hub.rat.dev   DockerHub 镜像加速代理 https://docker.anyhub.us.kg    https://docker.chenby.cn    https://dockerhub.jobcher.com/   镜像使用说明 https://dockerhub.icu   Docker镜像加速站 https://docker.ckyl.me   镜像使用说明 https://docker.awsl9527.cn   镜像使用说明 https://docker.hpcloud.cloud   AtomHub 可信镜像仓库平台 （只包含基础镜像，共336个） https://atomhub.openatom.cn   DaoCloud ...</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fcdn.linux.do%2Fuploads%2Fdefault%2Foptimized%2F3X%2F9%2Fd%2F9dd49731091ce8656e94433a26a3ef36062b3994_2_32x32.png?table=block&amp;id=6c88aab0-48d1-40b2-8b50-3f82d1d484a6&amp;t=6c88aab0-48d1-40b2-8b50-3f82d1d484a6" alt="DockerHub国内镜像源列表（2024年6月18日 亲测可用）" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://linux.do/t/topic/114516</div></div></div></a></div><table class="notion-simple-table notion-block-a5019143b2064540ac9ed5cb63ca56ab"><tbody><tr class="notion-simple-table-row notion-block-5316ad9a936c47da8878bf6ac892b193"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><b>DockerHub镜像仓库</b></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><b>镜像加速器地址</b></div></td></tr><tr class="notion-simple-table-row notion-block-e1c3b1300f064e579391a69c28d516a5"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXJodWIuaWN1Lw==" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://dockerhub.icu</code></div></td></tr><tr class="notion-simple-table-row notion-block-ca8ceef6cf08462089262a2ed3cf4a44"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">hub.rat.dev</code></div></td></tr><tr class="notion-simple-table-row notion-block-1b40e9c3a6c54181a364531c12b2e842"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">docker.wanpeng.top</code></div></td></tr><tr class="notion-simple-table-row notion-block-1ae8c17ee27b4664bd1e332c2680fdde"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb3VibGV6b25saW5lLmNsb3VkLw==" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://doublezonline.cloud</code></div></td></tr><tr class="notion-simple-table-row notion-block-79ad54ba1b0a45a38e66d324d990287b"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIubXJ4bi5uZXQv" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.mrxn.net</code></div></td></tr><tr class="notion-simple-table-row notion-block-1dba760f14ab4efbafe163eed1e9258e"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9seW5uNTIwLnh5ei8=" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://lynn520.xyz</code></div></td></tr><tr class="notion-simple-table-row notion-block-a1fd7f4e64e04a95bec72e40e8fc5245"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9naW5nZXIyMDI0MDcwNC5hc2lhLw==" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://ginger20240704.asia</code></div></td></tr><tr class="notion-simple-table-row notion-block-0f8ec9fa69864c0ebefdd8b72a283875"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuYW55aHViLnVzLmtnLw==" target="_blank" rel="noopener noreferrer">DockerHub 镜像加速代理</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.anyhub.us.kg</code></div></td></tr><tr class="notion-simple-table-row notion-block-4121d0cb3ea6425e85257d0773b095ad"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIud2dldC5hdC8=" target="_blank" rel="noopener noreferrer">Dockerhub镜像加速说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.wget.at</code></div></td></tr><tr class="notion-simple-table-row notion-block-6ec293a92d03434aac2394b810fd7ecc"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuYXdzbDk1MjcuY24v" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.awsl9527.cn</code></div></td></tr><tr class="notion-simple-table-row notion-block-9665899c85ee4c0e961c381ff65f2402"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kaXNsYWJhaW90Lnh5ei8=" target="_blank" rel="noopener noreferrer">镜像使用说明</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://dislabaiot.xyz</code></div></td></tr><tr class="notion-simple-table-row notion-block-7da7e51256134cf08fa771947859aea0"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXJwdWxsLmNvbS8=" target="_blank" rel="noopener noreferrer">Docker Proxy 镜像加速</a>（<a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9saW51eC5kby90L3RvcGljLzExNDM0NQ==" target="_blank" rel="noopener noreferrer">来源地址</a>）</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://dockerpull.com</code></div></td></tr><tr class="notion-simple-table-row notion-block-d921f966dc8c4217be6497b74484a127"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuZnh4ay5kZWR5bi5pby8=" target="_blank" rel="noopener noreferrer">Docker Hub Container Image Library</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.fxxk.dedyn.io</code></div></td></tr><tr class="notion-simple-table-row notion-block-cd38824fe9124bae885abbf8fbb25ed1"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9naXRodWIuY29tL2t1YmVzcmUvZG9ja2VyLXJlZ2lzdHJ5LW1pcnJvcnM=" target="_blank" rel="noopener noreferrer">docker-registry-mirrors</a>: 支持 Docker Hub, GitHub, Google, k8s, Quay, Microsoft 等镜像仓库.</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">dhub.kubesre.xyz</code></div></td></tr><tr class="notion-simple-table-row notion-block-e1394e63fe6140b29d17ddf62c950a34"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9hdG9taHViLm9wZW5hdG9tLmNuLw==" target="_blank" rel="noopener noreferrer">AtomHub 可信镜像仓库平台 </a>（只包含基础镜像，共336个）</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://atomhub.openatom.cn</code></div></td></tr><tr class="notion-simple-table-row notion-block-8684caa949e24444a2431291bbd5b375"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9naXRodWIuY29tL0Rhb0Nsb3VkL3B1YmxpYy1pbWFnZS1taXJyb3I=" target="_blank" rel="noopener noreferrer">DaoCloud 镜像站</a></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://docker.m.daocloud.io</code></div></td></tr><tr class="notion-simple-table-row notion-block-5ce4371a6ed441caba92b7555ea91627"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">已失效DockerHub镜像仓库</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td></tr><tr class="notion-simple-table-row notion-block-7297a733265c45a8a582789d38bef25f"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9odWIudXV1YWRjLnRvcC8=" target="_blank" rel="noopener noreferrer">Docker镜像加速站</a></s>（因流量太大，作者已关停）</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9odWIudXV1YWRjLnRvcA==" target="_blank" rel="noopener noreferrer">https://hub.uuuadc.top</a></s></div></td></tr><tr class="notion-simple-table-row notion-block-f0df4739100e44b194f17a8a17eb7abb"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuY2t5bC5tZS8=" target="_blank" rel="noopener noreferrer">Docker镜像加速站</a></s></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuY2t5bC5tZQ==" target="_blank" rel="noopener noreferrer">https://docker.ckyl.me</a></s></div></td></tr><tr class="notion-simple-table-row notion-block-01beb1dcd1ac4b0f86d622fc178e1df6"><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuaHBjbG91ZC5jbG91ZC8=" target="_blank" rel="noopener noreferrer">镜像使用说明</a></s></div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuaHBjbG91ZC5jbG91ZA==" target="_blank" rel="noopener noreferrer">https://docker.hpcloud.cloud</a></s></div></td></tr><tr class="notion-simple-table-row notion-block-98a5df0c34c442e48501082fad46f2f9"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s>docker.1panel.live</s></div></td></tr><tr class="notion-simple-table-row notion-block-4fde1e5d8ed64d05aa837952a9effa8c"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXJodWIuam9iY2hlci5jb20=" target="_blank" rel="noopener noreferrer">https://dockerhub.jobcher.com</a></s></div></td></tr><tr class="notion-simple-table-row notion-block-c20936407767443bba92e449c9df6d59"><td class="" style="width:432.75px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:432.75px"><div class="notion-simple-table-cell"><s><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXIuY2hlbmJ5LmNu" target="_blank" rel="noopener noreferrer">https://docker.chenby.cn</a></s></div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-5429ac7c551e4d9397452ae578f029ea" data-id="5429ac7c551e4d9397452ae578f029ea"><span><div id="5429ac7c551e4d9397452ae578f029ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5429ac7c551e4d9397452ae578f029ea" title="使用教程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>使用教程</b></span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-d3c975e64a724710ab20737feb1376ed" style="list-style-type:decimal"><li>为了加速镜像拉取，使用以下命令设置registry mirror</li></ol><blockquote class="notion-quote notion-block-12ca784b08c647daa2773ef3afa09c09"><div>支持系统：Ubuntu 16.04+、Debian 8+、CentOS 7+</div></blockquote><ol start="1" class="notion-list notion-list-numbered notion-block-798aa56f745d4f01bea390995c55efb5" style="list-style-type:decimal"><li>使用DockerHub Proxy，以下以 <code class="notion-inline-code">hub.uuuadc.top</code> 为例：可以根据列表自行替换</li></ol><div class="notion-text notion-block-4ff08758f28e4fac8441d34ac62f0001">说明：library是一个特殊的命名空间，它代表的是官方镜像。如果是某个用户的镜像就把library替换为镜像的用户名</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-495c3bef73c34076824006a2f2810c6b" data-id="495c3bef73c34076824006a2f2810c6b"><span><div id="495c3bef73c34076824006a2f2810c6b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#495c3bef73c34076824006a2f2810c6b" title="国内DockerHub镜像加速器还有哪些？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>国内DockerHub镜像加速器还有哪些？</b></span></span></h3><ul class="notion-list notion-list-disc notion-block-e2d573522954463d827529db67fd8750"><li><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20veTBuZ2Ixbi83ZThmMTZhZjMyNDJjNzgxNWU3Y2EyZjA4MzNkM2VhNj9wZXJtYWxpbmtfY29tbWVudF9pZD01MDY4NTM1" target="_blank" rel="noopener noreferrer">国内的 Docker Hub 镜像加速器</a>：由国内教育机构与各大云服务商提供的镜像加速服务</li></ul><ul class="notion-list notion-list-disc notion-block-0d00aa737c3846118f4b844f2e0c1329"><li><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9pbWFnZS5qaWFubXVodWIuY29tLw==" target="_blank" rel="noopener noreferrer">建木Hub-镜像库</a>：v2友建立的服务，需要注册登录后使用</li></ul><ul class="notion-list notion-list-disc notion-block-5bf5ebc8a985450bb4d8489ea0339088"><li><a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kby5uYXJrLmV1Lm9yZy8=" target="_blank" rel="noopener noreferrer">镜像加速说明</a>：由Linux.do <a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9saW51eC5kby91L3FuaW5nL3N1bW1hcnk=" target="_blank" rel="noopener noreferrer">青柠</a> 制作 <a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9saW51eC5kby90L3RvcGljLzEwNzcyNi84" target="_blank" rel="noopener noreferrer">都在蹭CF搭建dockerhub镜像代理，基于论坛看到的一个代码糊了个前端</a></li></ul><ul class="notion-list notion-list-disc notion-block-06d193003b874582b6349ff08287d1b9"><li>Docker Hub：<code class="notion-inline-code">https://docker.hlyun.org</code></li><ul class="notion-list notion-list-disc notion-block-06d193003b874582b6349ff08287d1b9"><div class="notion-text notion-block-b501436cc9924144ae717c1251fa17f0">npm：<code class="notion-inline-code">https://npm.hlyun.org</code></div><div class="notion-text notion-block-d6c61b729c64429bbd9009410f97ba8e">Github：<code class="notion-inline-code">https://github.hlyun.org</code></div><div class="notion-text notion-block-54ef59cf09e2490daf1f9800f3b8bf49">来源 <a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9saW51eC5kby90L3RvcGljLzEwODQ3Mw==" target="_blank" rel="noopener noreferrer">npm、docker hub、Github镜像</a></div></ul></ul><ul class="notion-list notion-list-disc notion-block-02f3691a3563492c80e987d222e2b1ba"><li>DockerHub：<code class="notion-inline-code">https://dockerhub.icu</code> 来源：<a class="notion-link" href="https://www.wangdu.site/?golink=aHR0cHM6Ly9kb2NrZXJodWIuaWN1Lw==" target="_blank" rel="noopener noreferrer">镜像使用说明</a></li></ul><ul class="notion-list notion-list-disc notion-block-a8768de0a3d64dbb974592fcce607ba0"><li>其他</li><ul class="notion-list notion-list-disc notion-block-a8768de0a3d64dbb974592fcce607ba0"></ul></ul><div class="notion-blank notion-block-4cc7f582ac0e4d0aa063a6fbf3e86c35"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-603ea27a2a7c4c79a8cdccb9074386b2" data-id="603ea27a2a7c4c79a8cdccb9074386b2"><span><div id="603ea27a2a7c4c79a8cdccb9074386b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#603ea27a2a7c4c79a8cdccb9074386b2" title="PS : github 加速"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PS : github 加速</span></span></h2><div class="notion-text notion-block-07483fdcd2df40b79a298840a4cc4bdf"><a class="notion-link" href="http://github.com" target="_blank" rel="noopener noreferrer">github.com</a> →  githubfast.com</div><div class="notion-text notion-block-d5830d9a41dd42339edab05174d998af">支持clone、download zip等</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>