Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

allenai/infinigram-api

Repository files navigation

This API is a wrapper overinfini-gram to allow it to be used through an API at scale. It's a uv workspace with two applications (the API andthe worker) and one library to share code between the two (infini-gram-processor).

Reference

This application is only made possible by researchers that worked on the infini-gram paper:Liu, Jiacheng and Min, Sewon and Zettlemoyer, Luke and Choi, Yejin and Hajishirzi, Hannaneh (2024).Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens.arXiv preprint arXiv:2401.17377,

Getting Started

To develop in this repo, see thecontributing doc.

Indexes

You can find the index documentationhere.

Architecture

flowchart TB    queue@{ shape: cyl, label: "Queue"}    indexes@{ shape: lin-cyl, label: "Indexes" }    api@{ shape: rounded, label: "API" }    worker@{ shape: rounded, label: "Attribution Worker" }    proxy@{ shape: stadium, label: "Web Proxy" }    infini-gram@{ shape: subproc, label: "infini-gram" }    api <-- Add jobs, receive results --> queue    worker <-- Receive jobs, send results --> queue    api --> infini-gram    worker --> infini-gram    infini-gram --> indexes    proxy --> api
Loading

This application is deployed on Ai2'sSkiff platform. It's a wrapper over k8s designed to streamline development and deployment.

The API and worker are in different deployments and are separately scalable.

Both the API and worker access infini-gram and the associated indexes. The API will pass anyattribution requests to the queue and await the result. The worker reads requests from the queue and works them, returning the result to the queue when finished. Requests other thanattribution will be handled in the API.attribution requests are split off because they take much longer, which was causing the server to hang under load.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp