Installation

[!IMPORTANT] You must have PyTorch installed to use x.infer.

To install the barebones x.infer (without any optional dependencies), run:

1
pip install xinfer
x.infer can be used with multiple optional dependencies. You'll just need to install one or more of the following:

1
2
3
4
5
pip install "xinfer[transformers]"
pip install "xinfer[ultralytics]"
pip install "xinfer[timm]"
pip install "xinfer[vllm]"
pip install "xinfer[ollama]"

To install all optional dependencies, run:

1
pip install "xinfer[all]"

To install from a local directory, run:

1
2
3
git clone https://github.com/dnth/x.infer.git
cd x.infer
pip install -e .