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. This work also has companion GUI visualization tools for easier interpretation of results, which is available at the official shap-mllm-explainer repository.


✨ 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.9.tar.gz (74.0 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.9-py3-none-any.whl (107.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mllm_shap-0.1.9.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mllm_shap-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8c2a052948de93aded3e418efa2e923e1fa3877f4808ee646d32ae2d3994d492
MD5 4cb33a1dcbce3d493ad3cdbca805a9cd
BLAKE2b-256 b5036fceebc973ea06107416fa5c4673235b124ca0693ec64968605d9b65c927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mllm_shap-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 107.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mllm_shap-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a806968bc527f80cc99d9344548c7edfaee86d53259539372001b3d882f541a6
MD5 4b6bb0c37fb99e5a9cfd8c15e73df76d
BLAKE2b-256 bafb0b5882feeddb27de727d160c2338102058d7e9bd4d734e9edf7fbdd3c06e

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