获取模型
仓库信息
- 对外状态:根据《中华人民共和国网络安全法》第十二条,此模型镜像不对外开放:该权重基于成人向(NSFW)语料微调,仅用于内部研究,不进行分发。站主拒绝一切个人索要请求
- 默认分支:
main - 最后提交:2026-10-10 — GGUFs are not hosted here: state that, and give the build commands
- 文件数:5(3 个可在线查看)
- 镜像 commit:
1009df314959
README
license: other license_name: see-base-model-licenses base_model: JoyFox-Qwen3.6-35B-A3B-RP-Aggressive library_name: peft pipeline_tag: text-generation language: - zh tags: - roleplay - erotica - nsfw - adult - lora - peft - qwen - moe - chinese
Qwen-3.6-35B-A3B-joyfox-RP-NSFW
An adult (18+) Chinese roleplay LoRA for JoyFox-Qwen3.6-35B-A3B-RP-Aggressive.
This repository contains the run-3 adapter, which met the explicit-density target.
Read Content boundaries before use. The corpus was filtered for underage, bestiality and snuff content, but a post-hoc audit with a repaired filter found that 1.33% of the supervised tokens in this adapter's training data came from rows in which a character described as underage participates in or sits adjacent to a sexual scene. The exact categories and counts are stated below. Publishing this was a deliberate, disclosed decision; re-training on a corrected corpus is the clean fix and has not been done.
中文摘要
面向成人(18+)中文角色扮演的 LoRA 适配器,基座为 JoyFox-Qwen3.6-35B-A3B-RP-Aggressive。
目标是让模型在长对话中稳定地写出成人向、具体、不回避的中文 RP 内容,格式服从系统提示
(*动作*/引号台词),单轮约 800–1000 字。
当前状态:第三轮已发布。 显式内容密度达到并超过参考目标;格式服从率相对第二轮下降 (52% vs 60–75%)。
已知数据缺陷(逐条披露): 用修好的过滤器回溯审计,训练切片中有 25 个块 / 3,627 个
监督 token(1.33%)来自「幼龄角色参与性行为」的文本,约 5–7 篇不同源文(同一文本被渲染成
多种格式,导致块数被放大)。旧过滤器的词表没有覆盖 小男孩 / 小女孩 / 小女生 这类
隐含幼龄描述词,同时漏掉全角数字 16岁,并存在 十岁 命中 七十岁 的子串缺陷。
过滤器已修复;重训可以完全移除这批数据,但尚未重训。
What this is
A LoRA (not a merged model). Target modules: q_proj, k_proj, v_proj, o_proj,
in_proj_qkv, in_proj_z, out_proj — rank 16, alpha 32, dropout 0.05, bf16 base,
14.25 M trainable parameters across 130 modules.
Trained with response-only loss masking over a 384-token sliding window, on a packed corpus of Chinese roleplay turns.
Intended use
Chinese-language adult roleplay, single-user, local inference. Per-turn prose of roughly
800–1000 characters, third-person narration with the user addressed as 「你」, dialogue in
quotes, actions optionally wrapped in *beats* depending on the system prompt.
Content boundaries — read before use
This is an adult model trained on adult fiction. What the corpus did and did not contain shapes what the model will and will not produce.
Intended to be removed before training:
- any stated or implied age under 18, school-grade markers, "undeveloped" descriptors
- bestiality
- mutilation / snuff / corpse content
Retained deliberately (and therefore present in the model's behaviour):
- explicit adult sexual content between adults
- incest and family-relation scenarios — a large share of the source corpus
- non-consensual and coercive scenarios — also a large share of the source corpus (1,048 of 2,045 row-level corpus rows — 51% — carry an incest or non-consent flag)
Residual underage content — measured, not estimated
A post-hoc audit of this adapter's own training slice (rp_v16_dense1500.jsonl) with a
repaired filter found rows that the original filter passed. Measured exactly, because
every packed block carries the row index it was built from:
| class | blocks | supervised tokens | share of slice |
|---|---|---|---|
| underage character participates in / is adjacent to sex | 25 | 3,627 | 1.33% |
| simile, metaphor, third-party mention, literary replay | 14 | 2,466 | 0.90% |
The 25 blocks come from roughly 5–7 distinct source texts, each rendered into several
prompt formats — which is why the block count is larger than the number of underlying
scenes. The clearest cases are a scene in which a character called 小女孩 performs oral
sex, a scene in which a child is taught to repeat an obscene word on cue, and a scene in
which the rapist is described as 小男孩.
Why the original filter missed them. Three independent defects:
- The descriptor list lacked the words that actually carry the signal.
小男孩,小女孩,小女生,女娃were absent, so an implied-underage participant was invisible. - Full-width digits were not in the age character class. Three rows stating
16岁passed. (They did not reach the training slice, but the defect is real.) - A substring bug in the opposite direction. The numeric entries were matched with a
bare
in texttest, so十岁matched inside七十岁. Eight general-literature replay rows were flagged as minors; row 493 of the corpus is a Jin Yong passage about a seventy-year-old mother.
All three are fixed in the pipeline (stage29_hard_gate.py), verified against 13 boundary
cases, and the repaired filter now rejects 113/2,045 row-level rows instead of 59. The
model was not retrained after the fix. The adapter published here was produced from the
corpus that contained the 1.33%.
A second, structural defect is worth recording. The filter's verdict is stored as
meta.hard_gate and travels with the row — but stages 30–35 rewrite the text afterwards
(POV reconstruction, script normalisation, rehearsal splicing). A content filter's verdict
is only valid for the text it actually saw; every later stage that rewrites content
silently invalidates it. This is the same failure shape as the packing defect described
under Method notes: a guarantee that looks airtight and guarantees nothing.
Known limitation that cannot be fixed programmatically. The filter keys on explicit and implied markers. A character whose age is never stated and who is not described with any of those words cannot be detected by it. Treat the age guarantee as "nothing explicitly or by-descriptor underage", not "verified adult throughout".
This model is not a safety-tuned or content-filtered model. It reproduces the tone and the consent dynamics of its corpus. Deployment is your responsibility.
What was verified clean
So that the disclosure above is not read as broader than it is: the 59 rows the original
filter flagged inside the released corpus were individually triaged. All 59 are substring
artefacts in general-instruction replay rows built from classic literature and popular
science — Yu Qiuyu, Yu Hua, Lu Xun, Jin Yong, Qian Mu, Harari, Hemingway, Márquez,
Tolstoy, a history of the world, a book on string theory. Not one came from the erotica
corpus. snuff:自杀 fired on The Old Man and the Sea; undead:亡魂 on a Lu Xun essay;
grade:课本 on a physics textbook; minor:十岁 on 七十岁.
Training data provenance
The corpus is derived from a public collection of Chinese popular erotica — largely scanned and OCR'd print publications from the 1990s–2000s, plus Chinese visual-novel scripts and character-roleplay chat logs. Observed evidence of that origin includes OCR damage, embedded forum spam, and publisher copyright strings in the source text.
The underlying works are third-party and their copyright status is unverified. The derived dataset is not redistributed in this repository, and this release publishes only the adapter weights, not the corpus. Downstream users should treat the training-data provenance as unresolved.
Method notes
The pipeline that produced this adapter is documented because the negative results are as useful as the positive ones.
- Format compliance is measured, not assumed. Loss cannot tell you whether the model
reads the system prompt. Across 54 real target-style turns, the reference convention is:
median 901 characters, 18 lines,
*beats*in ~56% of turns,()in 0/54,「」in 0/54. - Explicit-content dose was measured on supervised tokens, not rows. The run-3 corpus carries 71.9 explicit hits per 1k supervised tokens against the reference target's 23.3/1k — 2.9× the dose, reached by selecting denser blocks rather than by changing hyperparameters.
- Repetition prior dominates content learning. Run 1's corpus contained single-character runs (a 12-gram repeated 166×, 64 consecutive moans) that had bypassed an earlier cleaning stage. Loss looked normal (2.0–3.6) for the whole run while the model learned to fill its 900-character quota with a repeated line.
- A packing guarantee that guaranteed nothing. An earlier packer emitted 6,100 of 10,424 context-free spans while its own assertion classified all of them as "prompt blocks" and therefore passed. Rewritten, it now produces 0 empty-context blocks out of 12,293.
Evaluation
Two suites, because loss is not a verdict:
Health probe (10 fixed prompts): type-token ratio, repetition, degeneration rate.
Format-compliance suite (23 prompts across six groups, including demands the corpus
never demonstrates — JSON, action:/say: lines — and a mid-conversation format switch).
| metric | base | run 1 (greedy) | run 2 (sampled) | run 3 (sampled) |
|---|---|---|---|---|
| explicit hits / 1k, explicit prompts | 0.00 | 0.00 | 4.35 | 26.56 |
| explicit hits / 1k, all prompts | 0.00 | 3.01 | 2.27 | 9.68 |
| progression | 0.22 | 0.35 | 2.87 | 3.26 |
| median reply length | 40 chars | 932 | 1056 | 975 |
| loop rate | 4.3% | 87.0% | 13.0% | 21.7% |
| format compliance | — | 83% (trained conv. only) | 60–75% | 52% |
The reference target convention is 23.3 explicit hits / 1k. Run 3 reaches 26.56/1k on the held-out explicit prompts — it clears the reference; the base model produces 0.00.
Run 1 (r=16, lr 1e-4, 187 steps) — FAILED, not published. The adapter learned length and format and nothing else: 932-character replies containing zero explicit vocabulary, typically one sentence repeated. It also destroyed out-of-distribution format compliance (JSON 100% → 50%, KV 50% → 0%). Root cause: the repetition prior above, compounded by a learning rate too high for a 35B MoE.
Run 2 (r=16, lr 5e-5, 1500 packed blocks) — PARTIAL. Repetition collapsed across the corpus, structured-output rehearsal mixed in, learning rate halved. It fixed length and degeneration but explicit density was still 2.27/1k against the 23/1k target.
Run 3 (r=16, 1500 densest blocks) — TARGET MET. 187 steps, 1500 micro-batches, 436,167 tokens (272,602 supervised), 0 skipped, 10.83 h at 11.18 tok/s.
What changed was which blocks the loss was computed on, not the hyperparameters:
| run 2 slice | run 3 slice | |
|---|---|---|
| selection | first 1500 blocks | 1500 densest blocks |
| roleplay density | 24.8 / 1k | 71.9 / 1k |
| ratio | — | 2.90× |
For identical compute this was a 2.90× increase in effective dose. The selection spans the whole corpus (block indices 16–12,283) and overlaps the run-2 slice by only 12%.
Two measurement lessons, recorded because they cost three runs:
- Loss is not a verdict. Run 1's loss sat at 2.0–3.6 for eleven hours while the model repeated a single sentence. Run 3's loss oscillated between 2.53 and 4.17 with no downward trend at all for 10.8 hours — mean 3.15 — while the evaluation improved from 4.35 to 26.56 explicit hits per 1k. The loss curve carried no information in either direction.
- Greedy decoding is not a verdict either. Run 2 was first scored greedily and declared failed (loop rate 82.6%, 21/23 replies with zero explicit content) — and that verdict was published. Under sampling the same adapter measures 13.0% loops and 37 explicit hits. A model fine-tuned to write ~900 characters loops under greedy decoding because greedy takes the highest-probability token every time. Sample before you judge.
Decoding guidance. Use temperature 0.85, top_p 0.92, top_k 60, repetition_penalty 1.15.
Do not decode this model greedily. A no_repeat_ngram_size of 6 is a cheap guard against
runaway repetition; penalty sweeps above 1.3 gave no reliable gain (1.30 was measurably
worse: 38 vs 78 explicit hits over the same prompts).
The loop rate is noisy at this sample size. The 23-prompt suite cannot separate 13% from 22% loop rate: prompts marked as looping on one run did not loop on an identical re-run (0/5). Treat 21.7% as "somewhat prone to repetition", not as a precise figure.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "JoyFox-Qwen3.6-35B-A3B-RP-Aggressive"
tok = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base, dtype="bfloat16", device_map={"": "cuda:0"},
attn_implementation="eager", experts_implementation="batched_mm")
model = PeftModel.from_pretrained(model, "RomanCohort/Qwen-3.6-35B-A3B-joyfox-RP-NSFW")
msgs = [{"role": "system", "content": "..."}, {"role": "user", "content": "..."}]
prompt = tok.apply_chat_template(msgs, tokenize=False,
add_generation_prompt=True, enable_thinking=False)
out = model.generate(**tok(prompt, return_tensors="pt").to(model.device),
do_sample=True, temperature=0.85, top_p=0.92, top_k=60,
repetition_penalty=1.15, max_new_tokens=1200)
Two base-model notes, both learned the hard way:
- Disable thinking. With thinking enabled the base emits an English chain-of-thought and
the visible reply comes back empty of Chinese. Pass
enable_thinking=False. - The chat template rejects non-leading system messages. If your frontend injects system
content mid-conversation you will get
System message must be at the beginning.Use a permissive template or keep system content at position 0.
Ollama / llama.cpp
No GGUF is hosted in this repository. It is a LoRA adapter release; the merged GGUF conversions exist only locally, because publishing them was not possible from the machine that produced them (its sustained upload rate to the Hub measured 0.006–0.135 MB/s, which puts a 25 GB file at 2–20 days). Build them yourself — the conversion is one command each and the exact commands are below.
| produced locally | size | note |
|---|---|---|
joyfox-v17-run3-Q5_K_M.gguf |
~24 GB | recommended |
joyfox-v17-run3-Q8_0.gguf |
~35 GB | higher fidelity, same behaviour (measured) |
Both are this run-3 adapter merged into the base model — they are not the base model. The
merge is base + 2.0 × (B @ A) per target module, verified element-wise to bf16 rounding
(max |diff| ≈ 4.9e-4). v17 is the internal run number; the run3 tag says which run it
came from. To reproduce:
# 1. merge the adapter into a copy of the base weights
python merge_lora_cpu.py --base <base-safetensors-dir> \
--adapter <this-repo-checkout> --out <merged-dir>
# 2. HF -> GGUF. This architecture goes through conversion/qwen.py
# (Qwen3_5MoeForConditionalGeneration, TEXT path); the MTP head is bundled by default.
python convert_hf_to_gguf.py <merged-dir> --outtype q8_0 --outfile joyfox-v17-Q8_0.gguf
# 3. Q8_0 -> Q5_K_M
llama-quantize --allow-requantize --leave-output-tensor \
joyfox-v17-Q8_0.gguf joyfox-v17-run3-Q5_K_M.gguf Q5_K_M
The Modelfile in this repository points at the Q5_K_M file:
ollama create joyfox-v17 -f Modelfile
The Modelfile overrides the embedded chat template, and that is not cosmetic. The GGUF's
own template turns thinking on unless it is explicitly passed enable_thinking=false, which
Ollama cannot do — and with thinking on, this base model emits an English chain-of-thought
and the visible reply comes back empty of Chinese. The override always prefills an empty
thinking block, which is equivalent and verified:
<|im_start|>assistant
<think>
</think>
For llama.cpp directly, end your prompt file with those four lines and let the model
continue:
llama-cli -m joyfox-v17-Q5_K_M.gguf -f prompt.txt -n 500 \
--temp 0.85 --top-p 0.92 --top-k 60 --repeat-penalty 1.15
Note: do not send a fully chat-templated prompt to /completion. llama-server recognises
the template and rejects it with 400 "prompt" elements must be a string, .... A single
marker is fine; a complete <|im_start|>…<|im_end|> structure is not. Use
/chat/completions with messages, which also accepts chat_template_kwargs:
{ "messages": [{"role": "system", "content": "…"}, {"role": "user", "content": "…"}],
"chat_template_kwargs": {"enable_thinking": false},
"temperature": 0.85, "top_p": 0.92, "top_k": 60, "repeat_penalty": 1.15 }
The Q5_K_M file is requantized from the Q8_0 intermediate, which llama-quantize refuses by
default. For this pair the refusal is over-conservative: Q8_0 is ~8.5 bits/weight and
near-lossless (relative error ~0.1–0.3%) while Q5_K_M itself contributes ~2%, so the
compounded error is sqrt(0.3² + 2²) ≈ 2.02% against 2.0% from a direct 16-bit quantize.
The warning is aimed at chained low-bit requantization (Q4 → Q3), where errors do compound
badly. --leave-output-tensor keeps the output head at Q8_0 regardless.
Verified, not just argued. The two files were run against each other on one prompt and five fixed seeds, same build, same sampler, with only the quantizer differing:
| reply length (chars) | mean | median | explicit hits / 1k | |
|---|---|---|---|---|
| Q8_0 | 483, 548, 578, 589, 632 | 566 | 578 | 34.7 |
| Q5_K_M | 450, 567, 582, 589, 600 | 558 | 582 | 37.3 |
Exact Mann-Whitney U = 12.5, two-tailed p = 1.00 — no measurable difference. The requantized file is not a degraded model; for most deployments it is simply the smaller one.
A caveat worth recording, because it nearly produced the opposite conclusion: the first
attempt at this comparison piped curl's stdout through PowerShell, which decoded the UTF-8
response with the ANSI codepage. The mojibake inflated the Q8_0 character counts by ~50% and
returned a confident, significant, entirely fictitious 21% shortening (p = 0.03). Verify the
encoding of your measurement path before you trust its numbers.
Hardware
Trained and evaluated on a single AMD Strix Halo iGPU (gfx1151, ROCm 7.13, torch 2.12.0a0)
with a 384-token window. Trainer-side details that mattered: gradient checkpointing, the
reference (non-fused) Gated DeltaNet kernels, gc + empty_cache every optimizer step,
and a host-RAM floor guard — the device pool is GTT/host-backed, so host pressure, not VRAM,
is the binding constraint.
convert_hf_to_gguf.py supports this architecture through conversion/qwen.py
(Qwen3_5MoeForConditionalGeneration, TEXT path) and bundles the MTP head by default;
the conversion yields 753 tensors from 31,685 HF tensors.
License
The adapter weights are released under the terms of the base model. The base model's own license governs. The training corpus is third-party and its status is unverified — see Training data provenance.