Similarity Learning fine-tuning framework
Project description
Blazing fast framework for fine-tuning Similarity Learning models
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.
-
🐈 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 📓
- Quick Start Guide
- Minimal working examples
For a more in-depth dive, check out our end-to-end tutorials:
- Fine-tuning NLP models - Q&A systems
- Fine-tuning CV models - Similar Cars Search
Tutorials for advanced features of the framework:
- Cache tutorial - How to make training fast.
- Head Layers: Skip Connection - How to avoid forgetting while fine-tuning
- Embedding Confidence - how do I know that the model is sure about the output vector?
- Vector Collapse Prevention - how to prevent vector space collapse in Triplet Loss
Community
- Join our Discord channel
- Follow us on Twitter
- Subscribe to our Newsletters
- Write us an email info@qdrant.tech
License
Quaterion is licensed under the Apache License, Version 2.0. View a copy of the License file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8fc386565089f72b7a506f5e1b1d45d44d05a91854d9043b2ac048f20a3283 |
|
MD5 | c66be07c48ddee1546a56cfbd80e486f |
|
BLAKE2b-256 | 407b7726ab1a88b36a3604bfb8d9e7b96a6ba2c5e53d4903d735c6e0c56952d7 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80327af9045e9021c9e8927943b71702a36a3205bfe32854b2938d60e7872baa |
|
MD5 | 48ad1fc6b84eaea3b5de87c6d1852eb5 |
|
BLAKE2b-256 | ffc726f75878ade07cc6f32e828cb888ac40650f7f4640c72534aaea3017800e |