Instructions to use microsoft/colipri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- COLIPRI
How to use microsoft/colipri with COLIPRI:
pip install colipri
from colipri import get_model from colipri import get_processor from colipri import load_sample_ct from colipri import ZeroShotImageClassificationPipeline model = get_model().cuda() processor = get_processor() pipeline = ZeroShotImageClassificationPipeline("microsoft/colipri", processor) image = load_sample_ct() pipeline(image, ["No lung nodules", "Lung nodules"]) - Notebooks
- Google Colab
- Kaggle
| [tox] | |
| requires = | |
| tox>=4.22 | |
| tox-uv>=1.13 | |
| env_list = | |
| py310 | |
| py311 | |
| py312 | |
| py313 | |
| lint | |
| format | |
| typecheck | |
| [testenv] | |
| description = Run the test suite with pytest | |
| runner = uv-venv-lock-runner | |
| dependency_groups = dev | |
| commands = | |
| pytest {posargs} | |
| [testenv:lint] | |
| description = Lint the code with ruff | |
| runner = uv-venv-runner | |
| skip_install = true | |
| dependency_groups = | |
| deps = | |
| ruff | |
| commands = | |
| ruff check src tests | |
| [testenv:format] | |
| description = Check formatting with ruff | |
| runner = uv-venv-runner | |
| skip_install = true | |
| dependency_groups = | |
| deps = | |
| ruff | |
| commands = | |
| ruff format --check src tests | |
| [testenv:typecheck] | |
| description = Type-check the code with ty | |
| dependency_groups = | |
| types | |
| commands = | |
| ty check src | |