# __Op2na release__

***OP2NA are decoding presets for NovelAI Xialong-v1 storytelling model, optimized with Optuna using AutoSampler.*** Each *trial* uses the first `16,400` tokens of *The Emperor's Soul* as context. ***Xialong-v1*** then generates `11` continuations of `11,950` tokens each (`23,900` for **Durable**). At each window position all samples form a *geometric median* and are scored *against* the actual book text. **The objectives** are similarity across `92` *stylometric features* and *semantic similarity*, computed with ***Qwen3-Embedding-8B*** at `4,096` dimensions, both over sliding windows of `256` tokens, plus extra *semantic* windows of `32` tokens—all with a stride of `16`. Stylometric via: ***spaCy***, ***textdescriptives***, ***NRCLex***, ***textstat***, and ***lexicalrichness***.

(wip)

{min p image}

{top p image}

## Citation

- **Pro Writer** — u/NotBasileus, early 2022. Pioneer stylometric-based NovelAI decoding preset.
- **Optuna** — Akiba et al., KDD 2019. *Optuna: A Next-Generation Hyperparameter Optimization Framework.* [doi:10.1145/3292500.3330701](https://doi.org/10.1145/3292500.3330701)
- **OptunaHub / AutoSampler** — Ozaki, Watanabe & Yanase, 2025. *OptunaHub: A Platform for Black-Box Optimization.* [arXiv:2510.02798](https://arxiv.org/abs/2510.02798) · [hub.optuna.org/samplers/auto_sampler](https://hub.optuna.org/samplers/auto_sampler/)
- **GPSampler** — Optuna Gaussian process sampler ([`optuna.samplers.GPSampler`](https://optuna.readthedocs.io/en/stable/reference/samplers/generated/optuna.samplers.GPSampler.html), v3.6+). Irie, Watanabe & Onishi, 2025. *Batch Acquisition Function Evaluations and Decouple Optimizer Updates for Faster Bayesian Optimization.* [arXiv:2511.13625](https://arxiv.org/abs/2511.13625) · logEI: Ament et al., NeurIPS 2023. [arXiv:2310.20708](https://arxiv.org/abs/2310.20708)
- **min-p** — Nguyen et al., ICLR 2025. *Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs.* [arXiv:2407.01082](https://arxiv.org/abs/2407.01082)
- **Qwen3 Embedding** — Zhang et al., 2025. *Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models.* [arXiv:2506.05176](https://arxiv.org/abs/2506.05176)
- **Geometric median** — Vardi & Zhang, *PNAS* 97(4):1423–1426, 2000. *The multivariate L₁-median and associated data depth.*
- **TextDescriptives** — Hansen, Olsen & Enevoldsen, *JOSS* 8(84):5153, 2023. [doi:10.21105/joss.05153](https://doi.org/10.21105/joss.05153)
- **spaCy** — Honnibal et al., 2020. *spaCy: Industrial-strength NLP in Python.* [doi:10.5281/zenodo.1212303](https://doi.org/10.5281/zenodo.1212303)
- **NRC Emotion Lexicon** — Mohammad & Turney, *Computational Intelligence* 29(3):436–465, 2013.

*I hope you enjoy these presets for Xialong! I worked full-time on this for two weeks, and spent ~$100. Biggest thank you to the NovelAI developers for not banning my account throughout the entire process. Thank you to luna & finetune & related devs for insane Xialong Throughput. Thank you to OccultSage dev for a good review on Optuna Belverk. Thank you to Kevin Yin dev as my inspiration model since Sampling Guide & Unfied. And especially Lanerendell dev, for interacting with me and being such an amazing friend of the catfrogs! [Source code & db is available.]()*