Discover and explore top open-source AI tools and projects—updated daily.
Liquid4AllTool for reducing LLM repetition loops
New!
Top 83.3% on SourcePulse
Summary
Antidoom addresses "doom loops"—repetitive text generation in LLMs—by generating targeted preference data and training LoRA adapters. It's a specialized tool for improving LLM output coherence and reducing undesirable repetition, particularly during reasoning tasks.
How It Works
The project employs Final Token Preference Optimization (FTPO) to combat repetition. It generates completions, detects repetitive spans, marks the first loop-starting token as rejected, and selects coherent alternatives. This local preference data trains a LoRA adapter, teaching the model to avoid initiating repetition loops. This approach uniquely targets the precise token where repetition begins, adapting Antislop's methodology.
Quick Start & Requirements
git clone https://github.com/Liquid4All/antidoom), cd antidoom, uv sync.configs/default.yaml for model_name. Default pipeline reads prompts from LiquidAI/antidoom-mix-v1.0, generates FTPO pairs, trains LoRA, and merges.uv run antidoom -c configs/default.yaml -r runs/antidoom1 --temp 0.01 --model-name LiquidAI/LFM2.5-1.2B-Base.Highlighted Details
LiquidAI/antidoom-mix-v1.0 is a prompt-only ShareGPT mixture.attention_backend: TRITON_ATTN, optim: adamw_torch) and environment setup.max_train_examples, learning_rate, and early_stopping_chosen_win to prevent overtraining and ensure regularization.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 weeks ago
Inactive
tomaarsen
uclaml
yandex
linkedin
flashinfer-ai