Fermion Research 的 llama.cpp 分支,增加了 FV5 和 FV5B 两种 GGML 类型,用于在 CPU 和 CUDA 后端加载并运行 Neutrino 三值族模型。

Stars

8

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它通过广泛使用的 llama.cpp 框架支持 Fermion 的三值模型,并提供了与原生运行时一致的贪心令牌身份正确性验证。

适合谁使用

  • 研究三值模型的研究人员
  • 部署 Fermion Neutrino 模型的开发者
  • 希望在 CPU/CUDA 上运行 Neutrino GGUF 包的用户
  • 对新型量化类型感兴趣的 llama.cpp 爱好者

典型使用场景

  • 通过 OpenAI 兼容服务器提供 Neutrino-8B 或 Neutrino-0.6B 模型服务
  • 在 CPU 和 CUDA 上对三值模型进行性能评测
  • 使用提供的门控工具验证模型输出的正确性
  • 将三值模型集成到基于 llama.cpp 的应用中

项目优势

  • 增加了两种新 GGML 类型(FV5 和 FV5B),数值设计谨慎(原始 f32 激活值,精确 f32 缩放因子)
  • 包含门控工具,可在 CPU 和 CUDA 后端验证贪心令牌身份
  • 支持 CPU 和全量 CUDA 卸载,无需模型转换
  • 使用标准 llama.cpp 命令即可轻松构建和运行

使用前须知

  • 类型 ID 与上游冲突,需要计划中的重基和重编号
  • 未提供参考量化器,块由 Fermion 容器离线生成
  • 此分支优化目标是正确性一致,而非峰值速度
  • 仅支持 CPU 和 CUDA 后端;上游 llama.cpp 拒绝这些包,直到类型被上游化

README 快速开始

llama.cpp — Fermion Research fork (fermion-fv5)

This is Fermion Research's fork of ggml-org/llama.cpp. It adds two GGML weight types so llama.cpp can load and run Neutrino GGUF packs — Fermion's ternary-family models — on the CPU and CUDA backends:

ggml typeidblockbytes/blockbpwused for
FV543256104 (f32 s_lo, f32 s_hi, 3×32 B bit-planes)3.25all attention / MLP linears
FV5B44256260 (f32 s, 256×int8)8.125token_embd / output

Everything else is stock llama.cpp at the pinned base commit — the model graph is untouched (Neutrino models are stock Qwen3 geometry, which mainline already implements). The upstream README is preserved as README_LLAMACPP.md.

GGUF is the compatibility door. Fermion's native runtime and its fused kernels remain the fast door; this fork optimizes for correctness parity with the deployed container function, not for peak speed.

Quickstart

You do not convert anything. Download a ready-made Neutrino GGUF pack (e.g. neutrino-8b-fv5.gguf, ~4.1 GB, or the 0.6B cut), verify its SHA256SUMS, then build this fork and point it at the file.

# CPU only
cmake -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=OFF
cmake --build build -j --target llama-server llama-bench llama-completion

# CPU + CUDA (full offload supported)
cmake -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=OFF -DGGML_CUDA=ON
cmake --build build -j --target llama-server llama-bench llama-completion

Run an OpenAI-compatible server, fully offloaded:

./build/bin/llama-server -m neutrino-8b-fv5.gguf -ngl 99 -c 4096 --host 127.0.0.1 --port 8080

Or a quick greedy completion / benchmark:

./build/bin/llama-completion -m neutrino-8b-fv5.gguf -ngl 99 -p "The capital of France is" -n 64 --temp 0 -no-cnv
./build/bin/llama-bench -m neutrino-8b-fv5.gguf -ngl 99 -p 512 -n 128

Stock upstream llama.cpp will reject these packs (FV5B = type id 44 is out of range there) — you need this fork until the types are upstreamed.

Correctness

The fork ships a gate tool, tools/fermion-greedy (llama-fermion-greedy), that certifies greedy token identity (free-running and teacher-forced, with per-flip logit-margin forensics, F32 KV cache):

项目描述

Fermion Research fork of llama.cpp: FV5/FV5B five-value ternary types for Neutrino GGUF packs (CPU + CUDA)

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

alecjacobson
精选
alecjacobson GitHub avatar

alpha-wrap

A CGAL-free, MIT-licensed reimplementation of the Alpha Wrapping algorithm that takes a defective triangle soup and produces a watertight, manifold, outward-oriented mesh with controllable level of detail and tightness.

C++
5
hypervising
精选
hypervising GitHub avatar

gta-enhanced-audio-queue-poc

A proof-of-concept tool that patches a synchronous three-slot audio queue in GTA V Enhanced, boosting frame rates from ~260 to ~499 FPS by removing coarse wait delays.

设计与创意
3
ammaarreshi
ammaarreshi GitHub avatar

Generals-Mac-iOS-iPad

This repository ports Command & Conquer Generals: Zero Hour to run natively on Apple Silicon Macs, iPhones, and iPads without emulation, adding touch controls and modern rendering.

C++
1,523