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.8.tar.gz (64.6 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.8-py3-none-any.whl (97.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mllm_shap-0.1.8.tar.gz
  • Upload date:
  • Size: 64.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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.8.tar.gz
Algorithm Hash digest
SHA256 317548703187bff575327f2b8141bfb8f8c54b21fe948bce4f8d358a2e8dbb51
MD5 9a481773d5de02ab9c4d60cd6f5cbfe8
BLAKE2b-256 3e6c515a7afbbface00603a8dd20490b7c9c0b3949c9f1ab2af4ea6465e1daee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mllm_shap-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 97.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3aaa9839f87daa45f2ded4116bb11cfbbb7d3dd902d57c931044d902d2af3804
MD5 d6f5c52647c5befcb73045839eaac2c0
BLAKE2b-256 2983828deb55e07c01f860161e70ed100936e566dba7c349bca11d211c1b8d7a

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