Downloads · 30 days
1
13% of all-time downloads
TheHouseOfTheDude/KansenSakura-Erosion-RP-12b_Compressed-Tensors
KansenSakura-Erosion-RP-12b_Compressed-Tensors is a text generation model from TheHouseOfTheDude. Use it when you need the model to write or continue text. It is set up for vllm. The card lists the license as other.
This repository hosts quantized runtime builds of Retreatcost/KansenSakura-Erosion-RP-12b, repackaged for vLLM using the compressed-tensors format.
Downloads · 30 days
1
13% of all-time downloads
All-time downloads
8
Public
Repo size
13.8 GB
Likes
1
Public
Click a slice to open those files.
.md8.6 KB · 85%
From the Hugging Face model README
This repository hosts quantized runtime builds of
Retreatcost/KansenSakura-Erosion-RP-12b, repackaged for vLLM using the compressed-tensors format.
TL;DR
- vLLM-ready compressed-tensors quantization (INT8 weights / 16-bit activations, W8A16).
- Calibrated with 512 chat samples up to 2048 tokens each from
neuralmagic/LLM_compression_calibration. :contentReference[oaicite:0]{index=0}- Uses AWQ (weight-only, group size 128) on linear layers,
lm_headleft in higher precision. :contentReference[oaicite:1]{index=1}
Retreatcost/KansenSakura-Erosion-RP-12b — a 12B RP-oriented model in the KansenSakura series, described by the author as the latest “Erosion” iteration with more immersive prose and psychological themes. :contentReference[oaicite:2]{index=2}SuperbEmphasis/MN-12b-RP-Ink-RP-Longform and Sicarius-Prototyping/Impish_Longtail_12B) is used inside KansenSakura-Erosion-RP-12b. :contentReference[oaicite:3]{index=3}Retreatcost/Shisa-K-sakurization as a base for Erosion, meaning this quant inherits a layered merge stack rather than a single-source finetune. :contentReference[oaicite:4]{index=4}This repo does not change any of that training/merge behavior — it only changes how the weights are stored for efficient inference.
The
mainbranch is a landing page (model card + links). Runnable artifacts live in per-quant branches.
Quick links
*.safetensors) + index (model.safetensors.index.json)config.json with compressed-tensors metadata (quantization_config, weight_format, etc.)tokenizer.json, tokenizer.model, merges/vocab as applicable)chat_template.jinja (inherits the base model’s chat style)Exact file lists may differ between branches — see Files and versions on the model page.
All details below are taken from the attached quantization script. :contentReference[oaicite:5]{index=5}
llmcompressor one-shot pipeline (oneshot) with an AWQModifier.Linear layers only (targets=["Linear"]).["lm_head"] (left in higher precision).num_bits=8 (INT8 weights)symmetric=Truestrategy="group" with group_size=128save_compressed=True so vLLM reads the compressed-tensors layout directly.neuralmagic/LLM_compression_calibration, split "train". :contentReference[oaicite:6]{index=6}
messages field with structured chat conversations (lists of {role, content} dicts).NUM_CALIBRATION_SAMPLES = 512 — randomly shuffled subset with fixed seed 42. :contentReference[oaicite:7]{index=7}MAX_SEQUENCE_LENGTH = 2048 — tokenization truncates sequences at 2048 tokens and does not pad, to keep calibration close to realistic RP-style context lengths. :contentReference[oaicite:8]{index=8}Preprocessing pipeline
tokenizer.apply_chat_template(messages, tokenize=False) to render the conversation using the base model’s chat template.max_length=2048, truncation=True, padding=False, add_special_tokens=False.oneshot(...) with:
max_seq_length=MAX_SEQUENCE_LENGTHnum_calibration_samples=NUM_CALIBRATION_SAMPLES.This yields per-channel weight scales that are representative of RP-style, multi-turn chat rather than generic plain-text corpora.
Retreatcost/KansenSakura-Erosion-RP-12b (see that card for the authoritative max context size). This quantization does not change positional embeddings or rope scaling; it only changes the numeric representation of weights.Install vLLM (recent version recommended):
pip install vllm
Serve (adjust to your hardware):
CUDA_VISIBLE_DEVICES=0,1,2,3 \
vllm serve TheHouseOfTheDude/KansenSakura-Erosion-RP-12b_Compressed-Tensors \
--quantization compressed-tensors \
--tensor-parallel-size 4 \
--max-model-len 2048 \
--gpu-memory-utilization 0.70 \
--dtype bfloat16
Example Chat Completions request:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "TheHouseOfTheDude/KansenSakura-Erosion-RP-12b_Compressed-Tensors",
"messages": [
{"role": "system", "content": "You are KansenSakura-Erosion, a creative RP assistant. Follow user instructions and respect user safety constraints."},
{"role": "user", "content": "Describe the setting and tone for the opening scene of our story."}
],
"max_tokens": 512,
"temperature": 0.7,
"top_p": 0.95
}'
Note:
compressed-tensorsis a vLLM runtime format. Loading directly with vanilla 🤗 Transformers is not supported.
For Transformers, use a compatible GGUF/GPTQ/AWQ export or the full-precision base model.
This package uses the same chat template and tokenizer as Retreatcost/KansenSakura-Erosion-RP-12b.
If a chat_template.jinja file is present, libraries that support apply_chat_template (e.g., Transformers or vLLM’s OpenAI wrapper) will automatically format the messages.
KansenSakura-series models are role-play focused and may generate intense or mature themes (as indicated by the base repo’s “not for all audiences” flag). This quantization:
You are responsible for applying your own content filters, jailbreak protections, and safety policies, especially in shared or public deployments.
--max-model-len and batch size for your hardware.This distribution inherits the licenses, terms, and content policies of:
Retreatcost/KansenSakura-Erosion-RP-12bImpish-LongPen-12B, Shisa-K-sakurization, etc.).Use of this quantized model constitutes acceptance of those upstream terms.
Retreatcost/KansenSakura-Erosion-RP-12b with 512-sample / 2048-token AWQ calibration and vLLM-ready packaging.