* chore(embeddings): replace transformers with tokenizers and drop pip from the image * chore(embeddings): fix the dev health check and docs, add a changelog entry * chore(embeddings): port the dependency and threading updates from #6379 Brings over the changes from #6379 that this branch didn't have yet: - onnxruntime 1.26.0, tokenizers 0.23.3, starlette 1.8.0 and uvicorn 0.54.0, plus huggingface_hub 2.2.0 and transformers 5.19.0 in the build stage. - The model download is pinned to its current revision. - Inference uses as many threads as the container's CPU limit, which EMBEDDINGS_NUM_THREADS overrides. - Inference runs in a worker thread behind a lock, so /health answers during long batches. - An empty texts list returns 400 instead of 500. - Helm, its README, Cloudron and the README point to baserow/embeddings:1.1.0. Co-authored-by: Bram Wiepjes <bramw@protonmail.com> * chore(embeddings): address review feedback - The build stage writes tokenizer.json with the 512-token truncation and per-batch padding, so app.py only loads it. The build stage uses the tokenizers library for this and no longer installs transformers. - tokenizers is installed with --no-deps. Its only dependency, huggingface-hub, is used by from_pretrained, which the app never calls. - The README's local run installs the image's packages, downloads the model with _download_model.py into EMBEDDINGS_MODEL_DIR (default /model), and its snippet posts texts instead of text. * chore(embeddings): fix the issues found while verifying the image - requirements.txt pins all 13 runtime packages and is installed with --no-deps, so rebuilds are reproducible. The builder no longer installs git, and the build fails if the app can't be imported. - Requests are processed 8 texts at a time and limited to 256 texts and a 1 MiB body, so a single request can't OOM-kill the container anymore. - Inference holds a lock in its worker thread, and a queued request whose client has gone is skipped. - Malformed input, including lone surrogates, returns 400 instead of 500. - The app refuses to start with a tokenizer.json that doesn't truncate at 512 tokens, or with EMBEDDINGS_NUM_THREADS below 1. - _download_model.py can be re-run. - The README, docs, Cloudron manifest and changelog match the code, and the Cloudron manifest gets a 1.5 GiB memory limit and the /health check. * chore(embeddings): correct the response size per text in a comment --------- Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Baserow's Cloudron image
This is the Baserow maintained Cloudron Image.
Please see our Install on Cloudron guide for more details.
About Baserow
- A spreadsheet database hybrid combining ease of use and powerful data organization.
- Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to get started immediately.
- Alternative to Airtable.
- Open-core with all non-premium and non-enterprise features under the MIT License allowing commercial and private use.
- Headless and API first.
- Uses popular frameworks and tools like Django, Vue.js and PostgreSQL.
Quick Reference
- Maintained By: baserow.io
- Get Support At: The Baserow Community Forums
- Source Code Available At: github.com/baserow/baserow
- Docs At: baserow.io/docs
- License: Open-Core with all non-premium and non-enterprise code under the MIT license.
Supported tags and Dockerfile Links
X.Y.ZTagged by Baserow version.latestdevelop-latestThis is a bleeding edge image from our development branch, use at your own risk.
Application builder domains
Baserow has an application builder that allows to deploy an application to a specific domain. Because Cloudron has a reverse proxy that routes a domain to the right Cloudron app, the deployed application isn't automatically available on the chosen domain.
To make this work, you must add a domain alias in the Cloudron settings. This can be
done by going to the settings of your Baserow app, then click on Location, click on
Add an alias, and then add the domain you've published the application to in Baserow.
Make sure that the alias matches the full domain name in Baserow. After that, Cloudron
will request the SSL certificate, and then you can visit your domain.
It's also possible to add a wildcard alias to Cloudron, but the SSL certificate then doesn't work out of the box. Some additional settings on Cloudron might be required to make it work.