Skip to content

Commit

Permalink
Merge branch 'main' into markdown-linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Sep 11, 2023
2 parents 8bdd408 + 7d5b20d commit f604df7
Show file tree
Hide file tree
Showing 45 changed files with 2,656 additions and 495 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A clear and concise description of what you expected to happen.
**Environment**
Include all relevant environment information:
1. OS [e.g. Ubuntu 18.04]:
2. Python version [e.g. 3.7]:
2. Python version [e.g. 3.8]:
3. Sparsify version or commit hash [e.g. 0.1.0, `f7245c8`]:
4. ML framework version(s) [e.g. torch 1.7.1]:
5. Other Python package versions [e.g. SparseZoo, DeepSparse, numpy, ONNX]:
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Build and Publish Sparsify Release Docker Images

on:
release:
types: [published]

jobs:
build-and-push-docker-image:
name: Build and Push Version Tagged Docker Images to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Cleanup disk
run: |
sudo ls -l /usr/local/lib/
sudo ls -l /usr/share/
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
- name: Set up Docker Buildx
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug

- name: Login to Github Packages
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout code
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Get Tag
id: extract_tag
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF_NAME#*/})"

- name: Current Version Name
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
echo ${{ steps.extract_tag.outputs.tag }}
- name: Build and push sparsify release ${{ steps.extract_tag.outputs.tag }} docker image
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v2
with:
context: ./docker
build-args: |
REF=release/${{ steps.extract_tag.outputs.tag }}
push: true
tags: |
ghcr.io/neuralmagic/sparsify:${{ steps.extract_tag.outputs.tag }}
- name: Image digest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: echo ${{ steps.docker_build.outputs.digest }}
58 changes: 58 additions & 0 deletions .github/workflows/build-nightly-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build and Publish Sparsify Release Docker Images

on:
push:
branches:
- 'main'

jobs:
build-and-push-docker-image:
name: Build and Push Version Tagged Docker Images to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Cleanup disk
run: |
sudo ls -l /usr/local/lib/
sudo ls -l /usr/share/
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
sudo du -sh /usr/local/lib/
sudo du -sh /usr/share/
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Build and push sparsify-nightly docker image
uses: docker/build-push-action@v2
with:
context: ./docker
build-args: |
REF=main
push: true
tags: |
ghcr.io/neuralmagic/sparsify-nightly:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

# Developing Sparsify

Sparsify is developed and tested using Python 3.7-3.9.
Sparsify is developed and tested using Python 3.8-3.9.
To develop Sparsify, you will also need the development dependencies and to follow the styling guidelines.

Here's some details to get started.
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
recursive-include src/sparsify/ui/ *
include LICENSE
include src/sparsify/auto/tasks/deployment_instructions.md
include src/sparsify/auto/samples/finetune_llmfoundry_sample.yaml
Loading

0 comments on commit f604df7

Please sign in to comment.