Metadata-Version: 2.3
Name: mllm-shap
Version: 0.1.8
Summary: Shap implementation for Multi Modal Large Language Models with audio and text on input.
Keywords: shapley-value,llms,mllms,audio,text,xai
Author: Paweł Pozorski, Jakub Muszyński
Author-email: Paweł Pozorski <pozorski.paul@gmail.com>, Jakub Muszyński <jakub.m.muszynski@gmail.com>
License: MIT License
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Requires-Dist: ipywidgets>=8.1.8
Requires-Dist: liquid-audio>=1.0.0
Requires-Dist: matplotlib>=3.10.7
Requires-Dist: pandas>=2.3.3
Requires-Dist: pydantic>=2.12.4
Requires-Dist: scikit-learn>=1.7.2
Requires-Dist: torch>=2.9.0
Requires-Dist: torchaudio>=2.9.0
Requires-Dist: torchcodec>=0.8
Requires-Dist: tqdm>=4.67.1
Maintainer: Paweł Pozorski, Jakub Muszyński
Maintainer-email: Paweł Pozorski <pozorski.paul@gmail.com>, Jakub Muszyński <jakub.m.muszynski@gmail.com>
Requires-Python: >=3.12, <3.13
Project-URL: Changelog, https://pawlo77.github.io/MLLM-Shap/release_notes.html
Project-URL: Documentation, https://pawlo77.github.io/MLLM-Shap/
Project-URL: Homepage, https://github.com/Pawlo77/MLLM-Shap.git
Project-URL: Issues, https://github.com/Pawlo77/MLLM-Shap/issues
Project-URL: Repository, https://github.com/Pawlo77/MLLM-Shap.git
Description-Content-Type: text/markdown

# Welcome to MLLM-SHAP

**MLLM-SHAP** is a Python package designed to **interpret the predictions of large language models (LLMs)** using **SHAP (SHapley Additive exPlanations)** values.
It helps you understand the contribution of input features to model outputs, enabling **transparent and explainable AI workflows**.

---

## ✨ Key Features

- Integration with **audio and text models**, supporting multi-modal inputs and outputs.
- Flexible aggregation strategies: *mean*, *sum*, *max*, *min*, etc.
- Multiple similarity metrics (*cosine*, *euclidean*, etc.) for embedding analysis.
- Customizable SHAP calculation algorithms: *exact*, *Monte Carlo approximations*, and more.
- Examples showcasing common explainability pipelines in [`examples/`](https://github.com/Pawlo77/MLLM-Shap/tree/main/examples) on the official GitHub repository.

---

## 📊 Visualization & Examples

If you’re interested in GUI visualization of SHAP values, check out the section  **Extension - GUI Visualization** in the docs.

For more advanced CLI usages, refer to:

- The [official GitHub repository examples](https://github.com/Pawlo77/MLLM-Shap/tree/main/examples)
- Or explore more advanced pipelines from exemplary [research projects](https://github.com/Pawlo77/MLLM-Shap/tree/main/experiments)

---

## 🤖 Supported LLM Integrations

- [Liquid-Audio](https://github.com/Liquid4All/liquid-audio/)
