Skip to main content

Callbackable Sentence Transformers

A simple class to replace the SentenceTransformer class from sentence_transformers package.

It adds a simple parameter callback_during_training to the SentenceTransformer.fit() function be able to get the loss value of the SentenceTransformer during training.

from callbackable_sentence_transformers import CallbackableSentenceTransformer

model = CallbackableSentenceTransformer(model_checkpoint)

def callback(loss, epoch, step):
    print(f"Loss at epoch {epoch}, {step}: {loss}")

model.fit(..., callback_during_training=callback)

Metadata

Release files for callbackable-sentence-transformers 2024.0.0

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

Source distribution (sdist)

Source distribution for callbackable-sentence-transformers 2024.0.0
File Size Uploaded Provenance Actions
callbackable_sentence_transformers-2024.0.0.tar.gz 5.6 kB Without provenance Details for callbackable_sentence_transformers-2024.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for callbackable-sentence-transformers 2024.0.0
File Interpreter ABI Platform Actions
callbackable_sentence_transformers-2024.0.0-py3-none-any.whl Python 3 none any Details for callbackable_sentence_transformers-2024.0.0-py3-none-any.whl

Total release size: 12.3 kB

Release files / callbackable_sentence_transformers-2024.0.0.tar.gz

Download URL callbackable_sentence_transformers-2024.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aa345f995bc24f97af93516853004d9dcc47445339e41af62b9e88d91e4312b9
BLAKE2b-256 checksum
How to use checksums
a29b01b6523fa754bc9e9330740f05a305d08721b8b91c7968c5845cdc6bfd69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / callbackable_sentence_transformers-2024.0.0-py3-none-any.whl

Download URL callbackable_sentence_transformers-2024.0.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f9790236ee66a31ee4d3c31b882252c133be91cc56e7376a3758e670318a10c
BLAKE2b-256 checksum
How to use checksums
6149e185c55be6b6eeb66d1a4dc12453a31bb6a0adba3b2e7f16986f321d2e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Security for callbackable-sentence-transformers 2024.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2024.0.0 This release

2 release files No provenance

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