Repository navigation
RFC: Adapter backend for out-of-tree engines (community backends) #4126
festeraeb
started this conversation in
Request for Comment (RFC)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Proposal size
Major feature proposal
Updates
Update 1: #3906 (pwilkin) proposes JSON backend definitions, including external ones. This RFC now targets that format: adapter specs become external definitions, and this RFC covers the parts #3906 does not: conformance levels, the engine telemetry/shrink hook, UUID devices, signed specs and sandboxing.
User story
As an engine author, I want to plug my OpenAI-compatible engine into Lemonade without a PR to Lemonade for each release, so users can try it from the same model list, eviction and telemetry they already use. Today every engine has to be added in-tree. This follows the community-backend idea from #dev on Nov 4 and fits next to the OCI backends RFC #3585.
High-level design
adapter. An engine is described by a small JSON spec: the command as a list of arguments with placeholders (port, model path, GPU), allowed environment variables, how to tell it is ready, and optionally where it reports memory use.Breaking changes
None. The adapter is opt-in and existing backends are unchanged. The telemetry hook is a no-op for backends that do not report.
Maintenance plan
Risks
cc @jeremyfowers (new backends) @ramkrishna2910 (router/orchestration) @abn (sandboxing)
All reactions