Skip to content

Commit f6d8d57

Browse files
committed
Merge branches 'suyue/ext-ci' and 'suyue/ext-ci' of https://github.com/intel/neural-compressor into suyue/ext-ci
2 parents 23eda61 + 89eb1d4 commit f6d8d57

File tree

9 files changed

+33
-48
lines changed

9 files changed

+33
-48
lines changed

.github/workflows/pr-agent.yml.disable

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/pr-code-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ env:
2020
EXTERNAL_REPO: intel/neural-compressor
2121
EXTERNAL_BRANCH: master
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
git-sync:
2528
if: ${{ contains(github.repository, 'intel-innersource') }}

.github/workflows/pr-io-build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
build-on-pr:
1821
runs-on: ${{ contains(github.repository, 'intel-innersource') && 'self-hosted' || 'ubuntu-latest' }}

.github/workflows/pr-link-scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
name: Check hyperlinks and relative path validity
55

6-
permissions:
7-
contents: read
8-
96
on:
107
pull_request:
118
branches: ["master", "master_next"]
@@ -16,6 +13,9 @@ concurrency:
1613
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1714
cancel-in-progress: true
1815

16+
permissions:
17+
contents: read
18+
1919
jobs:
2020
check-the-validity-of-hyperlinks-in-README:
2121
# choose different runner label for internal and external CI

.github/workflows/pr-pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
scan-and-fix:
1821
if: ${{ contains(github.repository, 'intel-innersource') }}

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
# CI for public repo only
44

55
name: Publish IO
6-
permissions: {}
6+
77

88
on:
99
push:
1010
branches: [master]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
if: ${{ !contains(github.repository, 'intel-innersource') }}

examples/jax/keras/gemma/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ Without this flag, quantized model works in fake quantization mode (rounding ten
2121

2222
## 2. Install modules
2323

24+
After the Neural Compressor v3.8 release you can install required binaries:
2425
```bash
2526
pip install -r requirements.txt
2627
```
28+
Alternatively, you can always install Neural Compressor from the source code:
29+
```bash
30+
pushd ../../../.. # go to the root directory of the Neural Compressor source code
31+
INC_JAX_ONLY=1 pip install .
32+
popd
33+
```
34+
2735

2836
## 3. Download model
2937

examples/jax/keras/vit/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@ Without this flag, quantized model works in fake quantization mode (rounding ten
2020

2121
## 2. Install modules
2222

23+
After the Neural Compressor v3.8 release you can install required binaries:
2324
```bash
2425
pip install -r requirements.txt
2526
```
27+
Alternatively, you can always install Neural Compressor from the source code:
28+
```bash
29+
pushd ../../../.. # go to the root directory of the Neural Compressor source code
30+
INC_JAX_ONLY=1 pip install .
31+
popd
32+
pip install tensorflow
33+
```
2634

2735
## 3. Download model
2836

examples/pytorch/diffusion_model/diffusers/framepack/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ def callback(d):
358358
text_encoder_2.requires_grad_(False)
359359
image_encoder.requires_grad_(False)
360360

361-
if not os.path.exists(args.output_video_path):
362-
os.makedirs(args.output_video_path)
361+
os.makedirs(args.output_video_path, exist_ok=True)
363362

364363
init_process_group(backend="nccl")
365364
local_rank = int(os.environ["LOCAL_RANK"])

0 commit comments

Comments
 (0)