Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
training-operator | training-operator-master/.github/stale.yml | # Configuration for stale probot
# https://probot.github.io/apps/stale/
#
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- lifecycle/... | 763 | 37.2 | 77 | yml |
training-operator | training-operator-master/.github/workflows/build-and-publish-images.yaml | # Reusable workflows for publishing Training Operator images.
name: Build And Publish Images
on:
workflow_call:
inputs:
component-name:
required: true
type: string
platforms:
required: true
type: string
dockerfile:
required: true
type: string
... | 2,202 | 35.114754 | 165 | yaml |
training-operator | training-operator-master/.github/workflows/integration-tests.yaml | name: integration test
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-test:
runs-on: ubuntu-latest
# Almost similar to the following:
#
# ```yaml
# strategy:
# fail-fast: false
# matrix:
# kube... | 3,761 | 32.891892 | 111 | yaml |
training-operator | training-operator-master/.github/workflows/publish-conformance-images.yaml | name: Publish Training Operator Conformance Test Images
on:
- push
- pull_request
jobs:
conformance-test:
name: Publish Image
uses: ./.github/workflows/build-and-publish-images.yaml
with:
component-name: ${{ matrix.component-name }}
platforms: linux/amd64,linux/arm64,linux/ppc64le
... | 669 | 25.8 | 59 | yaml |
training-operator | training-operator-master/.github/workflows/publish-core-images.yaml | name: Publish Training Operator Core Images
on:
- push
- pull_request
jobs:
core:
name: Publish Image
uses: ./.github/workflows/build-and-publish-images.yaml
with:
component-name: ${{ matrix.component-name }}
platforms: linux/amd64,linux/arm64,linux/ppc64le
dockerfile: ${{ matrix.d... | 641 | 24.68 | 65 | yaml |
training-operator | training-operator-master/.github/workflows/publish-example-images.yaml | name: Publish Training Operator Example Images
on:
- push
- pull_request
jobs:
example:
name: Publish Image
uses: ./.github/workflows/build-and-publish-images.yaml
with:
component-name: ${{ matrix.component-name }}
# TODO (tenzen-y): Support linux/arm64 platform
platforms: linux/am... | 2,368 | 41.303571 | 90 | yaml |
training-operator | training-operator-master/.github/workflows/test-go.yaml | name: Go generate Test
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/training-operator
steps:
- name: Check out code
... | 1,659 | 31.54902 | 112 | yaml |
training-operator | training-operator-master/.github/workflows/unittests.yaml | name: Go Test
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/training-operator
strategy:
fail-fast: false
matrix:
... | 1,039 | 23.761905 | 93 | yaml |
training-operator | training-operator-master/.github/workflows/template-publish-image/action.yaml | # Composite action to publish Training Operator images.
name: Build And Publish Container Images
description: Build Multiplatform Supporting Container Images
inputs:
image:
required: true
description: image tag
dockerfile:
required: true
description: path for Dockerfile
platforms:
required: t... | 1,193 | 23.367347 | 60 | yaml |
training-operator | training-operator-master/cmd/training-operator.v1/main.go | /*
Copyright 2021.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed un... | 6,750 | 39.42515 | 167 | go |
training-operator | training-operator-master/docs/adopters.md | # Adopters of Kubeflow Training Operator
This page contains a list of organizations who are using Kubeflow Training Operator. If you'd like to be included here, please send a pull request which modifies this file. Please keep the list in alphabetical order.
| Organization | Contact |
| ------------ | ------- |
| [Aku... | 2,297 | 84.111111 | 216 | md |
training-operator | training-operator-master/docs/quick-start-v1.md | # Testing v1
TFJob is currently in v1. The quick start shows an example of TFJob.
For more details please refer to [developer_guide.md](development/developer_guide.md).
## Create a TFJob
Please see the [example](../examples/tensorflow/dist-mnist/README.md) to create a TFJob.
## Monitor your job
To get the status o... | 2,085 | 24.13253 | 88 | md |
training-operator | training-operator-master/docs/roadmap.md | # Roadmap
## 2022
* Release training-operator v1.4 to be included in Kubeflow v1.5 release.
* Migrate v2 MPI operator to unified operator.
* Migrate PaddlePaddle operator to unified operator.
* Support elastic training for additional frameworks besides PyTorch.
* Support different gang scheduling definitions.
* Impro... | 3,128 | 53.894737 | 339 | md |
training-operator | training-operator-master/docs/api/autogen/config.yaml | render:
kubernetesVersion: "1.22"
| 36 | 11.333333 | 27 | yaml |
training-operator | training-operator-master/docs/design/tf_job_design_doc.md | # Design Doc TFJob K8s CRD
# Objective
The goal is to make it easy to run TensorFlow training (and distributed training in particular) on Kubernetes (K8s). I propose doing this by creating a K8s custom resource descriptor (CRD) and associated controller. The CRD takes care of managing the K8s resources needed to ru... | 8,999 | 75.271186 | 798 | md |
training-operator | training-operator-master/docs/development/developer_guide.md | # Developer Guide
Kubeflow Training Operator is currently at v1.
## Requirements
- [Go](https://golang.org/) (1.17 or later)
## Building the operator
Create a symbolic link inside your GOPATH to the location you checked out the code
```sh
mkdir -p ${go env GOPATH}/src/github.com/kubeflow
ln -sf ${GIT_TRAINING} ${... | 3,468 | 26.101563 | 227 | md |
training-operator | training-operator-master/docs/monitoring/README.md | # Prometheus Monitoring for TFJob
## Available Metrics
Currently available metrics to monitor are listed below.
### Metrics for Each Component Container for TFJob
Component Containers:
- tf-operator
- tf-chief
- tf-ps
- tf-worker
#### Each Container Reports on its:
Use prometheus graph to run the following examp... | 2,357 | 21.037383 | 328 | md |
training-operator | training-operator-master/docs/release/release.py | from github import Github
import re
class ChangelogGenerator:
def __init__(self, github_repo):
# Replace <your_github_token> with your Github Token
self._github = Github('<your_github_token>')
self._github_repo = self._github.get_repo(github_repo)
def generate(self, pr_id):
pr... | 1,676 | 37.113636 | 90 | py |
training-operator | training-operator-master/docs/release/releasing.md | # Releasing the training operator
## Prerequisite
1. Permissions
- You need to be a member of release-team@kubeflow.org.
- You need write permissions on the repository to create a release tag/branch.
2. Prepare your Github Token
3. Install Github python dependencies to generate changlog
```
pip install ... | 3,684 | 34.776699 | 127 | md |
training-operator | training-operator-master/docs/testing/e2e_debugging.md | # How to debug an E2E test for Kubeflow Training Operator
TODO (andreyvelich): This doc is outdated. Currently, E2Es are located here:
[`sdk/python/test/e2e`](../../sdk/python/test/e2e)
[E2E Testing](./e2e_testing.md) gives an overview of writing e2e tests. This guidance concentrates more on the e2e failure debugging... | 5,755 | 45.796748 | 243 | md |
training-operator | training-operator-master/docs/testing/e2e_testing.md | # How to Write an E2E Test for Kubeflow Training Operator
TODO (andreyvelich): This doc is outdated. Currently, E2Es are located here:
[`sdk/python/test/e2e`](../../sdk/python/test/e2e)
The E2E tests for Kubeflow Training operator are implemented as Argo workflows. For more background and details
about Argo (not requ... | 3,574 | 37.858696 | 136 | md |
training-operator | training-operator-master/examples/mpi/tensorflow-mnist-elastic.yaml | apiVersion: kubeflow.org/v1
kind: MPIJob
metadata:
name: tensorflow-mnist-elastic
spec:
slotsPerWorker: 1
cleanPodPolicy: Running
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: horovod/horovod:0.20.0-tf2.3.0-torch1.6.0-mxnet1.5.0-py3.7-cpu... | 1,080 | 23.568182 | 81 | yaml |
training-operator | training-operator-master/examples/mpi/tensorflow-mnist.yaml | apiVersion: kubeflow.org/v1
kind: MPIJob
metadata:
name: tensorflow-mnist
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: horovod/horovod:0.20.0-tf2.3.0-torch1.6.0-mxnet1.5.0-py... | 1,204 | 21.314815 | 81 | yaml |
training-operator | training-operator-master/examples/mxnet/mxjob_dist_v1.yaml | apiVersion: "kubeflow.org/v1"
kind: "MXJob"
metadata:
name: "mxnet-job"
spec:
jobMode: MXTrain
mxReplicaSpecs:
Scheduler:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: mxnet
image: mxjob/mxnet:gpu
ports:
... | 1,194 | 24.978261 | 168 | yaml |
training-operator | training-operator-master/examples/mxnet/train/byteps_dist_gpu_v1.yaml | apiVersion: "kubeflow.org/v1"
kind: "MXJob"
metadata:
name: "byteps-mxnet-job"
spec:
jobMode: MXTrain
runPolicy:
cleanPodPolicy: Running
mxReplicaSpecs:
Scheduler:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: mxnet
ima... | 1,202 | 24.0625 | 130 | yaml |
training-operator | training-operator-master/examples/mxnet/train/mx_job_dist_gpu_v1.yaml | apiVersion: "kubeflow.org/v1"
kind: "MXJob"
metadata:
name: "mxnet-job"
spec:
jobMode: MXTrain
mxReplicaSpecs:
Scheduler:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: mxnet
image: mxjob/mxnet:gpu
Server:
replicas: ... | 924 | 24 | 168 | yaml |
training-operator | training-operator-master/examples/mxnet/tune/README.md | [mx_job_tune_gpu_v1.yaml](mx_job_tune_gpu_v1.yaml) will pull sample image and run it.
In the sample image, [Apache TVM](https://tvm.apache.org/) and [Apache MXNet](https://mxnet.apache.org/) are pre-installed, you can check out the [Dockerfile](Dockerfile) to get some information.
There two customized scripts in the ... | 606 | 74.875 | 195 | md |
training-operator | training-operator-master/examples/mxnet/tune/auto-tuning.py | import os
import sys
import numpy as np
import argparse
import nnvm.testing
import nnvm.compiler
import tvm
from tvm import autotvm
from tvm.autotvm.tuner import XGBTuner, GATuner, RandomTuner, GridSearchTuner
from tvm.contrib.util import tempdir
import tvm.contrib.graph_runtime as runtime
#from mxnet.gluon.model_zoo... | 7,450 | 37.015306 | 105 | py |
training-operator | training-operator-master/examples/mxnet/tune/mx_job_tune_gpu_v1.yaml | apiVersion: "kubeflow.org/v1"
kind: "MXJob"
metadata:
name: "auto-tuning-job"
spec:
jobMode: MXTune
mxReplicaSpecs:
TunerTracker:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: mxnet
image: mxjob/auto-tuning:gpu
comman... | 999 | 22.809524 | 48 | yaml |
training-operator | training-operator-master/examples/mxnet/tune/start-job.py | # Befor running this script, make sure tvm is install in your cluster
import os
import time
import json
if __name__ == '__main__':
mx_config = json.loads(os.environ.get('MX_CONFIG') or '{}')
cluster_config = mx_config.get('cluster', {})
labels_config = mx_config.get('labels', {})
task_config = mx_conf... | 1,470 | 37.710526 | 155 | py |
training-operator | training-operator-master/examples/paddlepaddle/simple-cpu.yaml | apiVersion: "kubeflow.org/v1"
kind: PaddleJob
metadata:
name: paddle-simple-cpu
namespace: kubeflow
spec:
paddleReplicaSpecs:
Worker:
replicas: 2
restartPolicy: OnFailure
template:
spec:
containers:
- name: paddle
image: registry.baidubce.com/paddl... | 642 | 23.730769 | 75 | yaml |
training-operator | training-operator-master/examples/paddlepaddle/simple-gpu.yaml | apiVersion: "kubeflow.org/v1"
kind: PaddleJob
metadata:
name: paddle-simple-gpu
namespace: kubeflow
spec:
paddleReplicaSpecs:
Worker:
replicas: 2
restartPolicy: OnFailure
template:
spec:
containers:
- name: paddle
image: registry.baidubce.com/paddl... | 957 | 24.891892 | 100 | yaml |
training-operator | training-operator-master/examples/pytorch/README.md | ## Installation & deployment tips
1. You need to configure your node to utilize GPU. In order this can be done the following way:
* Install [nvidia-docker2](https://github.com/NVIDIA/nvidia-docker)
* Connect to your MasterNode and set nvidia as the default run in `/etc/docker/daemon.json`:
```
... | 1,651 | 52.290323 | 394 | md |
training-operator | training-operator-master/examples/pytorch/simple.yaml | apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: pytorch-simple
namespace: kubeflow
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
spec:
containers:
- name: pytorch
image: docker.io/kubeflowkatib/pyt... | 899 | 25.470588 | 74 | yaml |
training-operator | training-operator-master/examples/pytorch/elastic/etcd.yaml | apiVersion: v1
kind: Service
metadata:
name: etcd-client
spec:
ports:
- name: etcd-client-port
port: 2379
protocol: TCP
targetPort: 2379
selector:
app: etcd
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: etcd
etcd_node: etcd-server
name: etcd-server
spec:
containers:... | 1,424 | 18.256757 | 45 | yaml |
training-operator | training-operator-master/examples/pytorch/elastic/echo/echo.py | #!/usr/bin/env python3
import io
import os
import pprint
import sys
import time
import torch.distributed as dist
if __name__ == "__main__":
env_dict = {
k: os.environ[k]
for k in (
"LOCAL_RANK",
"RANK",
"GROUP_RANK",
"WORLD_SIZE",
"MAST... | 1,114 | 23.23913 | 86 | py |
training-operator | training-operator-master/examples/pytorch/elastic/echo/echo.yaml | apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: elastic-example-echo
spec:
elasticPolicy:
rdzvBackend: c10d
minReplicas: 1
maxReplicas: 2
maxRestarts: 100
pytorchReplicaSpecs:
Worker:
replicas: 2
template:
spec:
containers:
- name: pytor... | 688 | 21.966667 | 65 | yaml |
training-operator | training-operator-master/examples/pytorch/elastic/imagenet/imagenet.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
r"""
Source: `pytorch imagenet example <https://github.com/pytorch/examples/blob/master/i... | 17,703 | 29.471601 | 114 | py |
training-operator | training-operator-master/examples/pytorch/elastic/imagenet/imagenet.yaml | apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: elastic-example-imagenet
spec:
elasticPolicy:
rdzvBackend: c10d
minReplicas: 1
maxReplicas: 3
maxRestarts: 100
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
... | 1,132 | 24.75 | 69 | yaml |
training-operator | training-operator-master/examples/pytorch/mnist/README.md | ### Distributed MNIST Examples
This folder contains an example where mnist is trained. This example is also used for e2e testing.
The python script used to train mnist with pytorch takes in several arguments that can be used
to switch the distributed backends. The manifests to launch the distributed training of this ... | 1,232 | 43.035714 | 344 | md |
training-operator | training-operator-master/examples/pytorch/mnist/mnist.py | from __future__ import print_function
import argparse
import os
from tensorboardX import SummaryWriter
from torchvision import datasets, transforms
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
WORLD_SIZE = int(os.environ.get('WORLD_SI... | 6,130 | 39.602649 | 95 | py |
training-operator | training-operator-master/examples/pytorch/mnist/v1/pytorch_job_mnist_gloo.yaml | apiVersion: "kubeflow.org/v1"
kind: "PyTorchJob"
metadata:
name: "pytorch-dist-mnist-gloo"
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:... | 1,099 | 27.205128 | 68 | yaml |
training-operator | training-operator-master/examples/pytorch/mnist/v1/pytorch_job_mnist_mpi.yaml | apiVersion: "kubeflow.org/v1"
kind: "PyTorchJob"
metadata:
name: "pytorch-dist-mnist-mpi"
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
... | 1,091 | 27 | 65 | yaml |
training-operator | training-operator-master/examples/pytorch/mnist/v1/pytorch_job_mnist_nccl.yaml | apiVersion: "kubeflow.org/v1"
kind: "PyTorchJob"
metadata:
name: "pytorch-dist-mnist-nccl"
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:... | 971 | 25.27027 | 68 | yaml |
training-operator | training-operator-master/examples/pytorch/smoke-dist/README.md | ### Distributed send/recv e2e test
This folder containers Dockerfile and distributed send/recv test.
**Build Image**
The default image name and tag is `kubeflow/pytorch-dist-sendrecv-test:1.0`.
```shell
docker build -f Dockerfile -t kubeflow/pytorch-dist-sendrecv-test:1.0 ./
```
**Create the PyTorch job**
```
ku... | 368 | 19.5 | 76 | md |
training-operator | training-operator-master/examples/pytorch/smoke-dist/dist_sendrecv.py | import logging
import os
import json
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from math import ceil
from random import Random
from torch.autograd import Variable
from torchvision import datasets, transforms
def run():
""" Simpl... | 1,756 | 27.33871 | 74 | py |
training-operator | training-operator-master/examples/pytorch/smoke-dist/pytorch_job_sendrecv.yaml | apiVersion: "kubeflow.org/v1"
kind: "PyTorchJob"
metadata:
name: "pytorch-dist-basic-sendrecv"
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
spec:
containers:
- name: pytorch
image: kubeflow/pytorch-dist-sendrecv-t... | 536 | 22.347826 | 63 | yaml |
training-operator | training-operator-master/examples/tensorflow/simple.yaml | apiVersion: "kubeflow.org/v1"
kind: TFJob
metadata:
name: tfjob-simple
namespace: kubeflow
spec:
tfReplicaSpecs:
Worker:
replicas: 2
restartPolicy: OnFailure
template:
spec:
containers:
- name: tensorflow
image: kubeflow/tf-mnist-with-summaries:lat... | 432 | 21.789474 | 60 | yaml |
training-operator | training-operator-master/examples/tensorflow/dist-mnist/README.md | ### Distributed mnist model for e2e test
This folder containers Dockerfile and distributed mnist model for e2e test.
**Build Image**
The default image name and tag is `kubeflow/tf-dist-mnist-test:1.0`.
To build this image on x86_64:
```shell
docker build -f Dockerfile -t kubeflow/tf-dist-mnist-test:1.0 ./
```
To bu... | 593 | 24.826087 | 87 | md |
training-operator | training-operator-master/examples/tensorflow/dist-mnist/dist_mnist.py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 11,635 | 37.276316 | 80 | py |
training-operator | training-operator-master/examples/tensorflow/dist-mnist/tf_job_mnist.yaml | apiVersion: "kubeflow.org/v1"
kind: "TFJob"
metadata:
name: "dist-mnist-for-e2e-test"
spec:
tfReplicaSpecs:
PS:
replicas: 2
restartPolicy: Never
template:
spec:
containers:
- name: tensorflow
image: kubeflow/tf-dist-mnist-test:latest
Worker:
... | 500 | 20.782609 | 55 | yaml |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/estimator-API/README.md | # Distributed Training on Kubeflow
This is an example of running distributed training on Kubeflow. The source code is taken from
TensorFlow team's example [here](https://github.com/tensorflow/ecosystem/tree/master/distribution_strategy).
The directory contains the following files:
* Dockerfile: Builds the independent... | 794 | 33.565217 | 120 | md |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/estimator-API/distributed_tfjob.yaml | apiVersion: "kubeflow.org/v1"
kind: "TFJob"
metadata:
name: "distributed-training"
spec:
runPolicy:
cleanPodPolicy: None
tfReplicaSpecs:
Worker:
replicas: 3
restartPolicy: Never
template:
metadata:
annotations:
scheduling.k8s.io/group-name: "distributed-trai... | 452 | 21.65 | 64 | yaml |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/estimator-API/keras_model_to_estimator.py | # Copyright 2018 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 2,835 | 34.898734 | 80 | py |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/keras-API/README.md | # Multi-worker training with Keras
This directory contains a example for running multi-worker distributed training
using Tensorflow 2.1 keras API on Kubeflow. For more information about the
source code, please see TensorFlow tutorials [here](https://www.tensorflow.org/tutorials/distribute/keras) and [here](https://w... | 1,074 | 34.833333 | 190 | md |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/keras-API/multi_worker_strategy-with-keras.py | # Copyright 2020 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 5,491 | 33.111801 | 148 | py |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/keras-API/multi_worker_tfjob.yaml | apiVersion: kubeflow.org/v1
kind: TFJob
metadata:
name: multi-worker
spec:
runPolicy:
cleanPodPolicy: None
tfReplicaSpecs:
Worker:
replicas: 2
restartPolicy: Never
template:
spec:
containers:
- name: tensorflow
image: kubeflow/tf-multi-worker-s... | 645 | 22.925926 | 61 | yaml |
training-operator | training-operator-master/examples/tensorflow/distribution_strategy/keras-API/pvc.yaml | apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: strategy-volume
labels:
app: strategy-volume
spec:
storageClassName: "Your storageClassName"
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
| 242 | 16.357143 | 43 | yaml |
training-operator | training-operator-master/examples/tensorflow/mnist_with_summaries/README.md | ### Simple mnist example with persistent volume
This is a simple example using an MNIST model that outputs a TF summary.
The example also mounts a persistent volume for output, making it suitable
for integrating with other components like Katib.
The source code is borrowed from TensorFlow tutorials [here](https://git... | 883 | 41.095238 | 175 | md |
training-operator | training-operator-master/examples/tensorflow/mnist_with_summaries/mnist_with_summaries.py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 8,627 | 39.507042 | 82 | py |
training-operator | training-operator-master/examples/tensorflow/mnist_with_summaries/tf_job_mnist.yaml | apiVersion: "kubeflow.org/v1"
kind: "TFJob"
metadata:
name: "mnist"
namespace: kubeflow
spec:
runPolicy:
cleanPodPolicy: None
tfReplicaSpecs:
Worker:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: tensorflow
image: kub... | 819 | 25.451613 | 60 | yaml |
training-operator | training-operator-master/examples/tensorflow/mnist_with_summaries/tfevent-volume/tfevent-pv.yaml | apiVersion: v1
kind: PersistentVolume
metadata:
name: tfevent-volume
labels:
type: local
app: tfjob
spec:
capacity:
storage: 10Gi
storageClassName: standard
accessModes:
- ReadWriteMany
hostPath:
path: /tmp/data
| 246 | 14.4375 | 30 | yaml |
training-operator | training-operator-master/examples/tensorflow/mnist_with_summaries/tfevent-volume/tfevent-pvc.yaml | apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tfevent-volume
namespace: kubeflow
labels:
type: local
app: tfjob
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
| 228 | 14.266667 | 27 | yaml |
training-operator | training-operator-master/examples/tensorflow/tf_sample/setup.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 901 | 32.407407 | 74 | py |
training-operator | training-operator-master/examples/tensorflow/tf_sample/tf_smoke.py | """Train a simple TF program to verify we can execute ops.
The program does a simple matrix multiplication.
Only the master assigns ops to devices/workers.
The master will assign ops to every task in the cluster. This way we can verify
that distributed training is working by executing ops on all devices.
"""
import ... | 4,475 | 29.243243 | 86 | py |
training-operator | training-operator-master/examples/xgboost/xgboostjob.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-train
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: xgboost
image: docker.io/merlintang/xgboost-dist-iris:1.1
... | 1,245 | 27.976744 | 74 | yaml |
training-operator | training-operator-master/examples/xgboost/lightgbm-dist/README.md | ### Distributed Lightgbm Job train
This folder containers Dockerfile and Python scripts to run a distributed Lightgbm training using the XGBoost operator.
The code is based in this [example](https://github.com/microsoft/LightGBM/tree/master/examples/parallel_learning) in the official github repository of the library.
... | 7,798 | 36.138095 | 1,755 | md |
training-operator | training-operator-master/examples/xgboost/lightgbm-dist/main.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 2,583 | 30.901235 | 75 | py |
training-operator | training-operator-master/examples/xgboost/lightgbm-dist/train.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 913 | 32.851852 | 74 | py |
training-operator | training-operator-master/examples/xgboost/lightgbm-dist/utils.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 2,940 | 30.967391 | 86 | py |
training-operator | training-operator-master/examples/xgboost/lightgbm-dist/xgboostjob_v1_lightgbm_dist_training.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: lightgbm-dist-train-test
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: xgboost
image: kubeflow/lightgbm-dist-py-test:1.0
ports:... | 2,383 | 30.368421 | 53 | yaml |
training-operator | training-operator-master/examples/xgboost/smoke-dist/README.md | ### Distributed send/recv e2e test for xgboost rabit
This folder containers Dockerfile and distributed send/recv test.
**Build Image**
The default image name and tag is `kubeflow/xgboost-dist-rabit-test:1.2`.
You can build the image based on your requirement.
```shell
docker build -f Dockerfile -t kubeflow/xgboost... | 2,656 | 25.57 | 99 | md |
training-operator | training-operator-master/examples/xgboost/smoke-dist/tracker.py | """
Tracker script for DMLC
Implements the tracker control protocol
- start dmlc jobs
- start ps scheduler and rabit tracker
- help nodes to establish links with each other
Tianqi Chen
--------------------------
This was taken from
https://github.com/dmlc/dmlc-core/blob/master/tracker/dmlc_tracker/tracker.py
See LIC... | 16,512 | 31.634387 | 85 | py |
training-operator | training-operator-master/examples/xgboost/smoke-dist/xgboost_smoke_test.py |
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 3,473 | 30.87156 | 94 | py |
training-operator | training-operator-master/examples/xgboost/smoke-dist/xgboostjob_v1_rabit_test.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-test
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: xgboost
image: docker.io/merlintang/xgboost-dist-rabit-test:1.2
... | 763 | 22.875 | 67 | yaml |
training-operator | training-operator-master/examples/xgboost/smoke-dist/xgboostjob_v1alpha1_rabit_test.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-test
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
apiVersion: v1
kind: Pod
spec:
containers:
- name: xgboost
image: docker.io/merlintan... | 845 | 22.5 | 67 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/README.md | ### Distributed XGBoost Job train and prediction
This folder containers related files for distributed XGBoost training and prediction. In this demo,
[Iris Data Set](https://archive.ics.uci.edu/ml/datasets/iris) is a well known multi-class classification dataset.
Thus, in this demo, distributed XGBoost job is able to d... | 18,489 | 35.469428 | 202 | md |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/build.sh | ## build the docker file
docker build -f Dockerfile -t merlintang/xgboost-dist-iris:1.0 ./
## push the docker image into docker.io
docker push merlintang/xgboost-dist-iris:1.0
## run the train job
kubectl create -f xgboostjob_v1alpha1_iris_train.yaml
## run the predict job
kubectl create -f xgboostjob_v1alpha1_iris_... | 333 | 26.833333 | 65 | sh |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/local_test.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 2,606 | 25.876289 | 79 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/main.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 2,869 | 29.210526 | 79 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/predict.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 1,331 | 31.487805 | 77 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/tracker.py | """
Tracker script for DMLC
Implements the tracker control protocol
- start dmlc jobs
- start ps scheduler and rabit tracker
- help nodes to establish links with each other
Tianqi Chen
--------------------------
This was taken from
https://github.com/dmlc/dmlc-core/blob/master/tracker/dmlc_tracker/tracker.py
See LIC... | 16,512 | 31.634387 | 85 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/train.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 3,027 | 31.913043 | 79 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/utils.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 9,229 | 30.609589 | 77 | py |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1_iris_predict.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-predict
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: xgboost
image: docker.io/merlintang/xgboost-dist-iris:1.1
... | 1,116 | 24.976744 | 61 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1_iris_train.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-train
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
spec:
containers:
- name: xgboost
image: docker.io/merlintang/xgboost-dist-iris:1.1
... | 1,247 | 26.733333 | 74 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1alpha1_iris_predict.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-predict
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
apiVersion: v1
kind: Pod
spec:
containers:
- name: xgboost
image: docker... | 1,198 | 24.510638 | 61 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1alpha1_iris_predict_local.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-predict-local
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
apiVersion: v1
kind: Pod
spec:
volumes:
- name: task-pv-storage
pe... | 1,616 | 27.368421 | 62 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1alpha1_iris_train.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-train
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
apiVersion: v1
kind: Pod
spec:
containers:
- name: xgboost
image: docker.i... | 1,361 | 26.24 | 74 | yaml |
training-operator | training-operator-master/examples/xgboost/xgboost-dist/xgboostjob_v1alpha1_iris_train_local.yaml | apiVersion: kubeflow.org/v1
kind: XGBoostJob
metadata:
name: xgboost-dist-iris-test-train-local
spec:
xgbReplicaSpecs:
Master:
replicas: 1
restartPolicy: Never
template:
apiVersion: v1
kind: Pod
spec:
volumes:
- name: task-pv-storage
pers... | 1,900 | 29.174603 | 74 | yaml |
training-operator | training-operator-master/hack/generate-apidoc.sh | #!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 1,199 | 29.769231 | 80 | sh |
training-operator | training-operator-master/hack/update-codegen.sh | #!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 4,143 | 36 | 112 | sh |
training-operator | training-operator-master/hack/verify-codegen.sh | #!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 1,274 | 25.020408 | 74 | sh |
training-operator | training-operator-master/hack/python-sdk/gen-sdk.sh | #!/usr/bin/env bash
# Copyright 2021 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 2,171 | 39.222222 | 165 | sh |
training-operator | training-operator-master/hack/python-sdk/post_gen.py | #!/usr/bin/env python
# Copyright 2021 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 2,832 | 33.13253 | 87 | py |
training-operator | training-operator-master/hack/scripts/cleanup_clusters.sh | #!/bin/bash
# Copyright 2018 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 828 | 36.681818 | 83 | sh |
training-operator | training-operator-master/hack/scripts/update-changelog.sh | #!/bin/bash
# Copyright 2018 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 1,501 | 31.652174 | 119 | sh |
training-operator | training-operator-master/hack/swagger/main.go | /*
Copyright 2021 kubeflow.org.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 2,310 | 26.511905 | 88 | go |
training-operator | training-operator-master/manifests/base/deployment.yaml | apiVersion: apps/v1
kind: Deployment
metadata:
name: training-operator
labels:
control-plane: kubeflow-training-operator
spec:
selector:
matchLabels:
control-plane: kubeflow-training-operator
replicas: 1
template:
metadata:
labels:
control-plane: kubeflow-training-operator
... | 1,399 | 25.415094 | 49 | yaml |
training-operator | training-operator-master/manifests/base/kustomization.yaml | apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./crds
- ./rbac/cluster-role-binding.yaml
- ./rbac/role.yaml
- ./rbac/service-account.yaml
- service.yaml
- deployment.yaml
| 213 | 20.4 | 43 | yaml |