-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i use CHEETAH in the secretflow? Can you please give a demo? #11
Comments
See secretflow/secretflow#30 , you can specify {
'nodes': [
{
'party': 'alice',
'id': 'local:0',
'address': '127.0.0.1:9001',
'listen_address': '' # Optional. Address will be used if listen_address is empty.
},
{
'party': 'bob',
'id': 'local:1',
'address': '127.0.0.1:9002',
'listen_address': ''
},
],
'runtime_config': {
'protocol': spu.spu_pb2.CHEETAH,
'field': spu.spu_pb2.FM64,
'sigmoid_mode': spu.spu_pb2.RuntimeConfig.SIGMOID_REAL,
}
} |
想使用猎豹,按如上runtime_config配置,报错如下:
|
Exactly. |
ok,thx |
还有一个问题请教:两节点下,我测试逻辑回归的性能,同样的代码只是换了协议,semi2k需要8s,cheetah需要52s,这是为什么呢?cheetah这个在什么场景下使用才有性能优势? |
@mingo0117 semi2k 是需要额外可信第三方的 (如 TEE) 去生成 随机数;而 cheetah 是纯两方的;如果部署上能支持 TEE 的话;大部分情况都是 semi2k 的性能更好。后续 Cheetah 的矩阵-乘法(应该)还会优化性能 。 |
我有一个问题想请问一下,当使用明文训练完一个模型,模型参数使用的是浮点数表示。在secretflow中是直接将模型参数乘以一个系数转换为整数表示吗? |
浮点数在spu里是用定点数来表示的 |
请问在cheetah协议中是如何转换为大整数的呢? |
可以阅读一下这部分代码 Line 47 in 1c73e7a
|
No description provided.
The text was updated successfully, but these errors were encountered: