Skip to main content

Similarity Learning fine-tuning framework

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quaterion-0.1.35.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

quaterion-0.1.35-py3-none-any.whl (77.2 kB view details)

Uploaded Python 3

File details

Details for the file quaterion-0.1.35.tar.gz.

File metadata

  • Download URL: quaterion-0.1.35.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for quaterion-0.1.35.tar.gz
Algorithm Hash digest
SHA256 2b8fc386565089f72b7a506f5e1b1d45d44d05a91854d9043b2ac048f20a3283
MD5 c66be07c48ddee1546a56cfbd80e486f
BLAKE2b-256 407b7726ab1a88b36a3604bfb8d9e7b96a6ba2c5e53d4903d735c6e0c56952d7

See more details on using hashes here.

File details

Details for the file quaterion-0.1.35-py3-none-any.whl.

File metadata

  • Download URL: quaterion-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 77.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for quaterion-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 80327af9045e9021c9e8927943b71702a36a3205bfe32854b2938d60e7872baa
MD5 48ad1fc6b84eaea3b5de87c6d1852eb5
BLAKE2b-256 ffc726f75878ade07cc6f32e828cb888ac40650f7f4640c72534aaea3017800e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page