-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from FederatedAI/dev-2.0-beta
v2.0.0-beta
- Loading branch information
Showing
306 changed files
with
18,792 additions
and
4,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[request_definition] | ||
r = sub, obj, act | ||
|
||
[policy_definition] | ||
p = sub, obj, act | ||
|
||
[role_definition] | ||
g = _, _ | ||
|
||
[policy_effect] | ||
e = some(where (p.eft == allow)) | ||
|
||
[matchers] | ||
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,27 @@ | ||
# resource | ||
total_cores_overweight_percent: 1 # 1 means no overweight | ||
total_memory_overweight_percent: 1 # 1 means no overweight | ||
task_parallelism: 1 | ||
task_cores: 4 | ||
task_memory: 0 # mb | ||
max_cores_percent_per_job: 1 # 1 means total | ||
|
||
# scheduling | ||
job_cores: 4 | ||
computing_partitions: 8 | ||
task_run: | ||
spark: | ||
num-executors: 2 | ||
executor-cores: 2 | ||
eggroll: | ||
eggroll.session.processors.per.node: 4 | ||
standalone: | ||
cores: 4 | ||
job_timeout: 259200 # s | ||
remote_request_timeout: 30000 # ms | ||
federated_command_trys: 3 | ||
end_status_job_scheduling_time_limit: 300000 # ms | ||
end_status_job_scheduling_updates: 1 | ||
auto_retries: 1 | ||
auto_retry_delay: 1 #seconds | ||
# It can also be specified in the job configuration using the federated_status_collect_type parameter | ||
federated_status_collect_type: PUSH | ||
detect_connect_max_retry_count: 3 | ||
detect_connect_long_retry_count: 2 | ||
|
||
# upload | ||
upload_block_max_bytes: 104857600 # bytes | ||
|
||
#component output | ||
output_data_summary_count_limit: 100 | ||
|
||
task_default_conf: | ||
logger: | ||
type: flow | ||
metadata: | ||
level: DEBUG | ||
debug_mode: true | ||
device: | ||
type: CPU | ||
output: | ||
data: | ||
type: directory | ||
format: dataframe | ||
model: | ||
type: directory | ||
format: json | ||
metric: | ||
type: directory | ||
format: json | ||
auto_retries: 0 | ||
sync_type: callback # poll or callback | ||
task_logger: | ||
type: flow | ||
metadata: | ||
level: DEBUG | ||
debug_mode: true | ||
task_device: | ||
type: CPU | ||
launcher: | ||
deepspeed: | ||
timeout: 21600 # s | ||
world_size: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[request_definition] | ||
r = party_id, type, value | ||
|
||
[policy_definition] | ||
p = party_id, type, value | ||
|
||
[policy_effect] | ||
e = some(where (p.eft == allow)) | ||
|
||
[matchers] | ||
m = r.party_id == p.party_id && r.type == p.type && r.value == p.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.