Skip to content

palingenesis

Fine-tuning that reads the research so you don't have to.
One command. State-of-the-art quality. RTX 4090 to multi-node clusters.

./run.sh configs/quickstart.yaml
352papers read
~16 GiBQwen3.5-4B fine-tune
530+tests

Memory

A Qwen3.5-4B fine-tune (its attention pathway, 36% of the weights) trains in about 16 GiB, without LoRA. Chunked losses, gradient release, Lion 8-bit and selective checkpointing each remove a different kind of memory.

How it works →

Quality

Correctness first: the loss path matches a plain reference loop step by step, assistant turns are masked from the chat template itself (tool calls included), packed conversations never see each other. On top, research options (DEFT, Hyperball, power-decay) implemented to their papers' definitions, with their papers' claims clearly labelled as such.

The research →

Scale

Single RTX 4090 to 32-node SLURM clusters. Same config file, same code path. FSDP2, Ring Attention, sharded checkpoints.

Multi-node guide →


The thesis

Most fine-tuning tools give you knobs. Hundreds of options, each requiring expertise to set correctly. The implicit message: "you figure it out."

Palingenesis takes the opposite stance. We read the papers, ran the ablations, found what works. The defaults are the result. You override them when you have a specific reason — not because you have to.

This means:

  • The masking is right without you writing a template-specific rule: turns are located from the chat template itself.
  • Memory is handled: chunked losses, checkpointing and pgs profile (static estimate, or a measured real step).
  • The learning rate can be found for you: Autopilot sweeps it.
  • Research options (DEFT, Hyperball, power-decay) are one line each, documented with what their papers claim.

When you do want control — it's all there. Every parameter, every plugin, every optimization is configurable. But the base case is: it just works.


Start here

First time?

Install, run, see results in 5 minutes.

Quickstart →

Have agentic data?

Reasoning traces, tool calls, multi-turn. Native support.

Agentic guide →

Planning RL after SFT?

Monitor entropy. Don't overtrain. We explain why.

SFT → RL →


Supported models

Any HuggingFace causal LM. Optimized for: Qwen 2.5/3/3.5, Llama 3, Gemma 4, Mistral. Hybrid architectures (Qwen3.5 DeltaNet) supported via freeze_non_attention.

Install

git clone https://github.com/mii-llm/palingenesis.git && cd palingenesis
uv sync --extra train --extra logging && source .venv/bin/activate

Full installation guide →