Garnet
FudanMPL 2.0, a series of multi-party learning frameworks, with rich features, including secure and fast XGBoost, secure Fine-tuning for pre-trained models, and open source SecureML.
Install / Use
/learn @FudanMPL/GarnetREADME
<center> Garnet(石榴石)
<div align=center><img width = '130' height ='130' src="./Garnet.png"/></div> <br><br> <p align="justify">Garnet(石榴石) 是继SecMML(Queqiao)后,由复旦大学数据安全与治理实验室开发并开源的又一个安全多方学习(MPL:Multi-party Learning)平台,其深度优化并扩展自MP-SPDZ v0.3.5(CCS 2020),并适配安全多方学习的特定功能需求。经过多轮迭代,Garnet是一个易用性高、通用性强且支持算法丰富的安全多方学习平台。当前,Garnet支持多种安全多方计算协议,例如:半诚实两方场景下的SecureML协议(Garnet新增)、任意多方不诚实大多数+恶意场景下的SPDZ协议等。用户可以使用Python脚本语言调用XGBoost(Garnet新增)模型安全训练功能以及预训练模型的安全微调(Garnet新增)功能。此外,Garnet还支持多场景(任意参与方数,诚实大多数+半诚实,不诚实大多数+半诚实等)下的逻辑回归、神经网络等机器学习模型的安全训练功能。</p>部署方式一:从源码部署
当前Garnet支持Ubuntu 20.04以及MacOS High Sierra之后的操作系统版本。
且Python版本需要 >= 3.10.0。
步骤 1:源码下载
git clone https://github.com/FudanMPL/Garnet.git
步骤 2:外部库准备
Linux
sudo apt-get install automake build-essential cmake git libboost-dev libboost-thread-dev libntl-dev libsodium-dev libssl-dev libtool m4 texinfo yasm
MacOS
brew install automake build-essential cmake git libboost-dev libboost-thread-dev libntl-dev libsodium-dev libssl-dev libtool m4 texinfo yasm
步骤 3:初始编译
make clean-deps boost libote
make clean
make -j 8 tldr
部署方式二:用Docker部署
步骤 1:源码下载
git clone https://github.com/FudanMPL/Garnet.git
步骤 2:创建镜像和容器
sudo docker build -t garnet .
sudo docker run --cap-add=NET_ADMIN -it garnet bash
历史发布
2025年5月份发布:
2025年3月份发布:
2024年7月份发布:
2024年1月份发布:
2023年9月份发布:
- 优化Function Secret Sharing的通信轮次
- 优化XGBoost推理所需的通信量
- 优化向量空间秘密分享矩阵乘法离线阶段生成三元组的效率
- 新增Transformer模块及线性化ReLU层
2023年7月份发布:
- 基于向量空间秘密共享的安全计算协议使用
- Function Secret Sharing与Replicated Secret Sharing混合协议
- 基于NFGen的非线性函数近似计算
- 模型训练开销Profiling
- XGBoost模型安全推理
2023年3月份发布:
联系我们
如果您对项目代码有任何疑问,请在GitHub仓库上创建issue。 若未能及时处理,请直接联系邮箱: 1015277323@qq.com
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
19.1kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
