TinyErotica Ships Literotica-Writer, a 26B Adult Fiction Model for Local Inference
A community LoRA adapter fine-tunes an uncensored Gemma 4 MoE on 646k Literotica stories, shipped as GGUF for local inference.
Takeaways
- TinyErotica published Literotica-Writer-26B-A4B, a LoRA fine-tune for long-form adult fiction.
- Built on TrevorJS's abliterated Gemma 4 MoE, listed on its page as a 25B parameter model.
- Trained on detain/literotica-stories, a 646k-row parquet dataset of tagged Literotica submissions.
- Ships safetensors, PEFT adapter, and Q4_K_M plus Q8_0 GGUF quantizations under Apache-2.0.
- Runs locally via llama.cpp, Ollama, LM Studio, vLLM or Docker Model Runner with a single command.
- Base model uses norm-preserving abliteration with Expert-Granular Abliteration applied per MoE expert.
Community publisher TinyErotica has released Literotica-Writer-26B-A4B, a long-form adult-fiction model built by adding a LoRA adapter to an uncensored Gemma 4 Mixture-of-Experts base. Ready-made GGUF quantizations make the result deployable through common local inference tools. For developers, the release demonstrates how existing weights, behavioral editing, domain fine-tuning, and quantization can produce a specialist model without another pretraining run.
Three artifacts, one release
The model repository contains safetensors files for PEFT-compatible workflows and GGUF builds for llama.cpp. The card identifies the model as having 25 billion parameters, despite the 26B label in its name, and categorizes it for text generation, storytelling, creative writing, and conversation.
| Artifact | Purpose | Developer use |
|---|---|---|
| Safetensors and PEFT files | Package the LoRA adaptation | Loading, merging, further tuning, and controlled comparisons |
Q4_K_M GGUF |
Reduces memory with 4-bit quantization | Single-GPU inference on suitable consumer hardware |
Q8_0 GGUF |
Preserves more weight precision at a higher memory cost | Quality comparisons and higher-memory deployments |
The A4B suffix indicates that the sparse architecture activates roughly 4 billion parameters for each token, according to the naming used by the base publisher. Mixture-of-Experts models route tokens through selected expert networks, reducing arithmetic per token. The full collection of expert weights generally remains resident in system memory or VRAM, so the active-parameter count should not be used as a memory estimate.
The repository declares an Apache-2.0 license. Production users should also review the terms attached to the base model and the source dataset, because a repository license declaration alone does not settle rights associated with upstream weights, submitted stories, or generated output.
The stack, layer by layer
The model’s behavior comes from three distinct stages, each with a different effect on training cost, inference, and output.
- Instruction-tuned sparse base: The adapter targets the uncensored Gemma base, which its publisher describes as a refusal-modified derivative of Google’s instruction-tuned Gemma 4 26B A4B model.
- Expert-level refusal editing: The base publisher reports using norm-preserving biprojected abliteration with Expert-Granular Abliteration. Abliteration estimates activation directions associated with refusal responses and edits model weights to reduce access to those directions. EGA applies the operation separately to Mixture-of-Experts components, while norm preservation limits changes to tensor magnitude. Such edits can weaken refusals and alter unrelated behavior because the targeted features may overlap with other learned representations.
- Domain LoRA: TinyErotica trained a Low-Rank Adaptation against the training dataset, a Parquet corpus containing about 646,000 rows of user-submitted fiction. Its records are formatted as human and assistant conversation pairs and include fields such as title, description, tags, and category. LoRA updates small low-rank matrices while leaving the base weights frozen, sharply reducing training memory and storage requirements.
Repository metadata associates the training run with Unsloth, a framework designed to reduce memory use during fine-tuning. The card does not fully document the LoRA rank, target modules, learning rate, sequence length, number of epochs, data split, deduplication process, or software versions. Those omissions prevent exact reproduction and make it harder to distinguish effects from the dataset, the adapter, and the refusal edit.
Local inference still needs substantial memory
The supplied GGUF files avoid a separate conversion step and can be loaded by a recent llama.cpp build. The lower-memory quantization can be served through an OpenAI-compatible endpoint with:
llama-server -hf TinyErotica/Literotica-Writer-26B-A4B:Q4_K_M
The server typically exposes chat-completions endpoints on port 8080 and applies the model’s configured chat template. Selecting Q8_0 instead loads the higher-precision build. Runtime support depends on the installed version and its implementation of the model architecture, so compatibility should be verified before deployment.
| Quantization | Approximate weight footprint | Practical hardware guidance |
|---|---|---|
Q4_K_M |
About 17 GB for a comparable base | A 24 GB GPU can accommodate the weights and a modest context; longer contexts increase cache use |
Q8_0 |
Roughly 27 to 29 GB | Use a 32 GB-class device with constrained settings, a larger GPU, or CPU offload |
Actual memory consumption also includes the key-value cache, runtime buffers, batch state, and backend overhead. Context length, concurrent requests, and cache precision can therefore determine whether a build fits. CPU inference and partial GPU offload remain available, although generation at this model size can be slow.
The context limit is inherited from the base model and encoded in its configuration or GGUF metadata. Available reports place the window at 8,192 tokens, shared between the prompt and generated text. Applications that produce longer stories will need continuation prompts, summaries, retrieval, or another form of state management, and should confirm the limit directly against the downloaded artifact.
Where the evidence stops
The intended tasks include adult fiction, roleplay, and story continuation in the style represented by the training corpus. LoRA often preserves much of a base model’s general language ability while steering tone and structure, but the release provides no evaluation demonstrating how much instruction following, reasoning, or long-range coherence survived the two modification stages.
- No comparative evaluation: The card reports no held-out loss, creative-writing assessment, human preference study, or comparison against the unmodified base.
- Unverified long-form quality: An 8,192-token window does not establish sustained character consistency, plot continuity, or resistance to repetition across the full window.
- Uneven source material: User-submitted fiction varies in grammar, structure, style, and metadata quality. A row count of 646,000 does not reveal the number of unique stories or the extent of duplication.
- Quantization effects: The Q4 build may diverge from the adapter or Q8 version in instruction adherence, repetition, and prose quality. The repository provides no comparison.
- Unclear data rights: Commercial users need a separate review of dataset provenance, submission terms, personal information, and potential memorization.
Refusal removal shifts responsibility to the application
Because the base was deliberately edited to refuse fewer prompts, public deployments require independent controls for age restrictions, consent-related policies, prohibited sexual content, real-person abuse, privacy, and jurisdiction-specific obligations. Input filtering, output moderation, rate limits, abuse reporting, and carefully governed logs belong in the surrounding application rather than in assumptions about model behavior.
Refusal editing also requires broader regression testing than ordinary style tuning. A model can comply with harmful requests outside its target domain, follow adversarial instructions embedded in user content, or produce unsafe continuations after an initially acceptable prompt. Product teams should test those behaviors directly and define failure handling before exposing an endpoint.
Test the entire stack before shipping
A useful evaluation should separate the effects of the base model, the LoRA, and quantization while measuring the operational constraints of the intended deployment.
- Compare the base, adapter, Q4, and Q8 variants on the same held-out prompts.
- Measure instruction adherence, repetition, entity consistency, scene continuity, and completion length.
- Stress the context window with information introduced near the beginning, middle, and end of long prompts.
- Record time to first token, tokens per second, peak memory, and throughput under concurrent load.
- Probe for memorized passages and near-duplicates from the source corpus.
- Test age ambiguity, non-consensual scenarios, real-person requests, prompt injection, and attempts to bypass application policies.
An assembly pattern small teams can reuse
The release condenses a modern specialist-model workflow into replaceable stages: start with a capable sparse base, apply a behavioral weight edit, train a compact domain adapter, and distribute quantized files for local inference. Sparse routing lowers per-token computation, LoRA reduces fine-tuning cost, and GGUF packaging broadens runtime support.
Results remain dependent on corpus quality, training choices, evaluation, and deployment controls. TinyErotica’s release provides a concrete example of the packaging pattern, while its missing training recipe, benchmarks, and provenance analysis leave production readiness unproven.