Scriptor
Scriptor, Latin for "scribe", is a server that reads scanned pages into text. Scriptor runs the GLM-OCR model on the NVIDIA DGX Spark, entirely on your own computer, and answers in the same way as the OpenAI API, so software you already use can send pages to Scriptor without changes.
What Scriptor Is
Scriptor is our own engine for the GLM-OCR model, written from the ground up for the NVIDIA DGX Spark. Most people run GLM-OCR with vLLM, a general-purpose server made to run many models on many kinds of computer. Scriptor is made for one job on one computer: reading pages quickly.
- Speed
- About 1.93 times as fast as vLLM
- Pace
- About 6,069 pages an hour
- Same Text
- 90.7% of page regions identical to the text vLLM produced
What Scriptor Does
-
Reads Pages Into Text
Send a picture of a page and Scriptor returns the words on the page. Scriptor reads many pages at the same time and can send each answer back as the answer is written.
-
Works With Software You Already Have
Scriptor accepts the same requests as the OpenAI chat API and reports the same measurements as a vLLM server, so programs and dashboards built for either one keep working.
-
Stays on Your Computer
Scriptor uses only the model folder and the network address you name. Scriptor downloads nothing, looks for nothing, and sends your pages nowhere else.
-
Starts Clean Every Time
Scriptor prepares everything needed at each start and keeps the result in memory only, so nothing saved from an earlier run can go stale.
-
Protects the Computer
Scriptor checks that the model fits in memory before starting, watches memory while running, and turns new work away with a request to retry before the computer runs short.
-
Stops Safely
When asked to stop, Scriptor finishes the pages in progress first. After a hardware fault, Scriptor exits with a code that tells the supervising program whether a restart will help.
Scriptor Compared With vLLM
We read the same 368 pages, from 15 public example documents, with Scriptor and with vLLM on one NVIDIA DGX Spark, using the same model and the same settings.
Time to Read 368 Pages
About 48% less time
A shorter bar is better.
Pages Read in an Hour
About 1.93 times as many
A longer bar is better.
Time to Read One Million Pages
About 6 days sooner
A shorter bar is better.
The times for 368 pages were measured. The hourly and one-million-page figures are worked out from those times, on one computer running without a break.
In the same test Scriptor turned no request away, and 90.7% of the page regions came out identical, character for character, to the text vLLM produced.
What Scriptor Needs
- Computer
- An NVIDIA DGX Spark running Linux
- Model
- A copy of the GLM-OCR model that you supply; the model is not bundled with Scriptor
- Installation
- Built from source with Rust and the NVIDIA CUDA toolkit
Licensing
Scriptor is dual-licensed. You may use Scriptor under the GNU Affero General Public License, version 3 only (AGPL-3.0-only), or under a commercial license from Chiron Courseworks.
Frequently Asked Questions
- Can I use Scriptor without paying?
- Yes. The AGPL-3.0-only license lets you use, study, change, and share Scriptor. In return, if you distribute Scriptor, or let others use a modified version over a network, you must make the corresponding source code available under the same license.
- When do I need a commercial license for Scriptor?
- When those conditions do not work for you: for example, building Scriptor into a product or service whose source you will not release, or working in an organization whose policies do not permit AGPL software. A commercial license releases you from the AGPL obligations.
- How do I get Scriptor?
- Scriptor is released on GitHub at github.com/mdmurphy822/Scriptor, the official source for releases and source code. For a commercial license, contact us.
- Does Scriptor need an internet connection?
- No. Scriptor runs entirely offline, and your pages never leave your computer.
- Does Scriptor work with SemantiK?
- Yes. SemantiK can send pages to Scriptor to be read, like any other program that uses the OpenAI chat API.