Show HN: Klarity – Open-source tool to analyze uncertainty/entropy in LLM output

We've open-sourced Klarity - a tool for analyzing uncertainty and decision-making in LLM token generation. It provides structured insights into how models choose tokens and where they show uncertainty.

What Klarity does:

- Real-time analysis of model uncertainty during generation - Dual analysis combining log probabilities and semantic understanding - Structured JSON output with actionable insights - Fully self-hostable with customizable analysis models

The tool works by analyzing each step of text generation and returns a structured JSON:

- uncertainty_points: array of {step, entropy, options[], type} - high_confidence: array of {step, probability, token, context} - risk_areas: array of {type, steps[], motivation} - suggestions: array of {issue, improvement}

Currently supports hugging face transformers (more frameworks coming), we tested extensively with Qwen2.5 (0.5B-7B) models, but should work with most HF LLMs.

Installation is simple: `pip install git+https://github.com/klara-research/klarity.git`

We are building OS interpretability/explainability tools to visualize & analyse attention maps, saliency maps etc. and we want to understand your pain points with LLM behaviors. What insights would actually help you debug these black box systems?

Links:

- Repo: https://github.com/klara-research/klarity - Our website: [https://klaralabs.com](https://klaralabs.com/)


Comments URL: https://news.ycombinator.com/item?id=42918237

Points: 7

# Comments: 0

https://github.com/klara-research/klarity

Utworzony 24d | 3 lut 2025, 14:40:05


Zaloguj się, aby dodać komentarz

Inne posty w tej grupie

Show HN: Emdash – Slack/Zoom alternative for distributed team collaboration

Hi HN, I’m Phil, one of the co-founders building emdash. Previously, I was an early engineer at Facebook and led Customer Products at Square.

We’ve focused on making chat and video work together

27 lut 2025, 06:40:07 | Hacker news
Show HN: I got laid off from Meta and created a minor hit on Steam

I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time

27 lut 2025, 02:10:04 | Hacker news