Closed deevashwer closed 1 year ago
@fionser
@deevashwer
The matrix multiplication code in the Cheetah
back-end is already upgraded to BumbleBee's variant.
Thanks @fionser for the quick response. Is there a branch that can be used to perform end-to-end benchmarking of the BumbleBee code? It'd be great if there's an end-to-end example for BumbleBee just like the ones for PUMA.
Just simply replace the back-end (from ABY3
to CHEETAH
) in the config.json file. It should work. The SPU front-end is designed to be back-end independent. Indeed, the current state of the main branch code should be a bit slower than the reported number in the BumbleBee paper due to the above reasons.
For example, the 2-party config file would like
{
"id": "colocated.2pc",
"nodes": {
"node:0": "127.0.0.1:9320",
"node:1": "127.0.0.1:9321"
},
"devices": {
"SPU": {
"kind": "SPU",
"config": {
"node_ids": [
"node:0",
"node:1"
],
"spu_internal_addrs": [
"127.0.0.1:9330",
"127.0.0.1:9331"
],
"runtime_config": {
"protocol": "CHEETAH",
"field": "FM64",
"enable_pphlo_profile": true,
"enable_hal_profile": true,
"enable_pphlo_trace": false,
"enable_action_trace": false,
"experimental_disable_mmul_split": true,
"fxp_exp_mode": 0,
"fxp_exp_iters": 6
}
}
},
"P1": {
"kind": "PYU",
"config": {
"node_id": "node:0"
}
},
"P2": {
"kind": "PYU",
"config": {
"node_id": "node:1"
}
}
}
}
@deevashwer Just a "simple" demo on how to add new features on SPU's dispatch workflow https://github.com/secretflow/spu/pull/433
@deevashwer 后端的矩阵乘法代码
Cheetah
已经升级到BumbleBee的变体。
您好,请问是在头文件中有 // Ref: Lu et al. "BumbleBee: Secure Two-party Inference Framework for Large // Transformers" // https://eprint.iacr.org/2023/1678 的文件才是Bumblebee的相关代码吗?目前这样的代码我只发现了cheetah_dot/cheetah_mul
Feature Request Type
Performance
Have you searched existing issues?
Yes
Is your feature request related to a problem?
N/A
Describe features you want to add to SPU
Hi SPU team,
The state-of-the-art Secure 2PC Inference work, titled "BumbleBee: Secure Two-party Inference Framework for Large Transformers" links to SPU for its code. However, I don't see any references to BumbleBee in this repository. Is the code release still in progress? If so, do you have an estimate on when the code will be released?
Describe features you want to add to SPU
N/A