SubMaroon commited on
Commit
0d555eb
Β·
verified Β·
1 Parent(s): 9ecf4a1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +93 -27
README.md CHANGED
@@ -1,10 +1,11 @@
1
  ---
2
  license: gemma
 
 
 
3
  language:
4
  - en
5
  - ru
6
- base_model:
7
- - Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA-GGUF
8
  tags:
9
  - lora
10
  - roleplay
@@ -13,50 +14,115 @@ tags:
13
  - russian
14
  - gemma4
15
  - moe
16
- pipeline_tag: text-generation
17
- library_name: peft
18
  ---
19
 
20
- Atmospheric genre LoRA adapter primarily for English-language roleplay (also works in Russian). Adds a darker, more literary tone to the narrative. Designed exclusively to adjust style and response structure in "Dark Fantasy" RP. The adapter does not contain any plots or characters from the training data.
 
 
 
 
 
21
 
22
- ## GGUF Version
 
23
 
24
- Two GGUF files are provided:
25
 
26
- - `goetia-book-lora-v2-main.gguf` β€” **recommended** β€” 2 epochs β†’ stronger influence β†’ use the recommended scales as listed above
27
- - `goetia-book-lora-v2-chk177.gguf` β€” 1 epoch β†’ the influence is weaker and less pronounceduse β†’ **1.3Γ—** the scale from the table
28
 
29
- Example: if you run `main` at 0.55, run `chk177` at 0.71.
30
 
31
- # Recommended Scale Settings (main ver.)
32
- | Scale | Effect (Test setup: SillyTavern + [Preset](https://github.com/SpicyMarinara/SillyTavern-Settings/blob/main/Marinara%27s%20Essentials/Preset/Marinara%27s%20Spaghetti%20Recipe.json) + 2000+ token character card) |
33
- |---|---|
 
 
 
 
 
 
 
 
 
34
  | 0.1–0.2 | Effect barely noticeable |
35
- | 0.3–0.5 | Recommended (stable, from the least to the greatest influence) |
36
- | 0.7+ | Very strong influence (can start overpowering the base model) |
 
 
 
 
 
37
 
38
- **Note**: Performs reliably in all RP scenarios at scales above 0.5. The darker literary tone becomes most pronounced in Dark Fantasy settings. Best used in full roleplay sessions (SillyTavern with character card + system prompt). Isolated short prompts may show a weaker effect.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  ## Training
41
 
42
  - **Base:** Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA (Gemma 4 MoE, abliterated)
43
- - **Method:** QLoRA, attention-only (`q/k/v/o_proj`, 30 layers of the text tower), r=32, alpha=64, 2 epochs, completion-only loss
44
- - **Data:** Novel broken down into scenes β†’ scenes rewritten by a neural network into a synthetic RP dataset (actions and internal thoughts preserved, original author’s prose style removed). Dataset contains both English and Russian samples, with primary focus on English.
 
 
 
 
 
45
 
46
  ## Limitations
47
 
48
  - **18+.** Base model is abliterated, training data includes adult and dark content.
49
- - Primarily optimized for English. Works in Russian as well, but the effect is generally weaker.
 
 
 
50
  - Inherits Gemma license terms.
51
 
52
- ## ⚠️ Current Limitations & Known Issues (v2)
53
-
54
- > **Note:** I am using this project as a hands-on learning experience, so trial and error are an inevitable part of the process!
55
 
56
- This adapter was trained across **all Transformer layers (0–31)** using **Attention-only targets** (`q_proj`, `k_proj`, `v_proj`, `o_proj`), omitting FFN/MLP blocks. Evaluation and user testing revealed the following trade-offs:
 
57
 
58
- * **Lower-Layer Interference:** Fine-tuning initial syntax layers (0–11) forces rigid structural constraints, occasionally stripping away the base model's native linguistic fluidity and stylistic richness.
59
- * **Lack of FFN/MLP Adaptation:** Because the associative Feed-Forward blocks (`gate_proj`, `up_proj`, `down_proj`) were frozen, the model relies solely on attention routing to convey style. This can lead to slightly dry, repetitive phrasing or overly generic vocabulary choices in complex roleplay/narrative scenarios.
60
- * **Over-Formatting Bias:** While XML tag adherence and structural tracking are near-perfect, the narrative prose itself can feel overly sanitized unless the LoRA weight is scaled down (0.4 - 0.6).
 
 
61
 
62
- > **Planned Fix for v3:** Restricting LoRA targeting exclusively to mid-to-upper layers (12–31) to preserve prose depth while maintaining structural stability.
 
1
  ---
2
  license: gemma
3
+ base_model: Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA-GGUF
4
+ library_name: peft
5
+ pipeline_tag: text-generation
6
  language:
7
  - en
8
  - ru
 
 
9
  tags:
10
  - lora
11
  - roleplay
 
14
  - russian
15
  - gemma4
16
  - moe
17
+ - conversational
 
18
  ---
19
 
20
+ # Dark-Goetia-26B-A4B-LoRA-v2
21
+
22
+ Atmospheric genre LoRA adapter primarily for English-language roleplay (also works in
23
+ Russian). Adds a darker, more literary tone to the narrative. Designed exclusively to
24
+ adjust style and response structure in Dark Fantasy RP. The adapter contains no plots or
25
+ characters from the training data.
26
 
27
+ **This is the general-purpose release.** Two experimental variants exist that split this
28
+ adapter's target set in half β€” see [Related adapters](#related-adapters) at the bottom.
29
 
30
+ ## Adapter versions
31
 
32
+ - `goetia-book-lora-v2-main` β€” 2 epochs β†’ use the recommended scales below
33
+ - `goetia-book-lora-v2-chk177` β€” 1 epoch β†’ use **1.5Γ—** the scale from the table
34
 
35
+ Example: if you run main at 0.55, run chk177 at 1.1.
36
 
37
+ ## Recommended scale settings (main ver.)
38
+
39
+ Test setup: SillyTavern + [Marinara's preset](https://github.com/SpicyMarinara/SillyTavern-Settings/blob/main/Marinara%27s%20Essentials/Preset/Marinara%27s%20Spaghetti%20Recipe.json) + 2000+ token character card.
40
+
41
+ **The right ceiling depends on what your card asks for.** Free-form prose RP tolerates
42
+ much more than a card that demands structured output blocks (status trackers, World State
43
+ sections, inner-thought blocks). Both regimes below are measured, not guessed.
44
+
45
+ ### Free-form prose RP β€” no strict formatting requirements
46
+
47
+ | Scale | Effect |
48
+ | --- | --- |
49
  | 0.1–0.2 | Effect barely noticeable |
50
+ | 0.2–0.3 | Minimal / partial influence |
51
+ | **0.3–0.55** | **Recommended** β€” stable, controlled style |
52
+ | 0.55+ | Very strong influence, can start overpowering the base model |
53
+
54
+ Performs reliably in all RP scenarios at scales above 0.5. The darker literary tone
55
+ becomes most pronounced in Dark Fantasy settings. Best used in full roleplay sessions
56
+ (character card + system prompt); isolated short prompts show a weaker effect.
57
 
58
+ ### Cards with strict structured output
59
+
60
+ If your card requires the model to emit formatted blocks every turn, the ceiling is
61
+ considerably lower, and it differs by language:
62
+
63
+ | Language | Safe | First observed failure |
64
+ | --- | --- | --- |
65
+ | English | up to **0.40** | above 0.43 (estimated) |
66
+ | Russian | up to **0.37** | 0.40 |
67
+
68
+ Above these, the model keeps the style but starts silently dropping the formatted blocks.
69
+ Russian is measurably more fragile than English at identical adapter strength β€” if you
70
+ run bilingual sessions, tune to the Russian number.
71
+
72
+ **Note on scaling:** `alpha/r = 2` is stored in the GGUF metadata, and llama.cpp multiplies
73
+ by it *on top of* your scale. All numbers above assume a loader that respects that. If
74
+ yours ignores the metadata, halve everything.
75
+
76
+ ## What's actually in the adapter
77
+
78
+ For anyone merging this or building on it β€” the trained delta isn't distributed evenly
79
+ across attention. Frobenius norms of the effective delta `Ξ”W = (BΒ·A)Β·(alpha/r)`, aggregated
80
+ over layers:
81
+
82
+ | Projection | β€–Ξ”Wβ€– |
83
+ | --- | --- |
84
+ | `o_proj` | 1.563 |
85
+ | `q_proj` | 1.314 |
86
+ | `v_proj` | 1.049 |
87
+ | `k_proj` | 0.828 |
88
+ | **OV total** | **1.882** |
89
+ | **QK total** | **1.553** |
90
+ | Full delta | 2.440 |
91
+
92
+ So roughly **61% OV / 39% QK** by squared norm. That split turns out to matter: the OV
93
+ half carries almost all of the style, while both halves independently contribute to
94
+ formatting degradation β€” OV about 3Γ— more readily per unit of weight change. The
95
+ structured-output ceilings in the table above are set by the OV component alone.
96
 
97
  ## Training
98
 
99
  - **Base:** Naphula/Goetia-26B-A4B-v1.3-Absolute-Heretic-ARA (Gemma 4 MoE, abliterated)
100
+ - **Method:** QLoRA 4-bit, attention-only (`q/k/v/o_proj`), all 30 layers of the text tower,
101
+ r=32, alpha=64, 2 epochs, completion-only loss
102
+ - **Scope:** **115** attention projections, not 120 β€” layers 5, 11, 17, 23 and 29 are
103
+ global-attention layers with no `v_proj` at all. 22,978,560 trainable params (0.089%).
104
+ - **Data:** Novel broken down into scenes β†’ scenes rewritten by a neural network into a
105
+ synthetic RP dataset (actions and internal thoughts preserved, original author's prose
106
+ style removed). Contains both English and Russian samples, English-primary.
107
 
108
  ## Limitations
109
 
110
  - **18+.** Base model is abliterated, training data includes adult and dark content.
111
+ - Primarily optimized for English. Works in Russian, but the style effect is generally
112
+ weaker *and* instruction-following is more fragile there β€” see the scale tables.
113
+ - Structured-output thresholds were measured with one generation per setting at a single
114
+ context depth. Treat them as calibrated starting points, not hard constants.
115
  - Inherits Gemma license terms.
116
 
117
+ ## Related adapters
 
 
118
 
119
+ v3 splits this adapter's 115 targets into two non-overlapping halves, trained separately
120
+ on identical data with identical hyperparameters and seed:
121
 
122
+ - [**v3-A**](https://huggingface.co/SubMaroon/Dark-Goetia-26B-A4B-LoRA-v3-A) β€” `v_proj` + `o_proj`
123
+ (55 modules). The style channel on its own, without the QK component. Experimental;
124
+ useful if your card demands strict formatting and v2 keeps dropping it.
125
+ - [**v3-B**](https://huggingface.co/SubMaroon/Dark-Goetia-26B-A4B-LoRA-v3-B) β€” `q_proj` + `k_proj`
126
+ (60 modules). Research artifact β€” weak style, published for reproducibility.
127
 
128
+ A + B = exactly this adapter's target set and parameter budget.