Skip to main content

ofen

Work In Progress

This project is currently under active development. Features and documentation may be incomplete or subject to change.

About

Ofen is a toolkit aimed at making transformer models production-ready. API included (in the future).

Usage

from ofen.models import TextEncoder, CrossEncoder

encoder = TextEncoder.from_pretrained("mixedbread-ai/mxbai-embed-large-v1")
cross_encoder = CrossEncoder.from_pretrained("mixedbread-ai/mxbai-rerank-large-v1")

from ofen.models.onnx import ORTTextEncoder, ORTCrossEncoder
encoder = ORTTextEncoder.from_pretrained("mixedbread-ai/mxbai-embed-large-v1")
cross_encoder = ORTCrossEncoder.from_pretrained("mixedbread-ai/mxbai-rerank-large-v1")


encoder.encode("Hello world")
cross_encoder.rerank("Python", ["print('Hello world')"])

Contributing

As this project is in its early stages, contributions are welcome. Please check the issues page for current tasks or suggest improvements.

License

[To be determined]

Metadata

Release files for ofen 0.0.1

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

Source distribution (sdist)

Source distribution for ofen 0.0.1
File Size Uploaded
ofen-0.0.1.tar.gz 52.8 kB Details

Built distribution (wheel)

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

Total release size: 126.5 kB

Release files / ofen-0.0.1.tar.gz

Download URL ofen-0.0.1.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4208a667e8241d8f85ae5e39aa0b1407093b3097028ad76c467dacbf378cfd17
BLAKE2b-256 checksum
How to use checksums
878fb86492b351a75f63bb6835c8c5bdb41b1ed936bebb6387b65f812de83a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release files / ofen-0.0.1-py3-none-any.whl

Download URL ofen-0.0.1-py3-none-any.whl
Size 73.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bbba285dc34dbc015371c0b0cb08ae495907174a6cd29d863a698595d3b06f7
BLAKE2b-256 checksum
How to use checksums
50a5080fcbc273edf4b32d88e08c1d567200aaff26944274903567ecba7bf842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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