Skip to main content

Shap implementation for Multi Modal Large Language Models with audio and text on input.

Project description

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/ 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:


🤖 Supported LLM Integrations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mllm_shap-0.1.2.tar.gz (36.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mllm_shap-0.1.2-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file mllm_shap-0.1.2.tar.gz.

File metadata

  • Download URL: mllm_shap-0.1.2.tar.gz
  • Upload date:
  • Size: 36.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for mllm_shap-0.1.2.tar.gz
Algorithm Hash digest
SHA256 21791cc126329f5e8256eb4f7a451b9d7d75d210c05591dbc7f30f0b652386e6
MD5 f2a7f2bc65747cd37df4d32497d203cf
BLAKE2b-256 5ddfa0463153cd026e76bf0201a0d45346c60e234c43bfb77480e7308742bed6

See more details on using hashes here.

File details

Details for the file mllm_shap-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mllm_shap-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for mllm_shap-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c424dc8b1a200224dda1a5d188146abc3b3a757c72ef7ee64867d422ebae38
MD5 bdc4045c527266c7b6c68408dc1d57cd
BLAKE2b-256 73f344f138f71f505cc8e740a8bcb0101e2c9a540186e3bde80186939028390d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page