Run this model with HF Jobs

Run disinfozone/kenosistron-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/disinfozone/kenosistron-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/disinfozone/kenosistron-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/disinfozone/kenosistron-lora. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/disinfozone/kenosistron-lora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

kenosistron-lora: the reproducibility kit

This repo contains everything needed to rebuild disinfozone/kenosistron from the public base model: the adapter, the retrained speculative head, the quantization calibration data, and the scripts that connect them. Read the main model card first; this is the parts drawer.

Contents

File What it is
adapter_model.safetensors + adapter_config.json The kenosistron v3 LoRA (PEFT format, rank 8, alpha 32, all-linear), trained on the Tinker service against the disinfo.zone corpus. Applies to the stock base.
mtp_head.safetensors The retrained MTP (multi-token prediction) draft head: 123.8M trainable params (eh_proj, attention sublayer, norms, router; the 512 routed experts stay frozen at base values). Trained with a pure KL objective toward the fine-tuned trunk's own next-token distribution over ~2M tokens of self-generated text. Greedy speculative acceptance: 61.9% to 72.1% (p<0.05).
imatrix.oqe.json / imatrix.oqe.npz The importance-matrix calibration used for the oQ5e quant. Reusable for other bit-levels (e.g. an oQ4e pass) without re-calibrating.
scripts/ The full pipeline, in order below.

Rebuild chain

Starting from nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16 (public, ~247 GB):

  1. scripts/merge_nemotron_tinker_lora3.py: merge the LoRA into the base at BF16 (verifies all 41,233 tensors map; preserves the mtp.* tensors and lm_head).
  2. scripts/splice_mtp.py: splice mtp_head.safetensors over the stock MTP head in the merged checkpoint (hardlinks unchanged shards; rewrites only the two shards that carry mtp.*).
  3. scripts/quant_oq5e_mtp.py: imatrix-calibrated 5-bit affine MLX quant (group 64, 8-bit embeddings, 6-bit first-layer Mamba projections), keeping the MTP head. Env-parameterized (SRC, OUT, OQ_LEVEL, OUT_SUFFIX); reuses the shipped imatrix.

Also included, for the MTP-head-curious: scripts/train_mtp_head.py (the KL trainer; --ce-lambda 0 is the winning configuration, since mixing in cross-entropy against real text made the head worse than pure self-agreement), scripts/dump_triples.py (dumps trunk hiddens plus top-64 logit targets), scripts/gen_corpus.py (self-generation harness), and scripts/bench_accept.py (measures real speculative acceptance over the serving API; benchmark greedy, since sampler noise at temperature 1.3 is ~4x the effect size).

The merged result of steps 1 and 2 is also published directly as disinfozone/kenosistron-bf16 if you'd rather download 230 GB than compute it.

Using just the adapter

The adapter is standard PEFT and applies to the stock base with transformers + peft if you have the RAM for it. Note that the adapter alone gives you the kenosistron voice with the stock (misaligned) MTP head. If you serve with speculative decoding you want the retrained head spliced in too, which is the whole reason this repo exists.

License

The adapter, MTP head weights, imatrix, and scripts in this repo are MIT. The base model they apply to is governed by the NVIDIA Nemotron Open Model License, and merged/quantized artifacts (the sibling repos) inherit it.

Downloads last month
9
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for disinfozone/kenosistron-lora

Adapter
(168)
this model