Run text models locally without cloud dependency.
Project details
offlineisbetter offers a collection of efficient models designed for encoding tasks like sentiment analysis and document retrieval. With a focus on local execution and low resource requirements, these models provide a practical solution to avoid the pitfalls of cloud dependency, ensuring privacy and accessibility.
The offlinedemo project provides a compelling solution for performing inference using models developed by offlineisbetter. The philosophy behind this initiative is rooted in the belief that individuals should maintain control over their data without relying on external cloud services. Instead, offlineisbetter empowers users to run text models locally and affordably, eliminating the need for costly hardware.
The focus of offlineisbetter models is on encoding tasks such as sentiment analysis, text tagging, and document retrieval. These models are designed for efficiency and safety, aiming to reduce dependency on cloud APIs for foundational language processing tasks.
offline-sentiment-small, which consists of 230 million parameters.To explore the capabilities of this model, users can easily set it up:
pip install offlinedemo
download the model archive from the releases page of this repo and unpack the model.
tar -xvf offline-sentiment-small.tar
run the demo, passing the inflated directory containing the model checkpoint.
offlinedemo offline-sentiment-small
The effectiveness of the offline-sentiment-small model has been evaluated against the stanfordnlp/sst2 validation set for binary sentiment classification. The following table summarizes its performance:
| Model | Parameters | P95 (ms) | F1 (Validation) |
|---|---|---|---|
offline-sentiment-small | 230m | 80.32 | 0.9489 |
distilbert-base | 67m | 66.15 | 0.9321 |
roberta-base | 125m | 469.65 | 0.9396 |
modernbert-base | 149m | 530.73 | 0.9396 |
The offlineisbetter initiative champions the accessibility of parameter-efficient, low-latency models, providing a powerful alternative to the standard solutions currently available. Users can seamlessly integrate and utilize these models within their applications without the complexities typically associated with runtime configurations and format conversions.
Comments
0Start the conversation
Share the first comment.