Drex Max v1 发布:开放权重 27B 多模态决策模型,262K 上下文,Apple Silicon 本地推理

各位 llama 们,我们在 Nace.AI 开源了 Drex-Max v1。这是一个 27B 稠密(dense)多模态决策模型,以 Open RAIL-M 许可发布。它与普通 LLM 的主要区别在于:它什么都不生成。没有 token,也没有需要解析的 JSON。你给它一个上下文状态(文本、JSON、高分辨率图像),外加一个或多个命名问题,一个 255 路读出头(readout head)在单次前向传播中即返回所有候选答案的概率。它可通过 Python 运行在 NVIDIA GPU 上,也可通过我们的 llama.cpp 和 Ollama fork 运行在 Apple Silicon(Metal)和 CPU 上。延迟约 400ms。
架构要点:
- 无解码循环。单次前向传播,最后的隐藏状态直接映射为最多 255 个选项的概率(经由 readout.safetensors)。
- 64 层混合骨干:48 层 Gated DeltaNet 线性注意力层(因果、从左到右),加 16 层全注意力层(每 4 层一个)。全注意力层是双向的,因此每个 token 都能看到全部上下文。
- 上下文:默认 16,384 tokens,可通过 DREX_MAX_CONTEXT=N 或 --max-length N 推到 262,144。
- 视觉:每张图像最多 4,194,304 像素。每张图像只编码一次,并在批内所有问题之间共享。
基准测试:在结构化决策任务上,它超过了我们之前更大的 Drex v2.0(35B):
| 模型 | 参数量 | Public Decision Index 0.4 | Raw | Tools | Retrieval | Language | Knowledge & Reasoning |
|---|---|---|---|---|---|---|---|
| Drex-Max v1 | 27B | 67.52 | 75.4 | 81.9 | 68.8 | 72.2 | 57.1 |
| Drex v2.0 | 35B | 61.25 | 70.5 | 76.5 | 63.0 | 65.3 | 47.9 |
| Jev 1.13.0 | — | 57.96 | 68.5 | 75.1 | 55.4 | 59.2 | 53.9 |
Decision Bench v4:94.30%(1,010/1,071)
JevBench:92.2%(213/231)
Public Vision Index 总分 73.92:InfographicVQA 97.3、KIE(CORD+FUNSD)92.4、Winoground 85.0、Mind2Web 84.2、CharXiv 80.5、CV-Bench 77.4、RealWorldQA 72.3。
硬件:
- Apple Silicon(Metal / GGUF):Q8_0 GGUF 约 27.25 GB。在 48 GB 统一内存的 M5 Pro 上,每次决策约 400ms,概率与 H100 上未量化 bf16 的差距在 0.02 以内。
- CUDA,bf16:约 48.6 GiB 显存(在 H100 80GB 上测试)。
- CUDA,8-bit(--8bit):约 25.9 GiB 显存(在 L40S 48GB 上测试),与 bf16 差距在 0.03 以内。
运行方式:
1. Python SDK(CUDA,含视觉支持)
hf download nace-ai/drex-max-v1 --local-dir weights/drex-max-v1
pip install -r models/drex-max-v1/requirements.txt
from drex_max.model import DecisionModel, answer
model = DecisionModel("weights/drex-max-v1") # add --8bit for ~26GB VRAM mode
question = {
"type": "choice",
"instructions": "Which team should handle this ticket?",
"criteria": {
"billing": "Payments, charges, and refunds",
"technical": "Bugs and outages",
"other": "Anything else"
}
}
row = {
"state": {"ticket": "I was charged twice for the same order. Please refund the extra payment."},
"question": question,
01"images": ["receipt.jpg"] # Supports up to 4.2M pixels
}
print(answer(question, model.predict([row])[0]))
输出类似这样:
{
"answers": {
"team": {
"type": "choice",
"choice": "billing",
"confidence": 0.9982,
"probabilities": {
"billing": 0.9988,
"technical": 0.0003,
"other": 0.0009
}
}
}
}
2. llama.cpp fork(Apple Silicon / Metal)
文本骨干基于 Metal 构建,并提供 /v1/systemone 端点:
git clone --branch drex-max-v1 --single-branch https://github.com/nace-ai/llama.cpp.git
cmake -S llama.cpp -B llama.cpp/build
cmake --build llama.cpp/build -j --target llama-server
02Pre-quantized GGUF or converted Q8_0
llama.cpp/build/bin/llama-server -m weights/drex-max-v1-Q8_0.gguf \
-np 1 -c 16384 -b 16384 -ub 16384 --no-warmup --port 8000
注意:由于 Drex 把整个 prompt 视为一个非因果状态,-b 和 -ub 需要与 -c 保持一致。
3. Ollama fork
FROM ./drex-max-v1-Q8_0.gguf
CAPABILITY decision
PARAMETER num_ctx 16384
PARAMETER num_gpu 40
从 drex-max-v1 分支启动 daemon,然后 POST 到 /v1/systemone。
链接:
- 权重 + readout safetensors:nace-ai/drex-max-v1
- GGUF(Q8_0):nace-ai/drex-max-v1-Q8_0
- llama.cpp / Ollama fork:Nace.AI 仓库的 drex-max-v1 分支
- 许可证:Nace.AI Open RAIL-M
我们做这个模型是为了低延迟路由、agentic 工具选择和多模态 UI 自动化(Mind2Web 风格的任务)。由于没有生成步骤,你不会遇到常见的非确定性输出,也不用在坏掉的 JSON 上做修补。欢迎提问:)
submitted by /u/m4rkGS [link] [comments]