玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
bartowski /

Llama-3.3-70B-Instruct-abliterated-GGUF

HF 源站

bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF is an uncensored open-source model hosted on Hugging Face.

Text GenerationGGUFPyTorchEnglishLicense: llama3.370Bfacebookmetallamallama-3abliterateduncensoredfritpthiesthdeimatrixconversational
README.md说明 / 使用方法

quantized_by: bartowski pipeline_tag: text-generation language:

  • en
  • fr
  • it
  • pt
  • hi
  • es
  • th
  • de extra_gated_prompt: "### LLAMA 3.3 社区许可协议 Llama 3.3 版本发布日期:2024 年 12 月 6 日 “协议”是指此处规定的 Llama 材料的使用、复制、分发和修改的条款和条件。 “文档”是指 Meta 在 https://www.llama.com/docs/overview 分发的伴随 Llama 3.3 的规范、手册和文档。 “被许可人”或“您”是指您,或您的雇主或任何其他人或实体(如果您代表此类人或实体签署本协议),其年龄符合适用法律、法规或规章的要求,具有提供法律许可的民事行为能力,并具有合法权力在代表您的雇主或其他此类人或实体签订本协议时使其受本协议约束。 “Llama 3.3”是指基础大语言模型以及软件和算法,包括 Meta 在 https://www.llama.com/llama-downloads 分发的机器学习模型代码、训练模型权重、推理代码、训练代码、微调代码以及前述各项的其他元素。 “Llama 材料”统指 Meta 专有的 Llama 3.3 和根据本协议提供的文档(及其任何部分)。 “Meta”或“我们”是指 Meta Platforms Ireland Limited(如果您位于欧洲经济区 (EEA) 或瑞士,或者如果您是实体且您的主要营业地点在 EEA 或瑞士)以及 Meta Platforms, Inc.(如果您位于 EEA 或瑞士境外)。 点击下方的“我接受”,或使用或分发 Llama 材料的任何部分或元素,即表示您同意受本协议的约束。
  1. 许可权利与再分发。 a. 权利授予。根据 Meta 在 Llama 材料中所体现的知识产权或其他权利,您被授予一项非排他性、全球性、不可转让且免版税的有限许可,以使用、复制、分发、拷贝、创建衍生作品并对 Llama 材料进行修改。 b. 再分发和使用。 i. 如果您分发或提供 Llama 材料(或其任何衍生作品),或包含其中任何内容的产​​品或服务(包括其他 AI 模型),您应:(A) 随附提供本协议副本;(B) 在相关网站、用户界面、博客文章、关于页面或产品文档上显著展示“Built with Llama”。如果您使用 Llama 材料或 Llama 材料的任何输出或结果来创建、训练、微调或以其他方式改进分发或提供的 AI 模型,您还应在此类 AI 模型名称的开头包含“Llama”。 ii. 如果您作为集成最终用户产品的一部分从被许可人处接收 Llama 材料或其任何衍生作品,则本协议第 2 条不适用于您。 iii. 您必须在分发的所有 Llama 材料副本中,在随附的“Notice”文本文件中保留以下归属声明:“Llama 3.3 is licensed under the Llama 3.3 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.” iv. 您对 Llama 材料的使用必须遵守适用的法律法规(包括贸易合规法律法规),并遵守 Llama 材料的《可接受使用政策》(可访问 https://www.llama.com/llama3_3/use-policy),该政策特此通过引用并入本协议。
  2. 附加商业条款。如果在 Llama 3.3 版本发布之日,被许可人或被许可人的关联公司提供或为其提供的产品或服务的月活跃用户在前一个日历月中超过 7 亿月活跃用户,您必须向 Meta 申请许可,Meta 可以全权决定是否向您授予许可,除非且直到 Meta 另行明确授予您此类权利,否则您无权行使本协议项下的任何权利。
  3. 免责声明。除非适用法律要求,否则 LLAMA 材料及其任何输出和结果均按“原样”提供,不提供任何形式的保证;META 声明免除所有明示和暗示的保证,包括但不限于对所有权、不侵权、适销性或特定用途适用性的任何保证。您应全权负责确定使用或再分发 LLAMA 材料的适当性,并承担与您使用 LLAMA 材料及任何输出和结果相关的任何风险。
  4. 责任限制。在任何情况下,无论是基于合同、侵权、过失、产品责任还是其他理论,META 或其关联公司均不对因本协议引起的任何利润损失或任何间接、特殊、从属、附带、惩戒性或惩罚性损害赔偿承担任何责任,即使 META 或其关联公司已被告知发生上述损害的可能性。
  5. 知识产权。 a. 本协议未授予任何商标许可,并且就 Llama 材料而言,Meta 和被许可人均不得使用对方或其任何关联公司拥有或关联的任何名称或商标,除非在描述和再分发 Llama 材料时合理和习惯的使用所需,或本第 5(a) 条另有规定。Meta 特此授予您使用“Llama”(即“标志”)的许可,仅限于遵守第 1.b.i 条最后一句话的要求。您必须遵守 Meta 的品牌准则(目前可访问 https://about.meta.com/brand/resources/meta/company-brand/)。因您使用该标志而产生的全部商誉均归 Meta 所有。 b. 在遵守 Meta 对 Llama 材料及由 Meta 或为其制作的衍生品的所有权的前提下,对于您对 Llama 材料进行的任何衍生作品和修改,在您与 Meta 之间,您是且将是此类衍生作品和修改的所有者。 c. 如果您对 Meta 或任何实体提起诉讼或其他法律程序(包括诉讼中的交叉索赔或反诉),声称 Llama 材料或 Llama 3.3 的输出或结果,或前述任何部分构成对您拥有或可许可的知识产权或其他权利的侵犯,则根据本协议授予您的任何许可应自此类诉讼或索赔提起之日起终止。对于因您使用或分发 Llama 材料而引起或与之相关的任何第三方索赔,您应赔偿 Meta 并使 Meta 免受损害。
  6. 期限与终止。本协议的期限将自您接受本协议或访问 Llama 材料时开始,并将继续完全有效,直至根据此处的条款和条件终止。如果您违反本协议的任何条款或条件,Meta 可以终止本协议。在本协议终止后,您应删除并停止使用 Llama 材料。第 3、4 和 7 条在本协议终止后继续有效。
  7. 管辖法律和司法管辖权。本协议受加利福尼亚州法律管辖并据其解释,不考虑法律冲突原则,且《联合国国际货物销售合同公约》不适用于本协议。因本协议引起的任何争议,加利福尼亚州法院具有专属管辖权。

Llama 3.3 可接受使用政策

Meta 致力于促进对其工具和功能(包括 Llama 3.3)的安全和公平使用。如果您访问或使用 Llama 3.3,即表示您同意本可接受使用政策(“政策”)。本政策的最新版本可在 https://www.llama.com/llama3_3/use-policy 获取。 禁止用途 我们希望每个人都能安全、负责任地使用 Llama 3.3。您同意不会使用或允许他人使用 Llama 3.3 用于:

  1. 违反法律或侵犯他人权利,包括:

    1. 参与、促进、生成、促成、鼓励、策划、煽动或助长非法或违法活动或内容,例如:

      1. 暴力或恐怖主义
      2. 剥削或伤害儿童,包括索取、制作、获取或传播儿童剥削内容,或未能报告儿童性虐待材料
      3. 人口贩运、剥削和性暴力
      4. 向未成年人非法分发信息或材料(包括淫秽材料),或未能在此类信息或材料的使用中采取法律要求的年龄限制措施
      5. 性招揽
      6. 任何其他犯罪活动
    2. 参与、宣扬、煽动或协助对个人或群体的骚扰、虐待、威胁或欺凌

    3. 在提供就业、雇员福利、信贷、住房、其他经济利益或其他基本商品和服务方面,参与、宣扬、煽动或协助歧视或其他非法或有害行为

    4. 从事任何未经授权或许可的专业实践,包括但不限于金融、法律、医疗/健康或相关专业实践

    5. 收集、处理、披露、生成或推断有关个人的私密或敏感信息,包括个人的身份、健康或人口统计信息,除非您已根据适用法律获得了相应的权利

    6. 参与或协助任何侵犯、挪用或以其他方式违反任何第三方权利的行动或生成任何侵权内容,包括使用 Llama 材料的任何产品或服务的输出或结果

    7. 创建、生成或协助创建恶意代码、恶意软件、计算机病毒,或进行任何可能破坏、过度负担、干扰或削弱网站或计算机系统的正常运行、完整性、操作或外观的行为

    8. 采取任何行动或协助任何行动,故意规避或删除使用限制或其他安全措施,或启用被 Meta 禁用的功能

  2. 参与、宣扬、煽动、协助或配合策划或开展对个人构成死亡或人身伤害风险的活动,包括与以下各项相关的 Llama 3.3 使用:

    1. 军事、战争、核工业或应用、间谍活动,用于受美国国务院管理的《国际武器贸易条例》(ITAR) 或美国 1989 年《反生物武器恐怖主义法》或 1997 年《化学武器公约执行法》约束的材料或活动

    2. 枪支和非法武器(包括武器研制)

    3. 非法毒品和受监管/受控物质

    4. 关键基础设施、交通运输技术或重型机械的运行

    5. 自残或伤害他人,包括自杀、割伤和饮食失调

    6. 任何旨在煽动或宣扬暴力、虐待或对个人造成任何身体伤害的内容

  3. 故意欺骗或误导他人,包括与以下各项相关的 Llama 3.3 使用:

    1. 生成、宣扬或助长欺诈,或制造、宣扬虚假信息

    2. 生成、宣扬或助长诽谤性内容,包括制作诽谤性言论、图片或其他内容

    3. 生成、宣扬或进一步分发垃圾邮件

    4. 未经同意、授权或合法权利冒充他人

    5. 谎称使用 Llama 3.3 生成的内容或输出是由人类生成的

    6. 生成或促成虚假在线互动,包括虚假评论和其他形式的虚假在线互动

  4. 未能向最终用户适当披露您的 AI 系统存在的任何已知危险

  5. 与旨在生成非法内容或从事非法/有害行为的第三方工具、模型或软件交互,和/或声称此类工具、模型或软件的输出与 Meta 或 Llama 3.3 相关联 关于 Llama 3.3 中包含的任何多模态模型,如果您是定居在欧盟的个人或主要营业地点在欧盟的公司,则不授予您 Llama 3.3 社区许可协议第 1(a) 条规定的权利。此限制不适用于包含任何此类多模态模型的产品或服务的最终用户。 请通过以下途径之一报告任何违反本政策的行为、软件“漏洞”或其他可能导致违反本政策的问题:

  • 报告模型问题:https://github.com/meta-llama/llama-models/issues
  • 报告模型生成的风险内容:developers.facebook.com/llama_output_feedback
  • 报告漏洞和安全问题:facebook.com/whitehat/info
  • 报告违反可接受使用政策或未经许可使用 Llama 3.3 的行为:[email protected]" extra_gated_fields: First Name: text Last Name: text Date of birth: date_picker Country: country Affiliation: text Job title: type: select options:
    • Student
    • Research Graduate
    • AI researcher
    • AI developer/engineer
    • Reporter
    • Other geo: ip_location ? By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy : checkbox base_model: huihui-ai/Llama-3.3-70B-Instruct-abliterated license: llama3.3 extra_gated_button_content: 提交 tags:
  • facebook
  • meta
  • llama
  • llama-3
  • abliterated
  • uncensored extra_gated_description: 您提供的信息将根据 Meta 隐私政策 进行收集、存储、处理和共享。

Llama-3.3-70B-Instruct-abliterated 的 Llamacpp imatrix 量化版本

使用 llama.cpp 发布版本 b4381 进行量化。

原始模型:https://huggingface.co/huihui-ai/Llama-3.3-70B-Instruct-abliterated

所有量化版本均采用 imatrix 选项制作,校准数据集来自此处。

可在 LM Studio 中直接运行。

提示词格式 (Prompt format)

<|begin_of_text|><|start_header_id|>system<|end_header_id|>

Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024

{system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>

{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

从下方下载单个文件(无需下载整个分支):

文件名量化类型文件大小分卷 (Split)描述
Llama-3.3-70B-Instruct-abliterated-Q8_0.ggufQ8_074.98GBtrue极高质量,通常非必需,但为目前可用的最大量化等级。
Llama-3.3-70B-Instruct-abliterated-Q6_K.ggufQ6_K57.89GBtrue非常高质量,近乎无损,强烈推荐。
Llama-3.3-70B-Instruct-abliterated-Q5_K_L.ggufQ5_K_L50.60GBtrue嵌入和输出权重使用 Q8_0。高质量,推荐。
Llama-3.3-70B-Instruct-abliterated-Q5_K_M.ggufQ5_K_M49.95GBtrue高质量,推荐。
Llama-3.3-70B-Instruct-abliterated-Q5_K_S.ggufQ5_K_S48.66GBfalse高质量,推荐。
Llama-3.3-70B-Instruct-abliterated-Q4_1.ggufQ4_144.31GBfalse传统格式,性能与 Q4_K_S 相似,但在 Apple 芯片上提升了能效比 (tokens/watt)。
Llama-3.3-70B-Instruct-abliterated-Q4_K_L.ggufQ4_K_L43.30GBfalse嵌入和输出权重使用 Q8_0。质量良好,推荐。
Llama-3.3-70B-Instruct-abliterated-Q4_K_M.ggufQ4_K_M42.52GBfalse质量良好,适合大多数使用场景的默认尺寸,推荐。
Llama-3.3-70B-Instruct-abliterated-Q4_K_S.ggufQ4_K_S40.35GBfalse质量略低,但能节省更多存储空间,推荐。
Llama-3.3-70B-Instruct-abliterated-Q4_0.ggufQ4_040.12GBfalse传统格式,支持 ARM 和 AVX CPU 推理的在线重排 (online repacking)。
Llama-3.3-70B-Instruct-abliterated-IQ4_NL.ggufIQ4_NL40.05GBfalse类似于 IQ4_XS,但体积略大。支持 ARM CPU 推理的在线重排。
Llama-3.3-70B-Instruct-abliterated-Q3_K_XL.ggufQ3_K_XL38.06GBfalse嵌入和输出权重使用 Q8_0。质量较低但仍可用,适合低 RAM 环境。
Llama-3.3-70B-Instruct-abliterated-IQ4_XS.ggufIQ4_XS37.90GBfalse质量不错,体积比 Q4_K_S 更小且性能相当,推荐。
Llama-3.3-70B-Instruct-abliterated-Q3_K_L.ggufQ3_K_L37.14GBfalse质量较低但可用,适合低 RAM 环境。
Llama-3.3-70B-Instruct-abliterated-Q3_K_M.ggufQ3_K_M34.27GBfalse低质量。
Llama-3.3-70B-Instruct-abliterated-IQ3_M.ggufIQ3_M31.94GBfalse中低质量,新量化方法,具有相当不错的表现,可媲美 Q3_K_M。
Llama-3.3-70B-Instruct-abliterated-Q3_K_S.ggufQ3_K_S30.91GBfalse低质量,不推荐。
Llama-3.3-70B-Instruct-abliterated-IQ3_XXS.ggufIQ3_XXS27.47GBfalse较低质量,新方法且表现尚可,可与标准 Q3 量化相媲美。
Llama-3.3-70B-Instruct-abliterated-Q2_K_L.ggufQ2_K_L27.40GBfalse嵌入和输出权重使用 Q8_0。质量非常低,但可用性令人惊喜。
Llama-3.3-70B-Instruct-abliterated-Q2_K.ggufQ2_K26.38GBfalse质量非常低,但可用性令人惊喜。
Llama-3.3-70B-Instruct-abliterated-IQ2_M.ggufIQ2_M24.12GBfalse相对较低的质量,采用 SOTA 技术,可用性出奇的好。
Llama-3.3-70B-Instruct-abliterated-IQ2_S.ggufIQ2_S22.24GBfalse低质量,采用 SOTA 技术以保持基本可用。
Llama-3.3-70B-Instruct-abliterated-IQ2_XS.ggufIQ2_XS21.14GBfalse低质量,采用 SOTA 技术以保持基本可用。
Llama-3.3-70B-Instruct-abliterated-IQ2_XXS.ggufIQ2_XXS19.10GBfalse极低质量,采用 SOTA 技术以保持基本可用。
Llama-3.3-70B-Instruct-abliterated-IQ1_M.ggufIQ1_M16.75GBfalse极低质量,不推荐。

嵌入与输出权重说明 (Embed/output weights)

其中的部分量化版本(如 Q3_K_XL、Q4_K_L 等)采用标准量化方式,但将词嵌入 (embeddings) 和输出权重提升量化为 Q8_0,而非默认的量化级别。

使用 huggingface-cli 下载

首先,确保你已安装 huggingface-cli:

pip install -U "huggingface_hub[cli]"

然后,你可以指定下载特定的文件:

huggingface-cli download bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF --include "Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf" --local-dir ./

如果模型文件大于 50GB,它会被分卷成多个文件。为了将所有分卷文件下载到本地文件夹中,请运行:

huggingface-cli download bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF --include "Llama-3.3-70B-Instruct-abliterated-Q8_0/*" --local-dir ./

你可以指定一个新的本地目录(例如 Llama-3.3-70B-Instruct-abliterated-Q8_0)或者直接就地下​​载(./)。

ARM/AVX 相关信息

在此之前,你通常需要下载 Q4_0_4_4/4_8/8_8 格式,这些格式的权重在内存中交错排列,以便在 ARM 和 AVX 架构机器上通过单次加载更多数据来提升性能。

然而现在,权重引入了“在线重排 (online repacking)”机制。详情可见 此 PR。如果你使用 Q4_0 并且你的硬件可以从重排权重中受益,它将会在运行时自动进行重排。

自 llama.cpp 构建版本 b4282 起,你将无法直接运行旧版 Q4_0_X_X 文件,而需要使用 Q4_0。

此外,如果你希望获得稍好的质量,得益于 此 PR,你可以使用 IQ4_NL,它同样会为 ARM 进行权重重排(目前仅限 4_4)。尽管加载时间可能稍慢,但整体运行速度将得到提升。

保留本节仅用于展示使用带在线重排的 Q4_0 相比原版可能带来的理论性能提升。

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%

Q4_0_8_8 在 Prompt 处理速度上有显著提升,在文本生成速度上也有小幅提升。

我应该选择哪个文件?

Artefact2 在此处提供了一份非常优秀的图表与分析报告。

首先需要明确你能运行多大规格的模型。为此,你需要确认你拥有多少 RAM(内存)和/或 VRAM(显存)。

如果你希望模型以最快速度运行,你需要将整个模型放入 GPU 的显存中。建议挑选文件大小比 GPU 总显存小 1-2GB 的量化版本。

如果你追求极致的质量,可以将系统内存和 GPU 显存相加,同样选择文件大小比该总和容量小 1-2GB 的量化版本。

接下来,你需要决定是使用“I-quant”还是“K-quant”。

如果你不想考虑太多,直接选择 K-quant 即可。它们的命名格式为“QX_K_X”,例如 Q5_K_M。

如果你想深入研究细节,可以查阅这个极其有用的特性对照表:

llama.cpp 特性矩阵 (Feature matrix)

但简单来说,如果你的目标是 Q4 以下,并且使用的是 cuBLAS (Nvidia) 或 rocBLAS (AMD),你应该优先考虑 I-quant。它们的格式为 IQX_X,例如 IQ3_M。这些是更新的量化方案,在相同体积下提供了更出色的性能表现。

这些 I-quant 也可以在 CPU 和 Apple Metal 上运行,但运行速度会慢于同等的 K-quant,因此需要在运行速度和模型性能之间做出权衡。

I-quant 目前不兼容 Vulcan(这也是 AMD 支持的一种方式),因此如果你使用 AMD 显卡,请仔细核对使用的是 rocBLAS 构建版本还是 Vulcan 构建版本。在撰写本文时,LM Studio 已经推出了支持 ROCm 的预览版,其他推理引擎也有专为 ROCm 优化的构建版本。

致谢 (Credits)

感谢 kalomaze 和 Dampf 协助创建 imatrix 校准数据集。

感谢 ZeroWw 启发了关于 embed/output 权重实验的想法。

想支持我的工作?欢迎访问我的 ko-fi 赞助页面:https://ko-fi.com/bartowski

源站原文

quantized_by: bartowski pipeline_tag: text-generation language:

  • en
  • fr
  • it
  • pt
  • hi
  • es
  • th
  • de extra_gated_prompt: "### LLAMA 3.3 COMMUNITY LICENSE AGREEMENT\nLlama 3.3 Version
    \ Release Date: December 6, 2024\n"Agreement" means the terms and conditions for
    \ use, reproduction, distribution and modification of the Llama Materials set forth
    \ herein.\n"Documentation" means the specifications, manuals and documentation
    \ accompanying Llama 3.3 distributed by Meta at https://www.llama.com/docs/overview.\n
    "Licensee" or "you" means you, or your employer or any other person or entity
    \ (if you are entering into this Agreement on such person or entity’s behalf), of
    \ the age required under applicable laws, rules or regulations to provide legal
    \ consent and that has legal authority to bind your employer or such other person
    \ or entity if you are entering in this Agreement on their behalf.\n"Llama 3.3"
    \ means the foundational large language models and software and algorithms, including
    \ machine-learning model code, trained model weights, inference-enabling code, training-enabling
    \ code, fine-tuning enabling code and other elements of the foregoing distributed
    \ by Meta at https://www.llama.com/llama-downloads.\n
    "Llama Materials" means, collectively, Meta’s proprietary Llama 3.3 and Documentation
    \ (and any portion thereof) made available under this Agreement.\n"Meta" or "
    we" means Meta Platforms Ireland Limited (if you are located in or, if you are
    \ an entity, your principal place of business is in the EEA or Switzerland) and
    \ Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland).\n
    By clicking “I Accept” below or by using or distributing any portion or element
    \ of the Llama Materials, you agree to be bound by this Agreement.\n1. License Rights
    \ and Redistribution.\na. Grant of Rights. You are granted a non-exclusive, worldwide,
    \ non-transferable and royalty-free limited license under Meta’s intellectual property
    \ or other rights owned by Meta embodied in the Llama Materials to use, reproduce,
    \ distribute, copy, create derivative works of, and make modifications to the Llama
    \ Materials.\nb. Redistribution and Use.\ni. If you distribute or make available
    \ the Llama Materials (or any derivative works thereof), or a product or service
    \ (including another AI model) that contains any of them, you shall (A) provide
    \ a copy of this Agreement with any such Llama Materials; and (B) prominently display
    \ “Built with Llama” on a related website, user interface, blogpost, about page,
    \ or product documentation. If you use the Llama Materials or any outputs or results
    \ of the Llama Materials to create, train, fine tune, or otherwise improve an AI
    \ model, which is distributed or made available, you shall also include “Llama”
    \ at the beginning of any such AI model name.\nii. If you receive Llama Materials,
    \ or any derivative works thereof, from a Licensee as part of an integrated end
    \ user product, then Section 2 of this Agreement will not apply to you. \niii. You
    \ must retain in all copies of the Llama Materials that you distribute the following
    \ attribution notice within a “Notice” text file distributed as a part of such copies:
    \ “Llama 3.3 is licensed under the Llama 3.3 Community License, Copyright © Meta
    \ Platforms, Inc. All Rights Reserved.”\niv. Your use of the Llama Materials must
    \ comply with applicable laws and regulations (including trade compliance laws and
    \ regulations) and adhere to the Acceptable Use Policy for the Llama Materials (available
    \ at https://www.llama.com/llama3\_3/use-policy),
    \ which is hereby incorporated by reference into this Agreement. \n2. Additional
    \ Commercial Terms. If, on the Llama 3.3 version release date, the monthly active
    \ users of the products or services made available by or for Licensee, or Licensee’s
    \ affiliates, is greater than 700 million monthly active users in the preceding
    \ calendar month, you must request a license from Meta, which Meta may grant to
    \ you in its sole discretion, and you are not authorized to exercise any of the
    \ rights under this Agreement unless or until Meta otherwise expressly grants you
    \ such rights.\n3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE
    \ LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS”
    \ BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY
    \ KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES
    \ OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
    \ YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING
    \ THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA
    \ MATERIALS AND ANY OUTPUT AND RESULTS.\n4. Limitation of Liability. IN NO EVENT
    \ WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN
    \ CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS
    \ AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL,
    \ EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
    \ OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n5. Intellectual Property.\na. No
    \ trademark licenses are granted under this Agreement, and in connection with the
    \ Llama Materials, neither Meta nor Licensee may use any name or mark owned by or
    \ associated with the other or any of its affiliates, except as required for reasonable
    \ and customary use in describing and redistributing the Llama Materials or as set
    \ forth in this Section 5(a). Meta hereby grants you a license to use “Llama” (the
    \ “Mark”) solely as required to comply with the last sentence of Section 1.b.i.
    \ You will comply with Meta’s brand guidelines (currently accessible at https://about.meta.com/brand/resources/meta/company-brand/).
    \ All goodwill arising out of your use of the Mark will inure to the benefit of
    \ Meta.\nb. Subject to Meta’s ownership of Llama Materials and derivatives made
    \ by or for Meta, with respect to any derivative works and modifications of the
    \ Llama Materials that are made by you, as between you and Meta, you are and will
    \ be the owner of such derivative works and modifications.\nc. If you institute
    \ litigation or other proceedings against Meta or any entity (including a cross-claim
    \ or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.3 outputs
    \ or results, or any portion of any of the foregoing, constitutes infringement of
    \ intellectual property or other rights owned or licensable by you, then any licenses
    \ granted to you under this Agreement shall terminate as of the date such litigation
    \ or claim is filed or instituted. You will indemnify and hold harmless Meta from
    \ and against any claim by any third party arising out of or related to your use
    \ or distribution of the Llama Materials.\n6. Term and Termination. The term of
    \ this Agreement will commence upon your acceptance of this Agreement or access
    \ to the Llama Materials and will continue in full force and effect until terminated
    \ in accordance with the terms and conditions herein. Meta may terminate this Agreement
    \ if you are in breach of any term or condition of this Agreement. Upon termination
    \ of this Agreement, you shall delete and cease use of the Llama Materials. Sections
    \ 3, 4 and 7 shall survive the termination of this Agreement.\n7. Governing Law
    \ and Jurisdiction. This Agreement will be governed and construed under the laws
    \ of the State of California without regard to choice of law principles, and the
    \ UN Convention on Contracts for the International Sale of Goods does not apply
    \ to this Agreement. The courts of California shall have exclusive jurisdiction
    \ of any dispute arising out of this Agreement.\n### Llama 3.3 Acceptable Use Policy\n
    Meta is committed to promoting safe and fair use of its tools and features, including
    \ Llama 3.3. If you access or use Llama 3.3, you agree to this Acceptable Use Policy
    \ (“Policy”). The most recent copy of this policy can be found at https://www.llama.com/llama3\
    _3/use-policy
    .\nProhibited Uses\nWe
    \ want everyone to use Llama 3.3 safely and responsibly. You agree you will not
    \ use, or allow others to use, Llama 3.3 to:\n1. Violate the law or others’ rights,
    \ including to:\n\n 1. Engage in, promote, generate, contribute to, encourage,
    \ plan, incite, or further illegal or unlawful activity or content, such as: \n
    \ 1. Violence or terrorism \n 2. Exploitation or harm to children, including
    \ the solicitation, creation, acquisition, or dissemination of child exploitative
    \ content or failure to report Child Sexual Abuse Material \n 3. Human trafficking,
    \ exploitation, and sexual violence \n 4. The illegal distribution of information
    \ or materials to minors, including obscene materials, or failure to employ legally
    \ required age-gating in connection with such information or materials. \n
    \ 5. Sexual solicitation \n 6. Any other criminal activity\n\n 2. Engage
    \ in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying
    \ of individuals or groups of individuals\n\n 3. Engage in, promote, incite, or
    \ facilitate discrimination or other unlawful or harmful conduct in the provision
    \ of employment, employment benefits, credit, housing, other economic benefits,
    \ or other essential goods and services\n\n 4. Engage in the unauthorized or unlicensed
    \ practice of any profession including, but not limited to, financial, legal, medical/health,
    \ or related professional practices\n\n 5. Collect, process, disclose, generate,
    \ or infer private or sensitive information about individuals, including information
    \ about individuals’ identity, health, or demographic information, unless you have
    \ obtained the right to do so in accordance with applicable law\n\n 6. Engage
    \ in or facilitate any action or generate any content that infringes, misappropriates,
    \ or otherwise violates any third-party rights, including the outputs or results
    \ of any products or services using the Llama Materials\n\n 7. Create, generate,
    \ or facilitate the creation of malicious code, malware, computer viruses or do
    \ anything else that could disable, overburden, interfere with or impair the proper
    \ working, integrity, operation or appearance of a website or computer system\n\n
    \ 8. Engage in any action, or facilitate any action, to intentionally circumvent
    \ or remove usage restrictions or other safety measures, or to enable functionality
    \ disabled by Meta\n\n2. Engage in, promote, incite, facilitate, or assist in the
    \ planning or development of activities that present a risk of death or bodily harm
    \ to individuals, including use of Llama 3.3 related to the following:\n\n 1.
    \ Military, warfare, nuclear industries or applications, espionage, use for materials
    \ or activities that are subject to the International Traffic Arms Regulations (ITAR)
    \ maintained by the United States Department of State or to the U.S. Biological
    \ Weapons Anti-Terrorism Act of 1989 or the Chemical Weapons Convention Implementation
    \ Act of 1997\n\n 2. Guns and illegal weapons (including weapon development)\n
    \n 3. Illegal drugs and regulated/controlled substances\n\n 4. Operation of
    \ critical infrastructure, transportation technologies, or heavy machinery\n\n
    \ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders\n
    \n 6. Any content intended to incite or promote violence, abuse, or any infliction
    \ of bodily harm to an individual\n\n3. Intentionally deceive or mislead others,
    \ including use of Llama 3.3 related to the following:\n\n 1. Generating, promoting,
    \ or furthering fraud or the creation or promotion of disinformation\n\n 2. Generating,
    \ promoting, or furthering defamatory content, including the creation of defamatory
    \ statements, images, or other content\n\n 3. Generating, promoting, or further
    \ distributing spam\n\n 4. Impersonating another individual without consent, authorization,
    \ or legal right\n\n 5. Representing that the use of Llama 3.3 or outputs are
    \ human-generated\n\n 6. Generating or facilitating false online engagement, including
    \ fake reviews and other means of fake online engagement\n\n4. Fail to appropriately
    \ disclose to end users any known dangers of your AI system\n5. Interact with third
    \ party tools, models, or software designed to generate unlawful content or engage
    \ in unlawful or harmful conduct and/or represent that the outputs of such tools,
    \ models, or software are associated with Meta or Llama 3.3\nWith respect to any
    \ multimodal models included in Llama 3.3, the rights granted under Section 1(a)
    \ of the Llama 3.3 Community License Agreement are not being granted to you if you
    \ are an individual domiciled in, or a company with a principal place of business
    \ in, the European Union. This restriction does not apply to end users of a product
    \ or service that incorporates any such multimodal models.\nPlease report any violation
    \ of this Policy, software “bug,” or other problems that could lead to a violation
    \ of this Policy through one of the following means:\n* Reporting issues with the
    \ model: https://github.com/meta-llama/llama-models/issues
    \ * Reporting risky content generated by the model: developers.facebook.com/llama\
    _output\_feedback
    * Reporting
    \ bugs and security concerns: facebook.com/whitehat/info
    \ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama
    \ 3.3: [email protected] " extra_gated_fields: First Name: text Last Name: text Date of birth: date_picker Country: country Affiliation: text Job title: type: select options:
    • Student
    • Research Graduate
    • AI researcher
    • AI developer/engineer
    • Reporter
    • Other geo: ip_location ? By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy : checkbox base_model: huihui-ai/Llama-3.3-70B-Instruct-abliterated license: llama3.3 extra_gated_button_content: Submit tags:
  • facebook
  • meta
  • llama
  • llama-3
  • abliterated
  • uncensored extra_gated_description: The information you provide will be collected, stored, processed and shared in accordance with the Meta Privacy Policy.

Llamacpp imatrix Quantizations of Llama-3.3-70B-Instruct-abliterated

Using llama.cpp release b4381 for quantization.

Original model: https://huggingface.co/huihui-ai/Llama-3.3-70B-Instruct-abliterated

All quants made using imatrix option with dataset from here

Run them in LM Studio

Prompt format

<|begin_of_text|><|start_header_id|>system<|end_header_id|>

Cutting Knowledge Date: December 2023
Today Date: 26 Jul 2024

{system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>

{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Download a file (not the whole branch) from below:

FilenameQuant typeFile SizeSplitDescription
Llama-3.3-70B-Instruct-abliterated-Q8_0.ggufQ8_074.98GBtrueExtremely high quality, generally unneeded but max available quant.
Llama-3.3-70B-Instruct-abliterated-Q6_K.ggufQ6_K57.89GBtrueVery high quality, near perfect, recommended.
Llama-3.3-70B-Instruct-abliterated-Q5_K_L.ggufQ5_K_L50.60GBtrueUses Q8_0 for embed and output weights. High quality, recommended.
Llama-3.3-70B-Instruct-abliterated-Q5_K_M.ggufQ5_K_M49.95GBtrueHigh quality, recommended.
Llama-3.3-70B-Instruct-abliterated-Q5_K_S.ggufQ5_K_S48.66GBfalseHigh quality, recommended.
Llama-3.3-70B-Instruct-abliterated-Q4_1.ggufQ4_144.31GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
Llama-3.3-70B-Instruct-abliterated-Q4_K_L.ggufQ4_K_L43.30GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
Llama-3.3-70B-Instruct-abliterated-Q4_K_M.ggufQ4_K_M42.52GBfalseGood quality, default size for most use cases, recommended.
Llama-3.3-70B-Instruct-abliterated-Q4_K_S.ggufQ4_K_S40.35GBfalseSlightly lower quality with more space savings, recommended.
Llama-3.3-70B-Instruct-abliterated-Q4_0.ggufQ4_040.12GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
Llama-3.3-70B-Instruct-abliterated-IQ4_NL.ggufIQ4_NL40.05GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
Llama-3.3-70B-Instruct-abliterated-Q3_K_XL.ggufQ3_K_XL38.06GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
Llama-3.3-70B-Instruct-abliterated-IQ4_XS.ggufIQ4_XS37.90GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
Llama-3.3-70B-Instruct-abliterated-Q3_K_L.ggufQ3_K_L37.14GBfalseLower quality but usable, good for low RAM availability.
Llama-3.3-70B-Instruct-abliterated-Q3_K_M.ggufQ3_K_M34.27GBfalseLow quality.
Llama-3.3-70B-Instruct-abliterated-IQ3_M.ggufIQ3_M31.94GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
Llama-3.3-70B-Instruct-abliterated-Q3_K_S.ggufQ3_K_S30.91GBfalseLow quality, not recommended.
Llama-3.3-70B-Instruct-abliterated-IQ3_XXS.ggufIQ3_XXS27.47GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
Llama-3.3-70B-Instruct-abliterated-Q2_K_L.ggufQ2_K_L27.40GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
Llama-3.3-70B-Instruct-abliterated-Q2_K.ggufQ2_K26.38GBfalseVery low quality but surprisingly usable.
Llama-3.3-70B-Instruct-abliterated-IQ2_M.ggufIQ2_M24.12GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.
Llama-3.3-70B-Instruct-abliterated-IQ2_S.ggufIQ2_S22.24GBfalseLow quality, uses SOTA techniques to be usable.
Llama-3.3-70B-Instruct-abliterated-IQ2_XS.ggufIQ2_XS21.14GBfalseLow quality, uses SOTA techniques to be usable.
Llama-3.3-70B-Instruct-abliterated-IQ2_XXS.ggufIQ2_XXS19.10GBfalseVery low quality, uses SOTA techniques to be usable.
Llama-3.3-70B-Instruct-abliterated-IQ1_M.ggufIQ1_M16.75GBfalseExtremely low quality, not recommended.

Embed/output weights

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Downloading using huggingface-cli

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF --include "Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF --include "Llama-3.3-70B-Instruct-abliterated-Q8_0/*" --local-dir ./

You can either specify a new local-dir (Llama-3.3-70B-Instruct-abliterated-Q8_0) or download them all in place (./)

ARM/AVX information

Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%

Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

The I-quants are not compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.

Credits

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

HUGGING FACE

上游数据

HF 下载量8万
HF 点赞量37

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
bartowski
最近更新
未知
最新创建
2024/12/23
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
llama3.3