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

cactus

> 数据库
开源

量化和推理引擎、算子内核与运行时,适用于手机、可穿戴设备、智能家居和机器人。

5.6K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

量化和推理引擎、算子内核与运行时,适用于手机、可穿戴设备、智能家居和机器人。

Cactus

[![Docs][docs-shield]][docs-url] [![Website][website-shield]][website-url] [![GitHub][GitHub-shield]][GitHub-url] [![HuggingFace][hf-shield]][hf-url] [![Reddit][reddit-shield]][reddit-url] [![Blog][blog-shield]][blog-url]

一款面向移动设备与可穿戴设备的边缘-云端混合 AI 引擎。

┌─────────────────┐
│  Cactus Engine  │ ←── OpenAI-compatible APIs for text, speech, and vision.
└─────────────────┘     
         │
┌─────────────────┐
│  Cactus Graph   │ ←── Zero-copy computation graph
└─────────────────┘     
         │
┌─────────────────┐
│ Cactus Kernels  │ ←── CPU/GPU kernels for (Apple, Samsung, Pixel, etc.)
└─────────────────┘     
         │
┌─────────────────┐
│ Cactus Quants   │ ←── Custom rotation-based quantization technique
└─────────────────┘  

快速演示(Mac)

  • 第一步:brew install cactus-compute/cactus/cactus
  • 第二步:cactus run

Cactus 引擎

…

来自 Gemma4-E2B 的示例响应

…

Cactus Graph

cpp
#include "cactus_graph.h"

CactusGraph graph;
auto a = graph.input({2, 3}, Precision::FP16);
auto b = graph.input({3, 4}, Precision::INT8);

auto x1 = graph.matmul(a, b, false);
auto x2 = graph.transpose(x1);
auto result = graph.matmul(b, x2, true);

float a_data[6] = {1.1f, 2.3f, 3.4f, 4.2f, 5.7f, 6.8f};
float b_data[12] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};

graph.set_input(a, a_data, Precision::FP16);
graph.set_input(b, b_data, Precision::INT8);

graph.execute();
void* output_data = graph.get_output(result);

graph.hard_reset(); 

推理速度

  • LLM:Gemma-4-E2B-CQ4(100 个 token 的 1k 上下文预填充 / 解码)
  • VLM:Gemma-4-E2B-CQ4(256px 图像编码时间 / 解码)
  • 转录:Parakeet-TDT-0.6B-CQ4(20 秒音频端到端转录时间)
  • 1k 上下文 RAM:LLM 基准测试期间的峰值内存(MB)
  • 无投机解码或 MTP,纯解码

命令:cactus benchmark [可选 --ios 或 --android]

设备 LLM VLM 转录 RAM
Mac M5 Max 2964tps / 154tps 0.09s / 168tps 0.15s 1348MB
Mac M4 Pro 1963tps / 101tps 0.25s / 112tps 0.21s 1225MB
Mac M3 Pro 1294tps / 64tps 0.40s / 72tps 0.37s

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

C++aiandroidarmedge

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库