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

Add ecp inference #176

Open
wants to merge 56 commits into
base: releases
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ba3b075
add inference api
Nov 21, 2024
47314eb
add inference api
Nov 21, 2024
b47e9eb
add inference api
Nov 21, 2024
503cb9b
update port
Nov 21, 2024
3f07432
update port
Nov 21, 2024
06623df
add env and cmd parameter
Nov 22, 2024
ee5293a
add multi-port service
Nov 22, 2024
f371ca4
add multi-port service
Nov 22, 2024
be23bd7
add check gpu resource
Nov 25, 2024
70b5db8
add check gpu resource
Nov 25, 2024
86584f6
add check gpu resource
Nov 25, 2024
a243a43
add sign and white list
Nov 25, 2024
da1b98f
add sign and white list
Nov 25, 2024
a9df7ce
add sign and white list
Nov 25, 2024
9b0653d
add sign and white list
Nov 25, 2024
cfbba6d
add sign and white list
Nov 25, 2024
adcad8c
update config.toml
Nov 25, 2024
3d72955
add log
Nov 26, 2024
d0ef3bb
add log
Nov 26, 2024
d2abbe6
add log
Nov 26, 2024
150f286
delete log
Nov 26, 2024
cf02c2e
delete log
Nov 26, 2024
2dff098
delete log
Nov 26, 2024
39c8f1d
add logs api
Nov 26, 2024
632f765
add logs api
Nov 27, 2024
eca0b38
update check node port
Nov 28, 2024
7c24fb6
add log
Nov 28, 2024
7eecc19
add log
Nov 28, 2024
907c329
add log
Nov 28, 2024
ba82397
fix fcp allocate gpu bug
Nov 28, 2024
17b3aaa
fix fcp allocate gpu bug
Nov 28, 2024
c0f377d
fix fcp allocate gpu bug
Nov 28, 2024
4acdec6
add log
Nov 28, 2024
eaac92c
add log
Nov 28, 2024
3d8b282
ecp support use dockerfile to deploy service
Nov 28, 2024
6731078
update deploy api
Nov 29, 2024
76c07b3
update deploy api
Nov 29, 2024
2d81c4d
update deploy api
Nov 29, 2024
280ae81
add log
Nov 29, 2024
f5a674f
add log
Nov 29, 2024
7fae59f
add log
Nov 29, 2024
2518efb
add log
Nov 29, 2024
1fa8bf7
update task cmd
Nov 29, 2024
144dc8d
update log
Nov 29, 2024
da48164
update to match gpu resource
Nov 29, 2024
13bbe06
update to match gpu resource
Nov 29, 2024
1bb98b6
update to match gpu resource
Nov 29, 2024
b58e897
add build log path
Dec 2, 2024
7ebb873
add ubi-0 cmd
Dec 2, 2024
e9ec11a
add ubi-0 cmd
Dec 2, 2024
79a9d18
add log url
Dec 2, 2024
796806b
add log url
Dec 2, 2024
3fdf06d
add log
Dec 3, 2024
9107fb2
add log
Dec 3, 2024
7e61dd2
update ports
Dec 3, 2024
89edd6a
add check cmd
Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions build/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"sequencer_contract": "0xE0a88F1fA56D8a8D73E9bb9Fc03506439cb386Bd",
"edge_task_payment": "0xa07829335024918c0626968c5e93910f90de1dd7",
"edge_task_payment_created": 2569302,
"edge_url": "https://edge-api.swanchain.io/v1"
"edge_url": "https://edge-api.swanchain.io/v1",

"token_ubi_zero_contract": "0x39cBBeaF88a91404618d45a16e0977Adab4d1Af1",
"orchestrator_collateral_ubi_zero_contract": "0x643A820060c78D9122081aafF0C039b070937558",
"zk_collateral_ubi_zero_contract": "0x7A099B665e760BCCF3Aa0cBbb66C8da47F13C03d"
}
},
{
Expand All @@ -36,7 +40,10 @@
"sequencer_contract": "0x3ec53c3db17a9b7a50967100f9e0b9e1c910c7d4",
"edge_task_payment": "0x114fd9a28fbbf687e4232e54d73e5449628d3219",
"edge_task_payment_created": 9084245,
"edge_url": "https://edge-testnet.swanchain.io/v1"
"edge_url": "https://edge-testnet.swanchain.io/v1",
"orchestrator_collateral_ubi_zero_contract": "0xd5716082058871755ca9202838e35f51dFa816D2",
"zk_collateral_ubi_zero_contract": "0x9584eC8C86A32963Cb36B135c2e58837e2e46d4b"

}
}

Expand Down
33 changes: 18 additions & 15 deletions build/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const UBITaskImageIntelGpu = "filswan/ubi-worker-gpu-intel:latest"
const UBITaskImageAmdCpu = "filswan/ubi-worker-cpu-amd:latest"
const UBITaskImageAmdGpu = "filswan/ubi-worker-gpu-amd:latest"
const UBIResourceExporterDockerImage = "filswan/resource-exporter:v11.3.0"
const TraefikServerDockerImage = "traefik:v2.10"

func UserVersion() string {
return BuildVersion + "+" + NetWorkTag + CurrentCommit
Expand All @@ -37,20 +38,22 @@ func LoadParam() []NetworkConfig {
type NetworkConfig struct {
Network string `json:"network"`
Config struct {
SequencerUrl string `json:"sequencer_url"`
ZkEnginePk string `json:"zk_engine_pk"`
OrchestratorPk string `json:"orchestrator_pk"`
ChainRpc string `json:"chain_rpc"`
SwanTokenContract string `json:"swan_token_contract"`
OrchestratorCollateralContract string `json:"orchestrator_collateral_contract"`
JobManagerContract string `json:"job_manager_contract"`
JobManagerContractCreated uint64 `json:"job_manager_contract_created"`
RegisterCpContract string `json:"register_cp_contract"`
ZkCollateralContract string `json:"zk_collateral_contract"`
RegisterTaskContract string `json:"register_task_contract"`
SequencerContract string `json:"sequencer_contract"`
EdgeUrl string `json:"edge_url"`
EdgeTaskPayment string `json:"edge_task_payment"`
EdgeTaskPaymentCreated int64 `json:"edge_task_payment_created"`
SequencerUrl string `json:"sequencer_url"`
ZkEnginePk string `json:"zk_engine_pk"`
OrchestratorPk string `json:"orchestrator_pk"`
ChainRpc string `json:"chain_rpc"`
SwanTokenContract string `json:"swan_token_contract"`
OrchestratorCollateralContract string `json:"orchestrator_collateral_contract"`
OrchestratorCollateralUbiZeroContract string `json:"orchestrator_collateral_ubi_zero_contract"`
JobManagerContract string `json:"job_manager_contract"`
JobManagerContractCreated uint64 `json:"job_manager_contract_created"`
RegisterCpContract string `json:"register_cp_contract"`
ZkCollateralContract string `json:"zk_collateral_contract"`
ZkCollateralUbiZeroContract string `json:"zk_collateral_ubi_zero_contract"`
RegisterTaskContract string `json:"register_task_contract"`
SequencerContract string `json:"sequencer_contract"`
EdgeUrl string `json:"edge_url"`
EdgeTaskPayment string `json:"edge_task_payment"`
EdgeTaskPaymentCreated int64 `json:"edge_task_payment_created"`
} `json:"config"`
}
1 change: 1 addition & 0 deletions cmd/computing-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func main() {
contractCmd,
priceCmd,
networkCmd,
ubiZeroCmd,
},
Before: func(c *cli.Context) error {
cpRepoPath, err := homedir.Expand(c.String(FlagRepo.Name))
Expand Down
2 changes: 1 addition & 1 deletion cmd/computing-provider/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $NETWORK_SET
apiVersion: projectcalico.org/v3
kind: GlobalNetworkPolicy
metadata:
name: $G_SUBNET_NAME
name: $G_NETWORK_NAME
spec:
order: 201
namespaceSelector: has(projectcalico.org/name) && projectcalico.org/name not in {"kube-system", "calico-system", "calico-apiserver","ingress-nginx"}
Expand Down
3 changes: 2 additions & 1 deletion cmd/computing-provider/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ var generateNetworkCmd = &cli.Command{
filePath := filepath.Join(cpRepoPath, "network-policy.yaml")
if _, err := os.Stat(filePath); err != nil {
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$NETWORK_SET", string(networkSetBytes))
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_SUBNET_NAME", models.NetworkGlobalSubnet)
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_NETWORK_NAME", models.NetworkGlobalSubnet)
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_SUBNET_NAME", models.NetworkNetset)
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_OUT_NAME", models.NetworkGlobalOutAccess)
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_IN_NAME", models.NetworkGlobalInAccess)
networkPolicyContent = strings.ReplaceAll(networkPolicyContent, "$G_NS_NAME", models.NetworkGlobalNamespace)
Expand Down
Loading