Coder Social home page Coder Social logo

chuanqi129 / pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pytorch/pytorch

0.0 0.0 1.0 752.93 MB

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Home Page: https://pytorch.org

License: Other

Shell 0.33% C++ 37.21% Python 54.46% C 1.64% Makefile 0.01% CMake 0.74% Batchfile 0.02% Dockerfile 0.03% Starlark 0.30% PowerShell 0.01% GDB 0.01% Java 0.13% Cuda 3.12% Objective-C++ 1.29% Objective-C 0.03% Assembly 0.32% GLSL 0.19% CSS 0.01% HTML 0.01% Jupyter Notebook 0.17%

pytorch's People

Contributors

alband avatar apaszke avatar awgu avatar bdhirsh avatar bowenbao avatar chillee avatar colesbury avatar cyyever avatar ezyang avatar gchanan avatar huydhn avatar janeyx99 avatar jerryzh168 avatar kshitij12345 avatar malfet avatar mrshenli avatar peterbell10 avatar pytorchmergebot avatar rohan-varma avatar smessmer avatar soumith avatar ssnl avatar suo avatar swolchok avatar vkuzo avatar wanchaol avatar yangqing avatar zasdfgbnm avatar zdevito avatar zou3519 avatar

Watchers

 avatar

Forkers

stonepia

pytorch's Issues

[RFC] Add XPU support into Pytorch CI/CD

Motivation

XPU as a new device will be upstreamed into Pytorch, to support the new device and features upstreaming, we must enable Pytorch CI/CD XPU device related tests to gate the quality of the develop pull requests accordingly.

Design philosophy

For the new part CI/CD enabling, we want to reuse existing infrastructure in Pytorch CI/CD as much as possible. And refer to the workflows of other devices. XPU related build / test will be dispatched to Intel Develop Cloud (IDC) Instance self-hosted runners, which has XPU hardware.

  • Docker based tests
  • Unify entrance workflow of XPU tests
  • Multiple stage tests
    • Base Docker image build on AWS instance runners
    • Wheel build with base Docker image on IDC instance runners
    • Tests can be sharded and dispatched on IDC instance runners

Detail

Entrance workflow

The XPU device related tests will be triggered by PR with specific label or regular triggered by timer. Plan to add a new workflow .github/workflows/xpu.yml

name: xpu

on:
  push:
    branches:
      - main
      - release/*
    tags:
      - ciflow/xpu/*
  workflow_dispatch:
  schedule:
    - cron: 29 8 * * *  # about 1:29am PDT

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
  cancel-in-progress: true

jobs:
  linux-focal-xpu-py3_8-build:
    name: linux-focal-xpu-py3.8
    uses: ./.github/workflows/_linux-build.yml
    with:
      build-environment: linux-focal-xpu-py3.8
      docker-image-name: pytorch-linux-focal-xpu-n-py3
      sync-tag: xpu-build
      test-matrix: |
        { include: [
          { config: "default", shard: 1, num_shards: 2, runner: "linux.idc.xpu" },
          { config: "default", shard: 1, num_shards: 2, runner: "linux.idc.xpu" },
        ]}

  linux-focal-xpu-py3_8-test:
    name: linux-focal-xpu-py3.8
    uses: ./.github/workflows/_xpu-test.yml
    needs: linux-focal-xpu-py3_8-build
    with:
      build-environment: linux-focal-xpu-py3.8
      docker-image: ${{ needs.linux-focal-xpu-py3_8-build.outputs.docker-image }}
      test-matrix: ${{ needs.linux-focal-xpu-py3_8-build.outputs.test-matrix }}

Build & Test

Will add XPU specific base image Dockerfile .ci/docker/ubuntu-xpu/Dockerfile and XPU part into image build script .ci/docker/build.sh to support XPU based image build on linux.2xlarge runners.

For Pytorch wheel build, different with other devices, currently we need dispatch it to IDC instance runners. We will reuse .github/workflows/_linux-build.yml with XPU specific build-environment and add XPU part into Pytorch build script .ci/pytorch/build.sh.

For the test part, we will add a new XPU test workflow .github/workflows/_xpu-test.yml and some necessary GHA such as setup-xpu, teardown-xpu, etc. We also will add new part in test script .ci/pytorch/test.sh and a series utils scripts for XPU.

We also consider the other tests, for example inductor related, which will be implemented with similar philosophy in the future.

Open

We noticed that currently Pytorch CI/CD infrastructure relies on AWS docker registry and S3 service for Docker image and Wheel/Test results sharing among the workflows / test jobs. We want to know if we dispatched the wheel build and test into the IDC instance runner, how can the IDC runner interactive with those services?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.