OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Infrastructure & Serving

Gliner As A Service

Gliner As A Service is an open-source, Docker Compose-based API service that serves GLiNER named-entity predictions from text. It combines FastAPI, Celery and Redis, with Flower for task monitoring and Locust for load testing.

Independent OpenViST project profile, based on linked sources.

Gliner As A Service — OpenViST project profile in AI Infrastructure & Serving.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to run GLiNER as a self-hosted API and need its documented queue, cache, monitoring and load-testing components.

Who it is for

  • Developers integrating named-entity recognition into application backends.
  • Teams running text-extraction jobs through asynchronous workers.
  • Operators who want task monitoring and load-testing tools alongside a self-hosted model API.

Documented uses

  • Expose GLiNER predictions through a FastAPI service.
  • Distribute prediction tasks across Celery workers.
  • Cache task results using Redis.
  • Monitor Celery tasks with Flower.
  • Load-test the API with Locust.
Before you choose

Requirements & limits

The repository is public and licensed under Apache-2.0. The documented setup runs with Docker Compose; the separate Streamlit client has extra dependencies.

  • The documented startup path uses Docker Compose and includes FastAPI, Redis and Celery.
  • Redis serves as both the Celery message broker and the task-result cache.
  • The Streamlit client is independent and optional for running the API, but requires extra dependencies.
  • The README documents local testing and does not provide a deployment procedure beyond the described setup.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the Docker Compose service

Build the documented images and start the API, Redis and Celery containers for local use.

Before you start

  • Docker and Docker Compose
  • A copy of the repository
  • An environment file copied from .env.example, with REDIS_URL=redis://redis:6379/0 for local testing

Steps

  1. Copy .env.example to .env and set the documented Redis URL.

  2. Build the CPU image with docker build . -f Dockerfile.torch-cpu --pull -t torch-cpu:latest.

  3. Build the GLiNER image with docker build . -f Dockerfile.gliner -t gliner-service:latest.

  4. Start the containers with docker compose up -d.

  5. Use python scripts/open_browsers.py to open the documented Swagger UI, Locust and Flower interfaces; the README also provides ./scripts/test-predict.sh for a prediction test.

Expected outcome

A local containerized GLiNER API setup with Redis and Celery, plus documented interfaces and a prediction test script.

Guide limitations

  • The documented deployment procedure covers Docker Compose startup and local testing; it does not describe deployment beyond this setup.
Source-based practical guide

Start the separate Streamlit client

Run the documented browser-based client for trying the prediction service.

Before you start

  • The repository and its separately required Streamlit client dependencies
  • The API service, for connecting the client to the prediction service

Steps

  1. Follow the repository's client dependency setup.

  2. Run ./scripts/start-ui.sh.

Expected outcome

A Streamlit browser interface for the prediction service.

Guide limitations

  • The README identifies the UI as an independent client with extra dependencies; it is not required to run the API.
  • The README does not detail the client dependency installation steps.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 October 2026
Original website title
henrikalbihn/gliner-as-a-service · Official homepage title · retained in its source language