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.4.tar.gz (53.2 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.4-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mllm_shap-0.1.4.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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.4.tar.gz
Algorithm Hash digest
SHA256 acd46928b35df550cf81fc79565fba31eb7c70f9aff4e5f843db6ff5c513bde9
MD5 b5bed1884534f717800670438f4daef6
BLAKE2b-256 d2560797c8a2554d331c6a19d65d841118843e70408aa12f02f81527b0c2afc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mllm_shap-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 751eff68b33a2d610ced35e0b92d2a5a7c1248259a8c532e7b8b36e6f3824217
MD5 fb2973e2a4fb4a7adeec373b480c3683
BLAKE2b-256 c60841639330247468abdac2867ed112d475854c7f3f5a04fe579bb505f857a6

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