Skip to content
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

spu设备的声明 #30

Closed
Wyyyb opened this issue Jul 12, 2022 · 2 comments
Closed

spu设备的声明 #30

Wyyyb opened this issue Jul 12, 2022 · 2 comments
Labels
module: SPU SPU related issues

Comments

@Wyyyb
Copy link

Wyyyb commented Jul 12, 2022

image

请问spu设备在申请时传递的这个参数是给这个spu起的名字吗?还有其他申请spu设备的方法吗?
@wuxibin89
Copy link
Collaborator

sf.utils.testing.cluster_def是一个用来快速构建spu config的helper,你可以手动构建runtime_config,参见SPU RuntimeConfig。例如:

{
    '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.SEMI2K,
        'field': spu.spu_pb2.FM128,
        'sigmoid_mode': spu.spu_pb2.RuntimeConfig.SIGMOID_REAL,
    }
}

@Wyyyb
Copy link
Author

Wyyyb commented Jul 12, 2022

好的,感谢清晰明了的解答。

ElleryQu pushed a commit to ElleryQu/secretflow that referenced this issue Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: SPU SPU related issues
Projects
None yet
Development

No branches or pull requests

2 participants