{"id":19287271,"url":"https://github.com/opendilab/di-orchestrator","last_synced_at":"2025-07-07T01:04:40.822Z","repository":{"id":41085426,"uuid":"382997440","full_name":"opendilab/DI-orchestrator","owner":"opendilab","description":"OpenDILab RL Kubernetes Custom Resource and Operator Lib","archived":false,"fork":false,"pushed_at":"2023-01-09T04:13:09.000Z","size":2801,"stargazers_count":241,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T17:51:19.024Z","etag":null,"topics":["go","k8s","k8s-operator","orchestrator","python","reinforcement-learning"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opendilab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-05T02:57:07.000Z","updated_at":"2025-01-17T18:09:40.000Z","dependencies_parsed_at":"2023-02-08T08:46:53.231Z","dependency_job_id":null,"html_url":"https://github.com/opendilab/DI-orchestrator","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/opendilab/DI-orchestrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendilab%2FDI-orchestrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendilab%2FDI-orchestrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendilab%2FDI-orchestrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendilab%2FDI-orchestrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opendilab","download_url":"https://codeload.github.com/opendilab/DI-orchestrator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendilab%2FDI-orchestrator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996041,"owners_count":23541399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","k8s","k8s-operator","orchestrator","python","reinforcement-learning"],"created_at":"2024-11-09T22:05:41.171Z","updated_at":"2025-07-07T01:04:40.779Z","avatar_url":"https://github.com/opendilab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/opendilab/DI-orchestrator/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/opendilab/DI-orchestrator/actions/workflows/build.yaml) [![Releases](https://github.com/opendilab/DI-orchestrator/actions/workflows/release.yaml/badge.svg)](https://github.com/opendilab/DI-orchestrator/actions/workflows/release.yaml)\n# DI Orchestrator\n\nDI Orchestrator is designed to manage DI ([Decision Intelligence](https://github.com/opendilab/DI-engine/)) jobs using Kubernetes Custom Resource and Operator.\n\n### Prerequisites\n\n- A well-prepared kubernetes cluster. Follow the [instructions](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/) to create a kubernetes cluster, or create a local kubernetes node referring to [kind](https://kind.sigs.k8s.io/docs/user/quick-start/) or [minikube](https://minikube.sigs.k8s.io/docs/start/)\n\n### Install DI Orchestrator\n\nDI Orchestrator consists of two components: `di-operator` and `di-server`. Install them with the following command.\n\n```bash\nkubectl create -f ./config/di-manager.yaml\n```\n\n`di-operator` and `di-server` will be installed in `di-system` namespace.\n\n```bash\n$ kubectl get pod -n di-system\nNAME                               READY   STATUS    RESTARTS   AGE\ndi-operator-57cc65d5c9-5vnvn       1/1     Running   0          59s\ndi-server-7b86ff8df4-jfgmp         1/1     Running   0          59s\n```\n\n### Submit DIJob\n\n```bash\n# submit DIJob\n$ kubectl create -f config/samples/atari-dqn-tasks.yaml\n\n# get pod and you will see coordinator is created by di-operator\n# a few seconds later, you will see collectors and learners created by di-server\n$ kubectl get pod\nNAME                         READY   STATUS    RESTARTS      AGE\njob-with-tasks-collector-0   1/1     Running   0             2s\njob-with-tasks-collector-1   1/1     Running   0             2s\njob-with-tasks-evaluator-0   1/1     Running   0             2s\njob-with-tasks-learner-0     1/1     Running   0             2s\n\n# get logs of tasks\n$ kubectl logs job-with-tasks-evaluator-0 \n/opt/conda/lib/python3.8/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /opt/conda/conda-bld/pytorch_1607370172916/work/c10/cuda/CUDAFunctions.cpp:100.)\n  return torch._C._cuda_getDeviceCount() \u003e 0\n[06-28 08:25:29] INFO     Evaluator running on node 1                                                                                                           func.py:58\nA.L.E: Arcade Learning Environment (version +a54a328)\n[Powered by Stella]\n/opt/conda/lib/python3.8/site-packages/ale_py/roms/__init__.py:44: UserWarning: ale_py.roms contains unsupported ROMs: /opt/conda/lib/python3.8/site-packages/AutoROM/roms/{joust.bin, warlords.bin, maze_craze.bin, combat.bin}\n  warnings.warn(\n[06-28 08:25:46] INFO     Evaluation: Train Iter(0)       Env Step(0)     Eval Reward(-21.000)                                                                  func.py:58\n[06-28 08:25:46] WARNING  You have not installed memcache package! DI-engine has changed to some alternatives. \n\n$ kubectl logs job-with-tasks-learner-0\n/opt/conda/lib/python3.8/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /opt/conda/conda-bld/pytorch_1607370172916/work/c10/cuda/CUDAFunctions.cpp:100.)\n  return torch._C._cuda_getDeviceCount() \u003e 0\n[06-28 08:25:27] INFO     Learner running on node 0\n```\n\n## User Guide\n\nRefers to [user-guide](./docs/architecture.md). For Chinese version, please refer to [中文手册](./docs/architecture-cn.md)\n\n## Contributing\n\nRefers to [developer-guide](./docs/developer-guide.md).\n\nContact us throw \u003copendilab.contact@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendilab%2Fdi-orchestrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendilab%2Fdi-orchestrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendilab%2Fdi-orchestrator/lists"}