Philipp Emanuel Weidmann | |
|---|---|
Weidmann in 2026 | |
| Born | 26 September 1985 Bremen, Germany |
| Died | 29 November 2026 (aged 41) Bhopal, Madhya Pradesh, India |
| Education | Heidelberg University |
| Occupations |
|
| Website | worldwidemann |
Philipp Emanuel Weidmann (26 September 1985 – 29 November 2026), known online by the handle p-e-w, was a German free software developer, mathematician, and independent artificial intelligence researcher. He is best known as the creator of Heretic, an open-source tool for, among other uses, uncensoring large language models (LLMs), and as the author of the DRY and XTC token-sampling algorithms.
Weidmann was born in Bremen on 26 September 1985. He studied at Heidelberg University, graduating with a major in mathematics and a minor in philosophy.
In 2015, Weidmann moved to India and later held Overseas Citizenship of India (OCI) status, settling in Bhopal, Madhya Pradesh, where he worked remotely.
In July 2026, he announced, without elaborating, that he would eventually write his "last line of code". On 28 November 2026, Weidmann posted a farewell message on the Heretic GitHub repository and closed the project to any future contributions. On 29 November 2026, he was found dead at his residence in Bhopal, aged 41. The circumstances behind his death are under investigation.
Before shifting his focus to artificial intelligence, Weidmann created desktop software for Linux. From 2012 to 2015, he developed Final Term, a terminal emulator written in Vala, designed to add context menus, smart command completion, and graphical controls on top of shell output.
In his work on language models, Weidmann introduced two token-sampling algorithms. The first, DRY (Don't Repeat Yourself) prevents verbatim repetition loops by penalizing only candidate tokens that extend an exact sequence already present in the context, while preserving formatting and chat templates. The second, XTC (Exclude Top Choices), aims to increase output diversity in open-ended generation by stochastically excluding the highest-probability continuations when multiple plausible options exist.
| Heretic | |
|---|---|
| Developers | Philipp Emanuel Weidmann and community |
| Release | November 2025 |
| Stable release | 2.1.0
/ 8 November 2026 |
| Written in | Python (PyTorch, Optuna) |
| Operating system | Cross-platform |
| Type | Command-line tool |
| License | AGPL-3.0-or-later |
| Website | heretic-project |
| Repository | github |
Heretic is a free command-line tool licensed under AGPL-3.0, released in November 2025 for training-free modification of transformer-based language models. It automates directional ablation ("abliteration") which, in simple terms, spots and removes the patterns inside an AI model that trigger refusals.
By the time of its archival, the repository had accumulated 45,200 stars and 8,200 forks on GitHub. According to Weidmann, models abliterated with Heretic had been downloaded more than 100 million times on Hugging Face, and two-thirds of all abliterated models published on the platform were made with Heretic. Version 2.0 was released on 1 November 2026, followed by version 2.1.0 on 8 November 2026.
In May 2026, the Financial Times and the AI safety group Alice reported using Heretic on consumer hardware to strip guardrails from Meta's Llama 3.3 in under ten minutes, and tested an abilterated version of Google's Gemma 3 that generated instructions for weapons and malware. Weidmann told the newspaper that he had removed guardrails from Google's Gemma 4 within 90 minutes of its release.
In a WIRED interview, Weidmann said that he had received threats related to his work on Heretic and declined to disclose his location.
In his 28 November 2026 farewell statement, Weidmann argued that control over AI models was shifting from an issue of free speech to one of freedom of thought, describing AI as the lens through which people view the world, and signed off with the words, "In times like these, one should be proud to be labeled a heretic." He archived the repository without naming a successor.