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

通过kuscia进行联邦建模,如何编写task_input_config参数? #282

Open
didadida321 opened this issue Apr 24, 2024 · 4 comments
Open
Assignees

Comments

@didadida321
Copy link

请问下,我已经编写了sceretflow的python代码,可是怎么转换成kuscia提交的task_input_config格式,在官网没有找到对应的转换文档,或者有通过kuscia进行联邦建模的例子吗?
"task_input_config": "{"sf_datasource_config":{"alice":{"id":"default-data-source"},"bob":{"id":"default-data-source"}},"sf_cluster_desc":{"parties":["alice","bob"],"devices":[{"name":"spu","type":"spu","parties":["alice","bob"],"config":

@Chrisdehe
Copy link
Member

@didadida321 可以参考一下通过kuscia api运行secretflow任务,当中有关于task_input_config介绍

@Chrisdehe Chrisdehe self-assigned this Apr 25, 2024
@didadida321
Copy link
Author

@didadida321 可以参考一下通过kuscia api运行secretflow任务,当中有关于task_input_config介绍

我在这里面没有找到task_input_config的转换,并没有解释如何将python的secreflow代码转换成task_input_config的流程。只是简单提了句:KusciaJob 的算子参数由 taskInputConfig 字段定义,对于不同的算子,算子的参数不同。
对于 secretflow ,请参考:Secretflow 官网
。可从这些信息,并不能获取将python代码转换成task_input_config的方式。请问下有具体转换介绍或者联邦建模的kuscia的demo吗?

@Chrisdehe Chrisdehe assigned UniqueMarvin and unassigned Chrisdehe Apr 25, 2024
@yushiqie
Copy link
Contributor

怎么编写自定义算子的 task_input_config 配置,可以参考一下这个文档呢 https://www.secretflow.org.cn/zh-CN/docs/kuscia/main/getting_started/run_secretflow_cn#id3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants