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.6.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.6-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mllm_shap-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 957c81eae1350de65833aaf8d8403ce730a4f3839ca03ce08c2f169e9e8554e9
MD5 e83c1f1188a724c437def0c37654690c
BLAKE2b-256 60f97a9484160b9457766f7039eeeac17a81f79fe49133b9ad6f8bcd1ef81cdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mllm_shap-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bd055bab6340fec28ed42223e1377cf9044151ba9b19189f4261e33bc510eb61
MD5 cb4099d17bf4c1038adf3f7541320ece
BLAKE2b-256 68044394091953954985b6ca2de30832c8e15827b6b3bd21e494d83603f50b1b

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