Metadata-Version: 2.4
Name: repralign
Version: 0.1.1
Summary: Reusable layer-wise representation alignment analysis for multimodal models.
Author-email: jnmz <jkw@bupt.edu.cn>
License: MIT
Keywords: multimodal,representation-learning,cka,pytorch,analysis
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib>=3.7
Requires-Dist: numpy>=1.24
Requires-Dist: Pillow>=9.0
Requires-Dist: PyYAML>=6.0
Requires-Dist: torch>=2.1
Provides-Extra: huggingface
Requires-Dist: transformers>=4.40; extra == "huggingface"
Provides-Extra: generation
Requires-Dist: diffusers>=0.30; extra == "generation"
Requires-Dist: transformers>=4.40; extra == "generation"
Provides-Extra: docs
Requires-Dist: mkdocs>=1.6; extra == "docs"
Requires-Dist: mkdocs-material>=9.7; extra == "docs"
Requires-Dist: pymdown-extensions>=10.0; extra == "docs"
Provides-Extra: dev
Requires-Dist: build>=1.2.1; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: twine>=5.1.1; extra == "dev"
Dynamic: license-file

[English](README.md) | [中文](README.zh-CN.md)

# repralign

[![PyPI version](https://img.shields.io/pypi/v/repralign.svg)](https://pypi.org/project/repralign/)
[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)

`repralign` is a reusable Python toolkit for layer-wise representation alignment analysis in multimodal models.

Documentation:

- [Documentation site](https://jnmz.github.io/repralign/)

## Installation

Install from PyPI:

```bash
pip install repralign
```

Install with Hugging Face vision support:

```bash
pip install "repralign[huggingface]"
```

Install with generation-reference support:

```bash
pip install "repralign[generation]"
```

Install from source for local development:

```bash
python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
```

## License

MIT
