building cpu-only text encoder models. stop depending on the cloud. stop buying expensive gpus.
choose to be different. choose to be 🌳 chronically offline 🌳
don't take our word for it. try it yourself.
pip install offlineisbetterrun offlineisbetter by selecting a model.
offlineisbetter 0.0.0.0 8585 offline-sentiment-smallyou can then query the api with a json like so.
requests.post(f"http://127.0.0.1:8585/inference", json={"text": "my input text here"}")we believe that you shouldn't give your data to faceless companies, that you deserve to run text models locally, and that you shouldn't need to buy expensive hardware. so we're building offlineisbetter.
offlineisbetter models are for encoding tasks: sentiment analysis, text tagging, document retrieval, etc. rather than for decoding tasks like autoregressive generation. we believe that it's wasteful and dangerous to depend on cloud apis for frontier language models to do these simple tasks, and it should be almost mindless to download a model to use it without dealing with runtimes or quantization formats.
currently, we only have one model available: offline-sentiment-small. it's a 230m parameter model for text sentiment analysis, finetuned on stanfordnlp/ssl2.
succinctly, the core philosophy of offlineisbetter is that parameter-efficient and low-latency models should be easily accessible to everybody. of course hugging face and transformers.pipeline allows you to run sentiment analysis in three lines of python, but for more parameter-efficient models, already quantized and with optimized computation graphs.
the source code in this repository is under the mit license. parameters are finetuned from liquid ai pretrained models, and therefore are subject to the lfm open license. see LICENSE for more information.