webmp3/Sakura-Jais-3-7B-Uncensored-GGUF

来源:🤗text-generationapache-2.0激活 7B34 GBGGUF✓ 5 个校验和3 天前更新
或提交种子

For adults only; you are responsible for what you generate and for the laws that apply to you. The language weights of this model were edited to refuse less; it still refuses some of the harmful prompts we tested (4 to 6 of 104), and we measured only English prompts in a single setting (see below). Do not use it to harm others.

Sakura — Jais-3-7B, uncensored (GGUF)

Jais-3-7B (Arabic and English, dense, K2 Horizon architecture) in a version whose weights were edited by us with an abliteration run so that it refuses less, as GGUF with importance-matrix quantizations. The unmodified model is in Sakura-Jais-3-7B-GGUF. This is version 2; the first version of these files refused much more and was replaced.

What was changed

  • The language weights were edited with an abliteration method (a refusal direction is removed from part of the weight matrices) on the original checkpoint inception42/Jais-3-7B (revision 94d69f49), with settings chosen and tuned by us; all other weights are unchanged.
  • The files were made from the original BF16 weights with llama.cpp and quantized with an importance matrix computed by us on the edited model (English and German calibration text, no Arabic).

Files

File Size What it is
Sakura-Jais-3-7B-Uncensored-Q8_0-8.92GiB.gguf 8.92 GiB Q8_0 (no importance matrix)
Sakura-Jais-3-7B-Uncensored-Q6_K-6.89GiB.gguf 6.89 GiB Q6_K (no importance matrix)
Sakura-Jais-3-7B-Uncensored-Q5_K_M-6.02GiB.gguf 6.02 GiB Q5_K_M with importance matrix
Sakura-Jais-3-7B-Uncensored-Q4_K_M-5.21GiB.gguf 5.21 GiB Q4_K_M with importance matrix
Sakura-Jais-3-7B-Uncensored-IQ4_XS-4.76GiB.gguf 4.76 GiB IQ4_XS with importance matrix

Run

llama-server -m Sakura-Jais-3-7B-Uncensored-Q5_K_M-*.gguf --jinja -ngl 99 -c 8192

Jais-3 is a model that always thinks: its chat template opens <ifm|think>, <ifm|think_fast> or <ifm|think_faster> for reasoning_effort high (default), medium or low. Pass the effort per request as chat_template_kwargs: {"reasoning_effort": "low"}. The architecture (K2 Horizon) needs a llama.cpp build with the support merged on 2026-10-06 (PR 29535); we used b11594 and b11681, older builds do not know it.

What we measured

Refusals. The 104 harmful prompts of the test split of mlabonne/harmful_behaviors, plain chat without a system prompt, reasoning_effort low, temperature 0, up to 1500 tokens, llama-server b11594; the answer after the thinking block is counted; a refusal is an English refusal phrase or one of 17 Arabic refusal phrases (the models often answer English prompts in Arabic). These prompts were not used to compute the edit, but they are not held out from our choice of settings (we looked at these 104 prompts when choosing).

Model Refusals Answers in Arabic
unmodified Q8_0 103 / 104 0
first version of this repository, Q8_0 80 / 104 5
this version, Q8_0 4 / 104 15
unmodified Q4_K_M 103 / 104 30
first version, Q4_K_M 52 / 104 47
this version, Q4_K_M 6 / 104 52

Language: with these English prompts, 15 of 104 answers of this version's Q8_0 and 52 of 104 of its Q4_K_M are in Arabic (unmodified Q4_K_M: 30); we do not know why the Q4_K_M files switch language so often. An answer that is not counted as a refusal has not necessarily done what was asked, and we did not check the quality of the answers beyond reading some. We did not repeat the measurement at reasoning_effort high for this version (the first version had 13 of 104 at high with 21 answers cut off).

Distance to the unmodified model (Q8_0 of each version against the unmodified Q8_0; KL divergence, llama-perplexity b11594, 20 chunks of 2048 tokens of an English and a web text):

Model KLD en / web same top token en / web Perplexity en / web
unmodified Q8_0 - - 8.51 / 12.69
first version, Q8_0 0.013 / 0.008 95.1 / 95.4 % 8.71 / 12.79
this version, Q8_0 0.038 / 0.024 91.8 / 92.5 % 8.97 / 12.99

Quantization loss (KL divergence of each file against the Q8_0 of this repository, same protocol; the reference is Q8_0, not BF16):

File Size KLD en KLD web same top token en / web
Q6_K 6.89 GiB 0.0166 ± 0.0008 0.0075 ± 0.0001 94.7 / 95.1 %
Q5_K_M 6.02 GiB 0.0138 ± 0.0005 0.0076 ± 0.0001 94.9 / 95.2 %
Q4_K_M 5.21 GiB 0.0328 ± 0.0009 0.0178 ± 0.0002 92.2 / 92.7 %
IQ4_XS 4.76 GiB 0.0650 ± 0.0024 0.0242 ± 0.0003 90.0 / 91.6 %

Not measured: anything in Arabic (quality, refusals, perplexity), any capability benchmark, refusals with a system prompt, other prompt sets, multi-turn chats, speed, the high reasoning effort for this version.

License

Apache-2.0 as the original model (LICENSE). The files are modified (edited and quantized) versions of the original weights. See NOTICE.

Credits


中文版见 README_zh.md。