百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pie

> 编程语言
开源

饼: 可编程 LLM 服务器

193 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

饼: 可编程 LLM 服务器

Pie runs small user-supplied WebAssembly programs, called inferlets, directly next to the model. Inferlets have direct access to the KV cache and forward pass, so agent loops, tool calls, custom samplers, and cache policies are customized per application without modifying the engine.

Note Pie is pre-release software under active development.

Quick Start

Pie is a standalone binary, no Python needed. For Windows, see the installation guide.

bash
curl -fsSL https://pie-project.org/install.sh | bash
bash
pie config init
pie model import Qwen/Qwen3.5-0.8B
pie serve

A checkpoint is matched against the catalog's import contracts at load and refused by name when none fits; pie model list prints the SKU beside every snapshot it can see.

pie serve holds the terminal. From another shell, submit an inferlet with the Python client (pip install pie-client):

bash
pie-client submit text-completion -- --prompt "The capital of France is"

pie run is the same round trip without a server:

bash
pie run --path ./target/wasm32-wasip2/debug/text_completion.wasm \
        --manifest ./Pie.toml -- --prompt "The capital of France is"

Backends

Four engines serve today, each a compile-time feature:

bash
cargo build --release -p pie --bin pie --features cuda    # NVIDIA, Linux/Windows
cargo build --release -p pie --bin pie --features metal   # Apple silicon, macOS
cargo build --release -p pie --bin pie --features vulkan  # any Vulkan 1.2 device
cargo build --release -p pie --bin pie --features wgpu    # WebGPU: Vulkan, Metal or D3D12

vulkan compiles Slang to SPIR-V at build time and wants slangc on PATH (or PIE_SLANGC); wgpu needs no shader toolchain.

Building inferlets

Inferlets compile to the wasm32-wasip2 component target:

bash
rustup target add wasm32-wasip2
cargo build --target wasm32-wasip2

Getting Help

GitHub Issues and GitHub Discussions.

License

Apache License 2.0. Third-party attributions: NOTICE.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言