Skip to main content

Quaterion

Blazing fast framework for fine-tuning Similarity Learning models

Version Tests status Discord Docs & Tutorials

A dwarf on a giant's shoulders sees farther of the two

Quaterion is a framework for fine-tuning similarity learning models. The framework closes the "last mile" problem in training models for semantic search, recommendations, anomaly detection, extreme classification, matching engines, e.t.c.

It is designed to combine the performance of pre-trained models with specialization for the custom task while avoiding slow and costly training.

Features

  • 🌀 Warp-speed fast: With the built-in caching mechanism, Quaterion enables you to train thousands of epochs with huge batch sizes even on laptop GPU.

Regular vs Cached Fine-Tuning

  • 🐈‍ Small data compatible: Pre-trained models with specially designed head layers allow you to benefit even from a dataset you can label in one day.

  • 🏗️ Customizable: Quaterion allows you to re-define any part of the framework, making it flexible even for large-scale and sophisticated training pipelines.

  • 🌌 Scalable: Quaterion is built on top of PyTorch Lightning and inherits all its scalability, cost-efficiency, and reliability perks.

Installation

TL;DR:

For training:

pip install quaterion

For inference service:

pip install quaterion-models

Quaterion framework consists of two packages - quaterion and quaterion-models.

Since it is not always possible or convenient to represent a model in ONNX format (also, it is supported), the Quaterion keeps a very minimal collection of model classes, which might be required for model inference, in a separate package.

It allows avoiding installing heavy training dependencies into inference infrastructure: pip install quaterion-models

At the same time, once you need to have a full arsenal of tools for training and debugging models, it is available in one package: pip install quaterion

Docs 📓

For a more in-depth dive, check out our end-to-end tutorials:

Tutorials for advanced features of the framework:

Community

License

Quaterion is licensed under the Apache License, Version 2.0. View a copy of the License file.

Metadata

Release files for quaterion 0.1.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quaterion 0.1.35
File Size Uploaded
quaterion-0.1.35.tar.gz 50.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quaterion 0.1.35
File Interpreter ABI Platform
quaterion-0.1.35-py3-none-any.whl Python 3 none any Details

Total release size: 127.4 kB

Release files / quaterion-0.1.35.tar.gz

Download URL quaterion-0.1.35.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2b8fc386565089f72b7a506f5e1b1d45d44d05a91854d9043b2ac048f20a3283
BLAKE2b-256 checksum
How to use checksums
407b7726ab1a88b36a3604bfb8d9e7b96a6ba2c5e53d4903d735c6e0c56952d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / quaterion-0.1.35-py3-none-any.whl

Download URL quaterion-0.1.35-py3-none-any.whl
Size 77.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80327af9045e9021c9e8927943b71702a36a3205bfe32854b2938d60e7872baa
BLAKE2b-256 checksum
How to use checksums
ffc726f75878ade07cc6f32e828cb888ac40650f7f4640c72534aaea3017800e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page