languagebind 0.1.0


pip install languagebind

  Latest version

Released: Jun 20, 2026

Project Links

Meta
Requires Python: >=3.9

Classifiers

languagebind

LanguageBind (ICLR 2024) packaged as a pip-installable library with compatibility patches for modern transformers, torchvision, and torchaudio.

The original LanguageBind repo has no pyproject.toml, so it cannot be installed via pip. This package provides that, plus inline patches for five breaking changes introduced in newer dependency versions.

Installation

pip install languagebind

For video support:

pip install "languagebind[video]"

For audio support:

pip install "languagebind[audio]"

Usage

from languagebind import (
    LanguageBindVideo, LanguageBindVideoProcessor, LanguageBindVideoTokenizer,
    LanguageBindAudio, LanguageBindAudioProcessor, LanguageBindAudioTokenizer,
    LanguageBindImage, LanguageBindImageProcessor, LanguageBindImageTokenizer,
)

Compatibility patches

  • _expand_mask / clip_loss: removed from transformers 4.40+, re-implemented in languagebind._compat
  • torchaudio.set_audio_backend(): deprecated, guarded with try/except
  • torchvision.transforms._transforms_video: private API fallback to public torchvision.transforms equivalents
  • CLIPTokenizer.__init__ positional args: changed to keyword args for transformers 4.40+ compatibility

License

MIT — same as the original LanguageBind.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
einops (>=0.8.0)
peft (>=0.11.0)
torch (>=2.0.0)
transformers (<5.0.0,>=4.40.0)