{"by":"mmoskal","descendants":35,"id":39670665,"kids":[39672167,39673549,39674067],"score":209,"text":"AICI is a proposed common interface between LLM inference engines (llama.cpp, vLLM, HF Transformers, etc.) and &quot;controllers&quot; - programs that can constrain the LLM output according to regexp, grammar, or custom logic, as well as control the generation process (forking, backtracking, etc.).<p>AICI is based on Wasm, and is designed to be fast (runs on CPU while GPU is busy), secure (can run in multi-tenant cloud deployments), and flexible (allow libraries like Guidance, LMQL, Outlines, etc. to work on top of it).<p>We (Microsoft Research) have released it recently, and would love feedback on the design of the interface, as well as our Rust AICI runtime.<p>I&#x27;m the lead developer on this project and happy to answer any questions!","time":1710176449,"title":"Show HN: Prompts as WASM Programs","type":"story","url":"https://github.com/microsoft/aici"}