quaterion-models


Namequaterion-models JSON
Version 0.1.19 PyPI version JSON
download
home_pagehttps://github.com/qdrant/quaterion-models
SummaryThe collection of building blocks to build fine-tunable similarity learning models
upload_time2022-12-08 09:10:24
maintainer
docs_urlNone
authorQuaterion Authors
requires_python>=3.8,<3.11
license
keywords framework metric-learning similarity similarity-learning deep-learning pytorch
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Quaterion Models

`quaterion-models` is a part of [`Quaterion`](https://github.com/qdrant/quaterion), similarity learning framework.
It is kept as a separate package to make servable models lightweight and free from training dependencies.

It contains definition of base classes, used for model inference, as well as the collection of building blocks for building fine-tunable similarity learning models.
The documentation can be found [here](https://quaterion-models.qdrant.tech/).

If you are looking for the training-related part of Quaterion, please see the [main repository](https://github.com/qdrant/quaterion) instead.

## Install

```bash
pip install quaterion-models
```

It makes sense to install `quaterion-models` independent of the main framework if you already have trained model
and only need to make inference.

## Load and inference

```python
from quaterion_models import SimilarityModel

model = SimilarityModel.load("./path/to/saved/model")

embeddings = model.encode([
    {"description": "this is an example input"},
    {"description": "you may have a different format"},
    {"description": "the output will be a numpy array"},
    {"description": "of size [batch_size, embedding_size]"},
])
```

## Content

* `SimilarityModel` - main class which contains encoder models with the head layer
* Base class for Encoders
* Base class and various implementations of the Head Layers
* Additional helper functions


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/qdrant/quaterion-models",
    "name": "quaterion-models",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<3.11",
    "maintainer_email": "",
    "keywords": "framework,metric-learning,similarity,similarity-learning,deep-learning,pytorch",
    "author": "Quaterion Authors",
    "author_email": "team@qdrant.tech",
    "download_url": "https://files.pythonhosted.org/packages/2d/2d/8476f1db81e6dd79f936c0a58873b65272ca0892583f1331a86f591b4a9e/quaterion_models-0.1.19.tar.gz",
    "platform": null,
    "description": "# Quaterion Models\n\n`quaterion-models` is a part of [`Quaterion`](https://github.com/qdrant/quaterion), similarity learning framework.\nIt is kept as a separate package to make servable models lightweight and free from training dependencies.\n\nIt contains definition of base classes, used for model inference, as well as the collection of building blocks for building fine-tunable similarity learning models.\nThe documentation can be found [here](https://quaterion-models.qdrant.tech/).\n\nIf you are looking for the training-related part of Quaterion, please see the [main repository](https://github.com/qdrant/quaterion) instead.\n\n## Install\n\n```bash\npip install quaterion-models\n```\n\nIt makes sense to install `quaterion-models` independent of the main framework if you already have trained model\nand only need to make inference.\n\n## Load and inference\n\n```python\nfrom quaterion_models import SimilarityModel\n\nmodel = SimilarityModel.load(\"./path/to/saved/model\")\n\nembeddings = model.encode([\n    {\"description\": \"this is an example input\"},\n    {\"description\": \"you may have a different format\"},\n    {\"description\": \"the output will be a numpy array\"},\n    {\"description\": \"of size [batch_size, embedding_size]\"},\n])\n```\n\n## Content\n\n* `SimilarityModel` - main class which contains encoder models with the head layer\n* Base class for Encoders\n* Base class and various implementations of the Head Layers\n* Additional helper functions\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "The collection of building blocks to build fine-tunable similarity learning models",
    "version": "0.1.19",
    "split_keywords": [
        "framework",
        "metric-learning",
        "similarity",
        "similarity-learning",
        "deep-learning",
        "pytorch"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "b7af7b6cb26ea239c4f8e779a3b0a212",
                "sha256": "5116c7a76d362374d3c318c7fba9f6c8bf783a8490c67ec719b3941d65192cd5"
            },
            "downloads": -1,
            "filename": "quaterion_models-0.1.19-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7af7b6cb26ea239c4f8e779a3b0a212",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<3.11",
            "size": 26207,
            "upload_time": "2022-12-08T09:10:23",
            "upload_time_iso_8601": "2022-12-08T09:10:23.606424Z",
            "url": "https://files.pythonhosted.org/packages/79/35/65c6c8b47187bead0c1a00862c33b2b696a5344d74c888eb603a2fdbf2e3/quaterion_models-0.1.19-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ca29d80c6c05186329608066392adc76",
                "sha256": "4ddf45d538a6761901920e6b6976cb6168c6215657d69037009d1cfb2abb6bec"
            },
            "downloads": -1,
            "filename": "quaterion_models-0.1.19.tar.gz",
            "has_sig": false,
            "md5_digest": "ca29d80c6c05186329608066392adc76",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<3.11",
            "size": 17688,
            "upload_time": "2022-12-08T09:10:24",
            "upload_time_iso_8601": "2022-12-08T09:10:24.895291Z",
            "url": "https://files.pythonhosted.org/packages/2d/2d/8476f1db81e6dd79f936c0a58873b65272ca0892583f1331a86f591b4a9e/quaterion_models-0.1.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-08 09:10:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "qdrant",
    "github_project": "quaterion-models",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "quaterion-models"
}
        
Elapsed time: 0.02047s