Skip to content

Commit 1387117

Browse files
puneetmatharujondea
andcommitted
Add 'get-woke' support.
Co-authored-by: Jonathan Deakin <jonathan.deakin@arm.com>
1 parent 8830aff commit 1387117

File tree

11 files changed

+331
-17
lines changed

11 files changed

+331
-17
lines changed

.github/workflows/woke-review.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and affiliates.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Inclusive language review
6+
7+
# Trigger on pull requests only
8+
on:
9+
- pull_request
10+
11+
#* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
12+
#* Does not apply to the main branch.
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
woke:
22+
runs-on: ah-ubuntu_24_04-c7g_2x-50
23+
steps:
24+
- name: Checkout Tool-Solutions
25+
uses: actions/checkout@v6.0.1
26+
27+
- name: Run 'woke'
28+
uses: get-woke/woke-action@v0
29+
with:
30+
fail-on-error: true
31+
woke-args: -c ${{ github.workspace }}/.woke.yml --output text

.woke.yml

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
# SPDX-FileCopyrightText: Copyright 2024, 2025 Arm Limited and affiliates.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Custom settings and rules for get-woke (https://github.com/get-woke/woke)
6+
7+
# Rules based on:
8+
# - get-woke default set: https://github.com/get-woke/woke/blob/main/pkg/rule/default.yaml
9+
# - INCITS inclusive terminology guidelines:
10+
# https://www.incits.org/dotAsset/ac0948e7-8708-46ef-9e0c-783c904a14c7.pdf
11+
12+
rules:
13+
- name: abort/terminate
14+
terms:
15+
- abort
16+
- terminate
17+
alternatives:
18+
- halt
19+
- end
20+
- stop
21+
- eliminate
22+
- quit
23+
- cease
24+
- close
25+
- "hard stop"
26+
- "end involuntarily"
27+
- "force quit"
28+
29+
- name: blackbox
30+
terms:
31+
- black-box
32+
- blackbox
33+
- black box
34+
alternatives:
35+
- closed-box
36+
37+
- name: blacklist
38+
terms:
39+
- blacklist
40+
- black-list
41+
- blacklisted
42+
- black-listed
43+
alternatives:
44+
- denylist
45+
- blocklist
46+
- exclusion list
47+
48+
- name: chinese-wall
49+
terms:
50+
- "chinese wall"
51+
- "chinese-wall"
52+
- "Chinese wall"
53+
alternatives:
54+
- "ethical wall"
55+
56+
- name: colony
57+
terms:
58+
- colony
59+
alternatives:
60+
- settlement
61+
- population
62+
- community
63+
- territory
64+
65+
- name: crazy
66+
terms:
67+
- crazy
68+
alternatives:
69+
- unexpected
70+
- surprising
71+
- puzzling
72+
73+
- name: cripple
74+
terms:
75+
- cripple
76+
alternatives:
77+
- limit
78+
- disadvantage
79+
80+
- name: dumb
81+
terms:
82+
- dumb
83+
- dummy
84+
alternatives:
85+
- foolish
86+
- silent
87+
- placeholder
88+
- sample
89+
90+
- name: first-class
91+
terms:
92+
- "first-class citizen"
93+
alternatives:
94+
- "first-class entity"
95+
- "core entity"
96+
- "top level entity"
97+
98+
- name: handicap
99+
terms:
100+
- handicap
101+
alternatives:
102+
- limit
103+
- disadvantage
104+
105+
- name: hang
106+
terms:
107+
- hang
108+
- hanged
109+
alternatives:
110+
- froze
111+
- frozen
112+
- unresponsive
113+
options:
114+
word_boundary: true
115+
116+
- name: he/she
117+
terms:
118+
- she
119+
- he
120+
- she'd
121+
- he'd
122+
- she'll
123+
- he'll
124+
- she's
125+
- he's
126+
alternatives:
127+
- they
128+
- it
129+
options:
130+
word_boundary: true
131+
132+
- name: her/him
133+
terms:
134+
- her
135+
- hers
136+
- him
137+
- his
138+
alternatives:
139+
- their
140+
- theirs
141+
- them
142+
options:
143+
word_boundary: true
144+
145+
- name: herself/himself
146+
terms:
147+
- herself
148+
- himself
149+
alternatives:
150+
- themselves
151+
- theirself
152+
- self
153+
154+
- name: grandfathered
155+
terms:
156+
- grandfathered
157+
alternatives:
158+
- legacy status
159+
160+
- name: guys
161+
terms:
162+
- guys
163+
alternatives:
164+
- folks
165+
- people
166+
- you all
167+
options:
168+
word_boundary: true
169+
170+
- name: kill/murder
171+
terms:
172+
- kill
173+
- murder
174+
alternatives:
175+
- halt
176+
- end
177+
- stop
178+
- eliminate
179+
- quit
180+
- cease
181+
- close
182+
- "hard stop"
183+
- "end involuntarily"
184+
- "force quit"
185+
options:
186+
word_boundary: true
187+
188+
- name: man/woman
189+
terms:
190+
- man
191+
- woman
192+
alternatives:
193+
- human
194+
- person
195+
options:
196+
word_boundary: true
197+
198+
- name: man-hours
199+
terms:
200+
- man hours
201+
- man-hours
202+
alternatives:
203+
- person hours
204+
- engineer hours
205+
206+
- name: master
207+
terms:
208+
- master
209+
alternatives:
210+
- main
211+
- leader
212+
- primary
213+
214+
- name: suicide
215+
terms:
216+
- suicide
217+
alternatives:
218+
- "shut down"
219+
- "self destruct"
220+
221+
- name: master-slave
222+
terms:
223+
- master-slave
224+
- master/slave
225+
alternatives:
226+
- leader/follower
227+
- primary/replica
228+
- primary/standby
229+
230+
- name: ocd
231+
terms:
232+
- ocd
233+
- neurotic
234+
- ocd
235+
- o.c.d
236+
- o.c.d.
237+
alternatives:
238+
- has an anxiety disorder
239+
- obsessive
240+
- pedantic
241+
- picky
242+
options:
243+
word_boundary: true
244+
245+
- name: slave
246+
terms:
247+
- slave
248+
alternatives:
249+
- follower
250+
- replica
251+
- standby
252+
253+
- name: sanity
254+
terms:
255+
- sanity
256+
- sane
257+
alternatives:
258+
- confidence
259+
- quick check
260+
- coherence check
261+
- correct
262+
- adequate
263+
264+
- name: whitebox
265+
terms:
266+
- white-box
267+
- whitebox
268+
- white box
269+
alternatives:
270+
- open-box
271+
272+
- name: whitelist
273+
terms:
274+
- whitelist
275+
- white-list
276+
- whitelisted
277+
- white-listed
278+
alternatives:
279+
- allowlist
280+
- inclusion list

.wokeignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and affiliates.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
LICENSE
6+
LICENSES/*
7+
ML-Frameworks/pytorch-aarch64/examples/openimages-mlperf.json

ML-Frameworks/pytorch-aarch64/examples/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ This is a multiscale SSD (Single Shot Detection) model based on the ResNet-34 ba
5858
To run inference with SSD-ResNet-34 on example image call:
5959

6060
```bash
61+
# wokeignore:rule=master
6162
python detect_objects.py -m ./ssd_resnet34.yml -i https://raw.githubusercontent.com/zhreshold/mxnet-ssd/master/data/demo/street.jpg
6263
```
6364

@@ -79,7 +80,7 @@ There is also additional information in `image_preprocess` that is used to prepr
7980
- `mean`: Mean values per channel for normalizing image
8081
- `std`: Standard deviation values per channel for normalizing image
8182

82-
_Note: in PyTorch, in order to load the model from saved checkpoint, it is also necessary to have the implementation of that model in Python. In the example configuration used here, the implementation of the model (`SSD_R34`) is defined [here](https://github.com/mlcommons/inference/tree/master/vision/classification_and_detection/python/models)._
83+
_Note: in PyTorch, in order to load the model from saved checkpoint, it is also necessary to have the implementation of that model in Python. In the example configuration used here, the implementation of the model (`SSD_R34`) is defined [here](https://github.com/mlcommons/inference/tree/master/vision/classification_and_detection/python/models)._ <!-- wokeignore:rule=master -->
8384

8485
## Natural Language Processing (NLP)
8586

ML-Frameworks/pytorch-aarch64/examples/ssd_resnet34.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515
# limitations under the License.
1616
# *******************************************************************************
1717

18-
description: >-
19-
SSD-ResNet34 FP32 for object detection pretrained on COCO 2017 dataset. For details on how
20-
this model was trained please see
21-
<https://github.com/mlcommons/training/tree/master/image_classification> for more information
18+
description: "SSD-ResNet34 FP32 for object detection pretrained on COCO 2017 dataset. For details on how this model was trained please see <https://github.com/mlcommons/training/tree/master/image_classification> for more information" # wokeignore:rule=master
2219
model:
2320
name: resnet34-ssd1200.pytorch
2421
script: ssd_resnet34.py
2522
source: https://zenodo.org/record/3236545/files/resnet34-ssd1200.pytorch
26-
labels: https://raw.githubusercontent.com/amikelive/coco-labels/master/coco-labels-2014_2017.txt
23+
labels: https://raw.githubusercontent.com/amikelive/coco-labels/master/coco-labels-2014_2017.txt # wokeignore:rule=master
2724
threshold: 0.5
2825
image_preprocess:
2926
input_shape: [1,3,1200,1200]

ML-Frameworks/pytorch-aarch64/scripts/download-dataset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# This script is based on the upstream MLCommon's instructions to download datasets.
5-
# https://github.com/mlperf/inference/tree/master/vision/classification_and_detection
5+
# https://github.com/mlperf/inference/tree/master/vision/classification_and_detection # wokeignore:rule=master
66

77
# Download ImageNet's validation set
88
# These will be installed to ${HOME}/CK_TOOLS/

ML-Frameworks/pytorch-aarch64/scripts/download-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# This script is based on the upstream MLCommon's instructions to download models.
5-
# https://github.com/mlperf/inference/tree/master/vision/classification_and_detection
5+
# https://github.com/mlperf/inference/tree/master/vision/classification_and_detection # wokeignore:rule=master
66

77
cd inference/vision/classification_and_detection
88

ML-Frameworks/tensorflow-aarch64/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ https://github.com/ARM-software/Tool-Solutions/tree/r25.09
7979
https://github.com/ARM-software/Tool-Solutions/tree/r25.08
8080

8181
### Changed
82-
- Updates TensorFlow hash to ab8aab720f1648f6a470b159b0d1aea3a5b0df81 # 2.20.0-dev0 from master, 25th July 2025
82+
- Updates TensorFlow hash to ab8aab720f1648f6a470b159b0d1aea3a5b0df81 # 2.20.0-dev0 from master, 25th July 2025 <!-- wokeignore:rule=master -->
8383

8484
### Fixed
8585
- Updates Transformers to 4.50 as a mitigation for CVE-2025-2099.
@@ -598,7 +598,7 @@ https://github.com/ARM-software/Tool-Solutions/tree/tensorflow-pytorch-aarch64--
598598

599599
### Changed
600600
- Updates Compute Library version to 21.11.
601-
- Updates tensorflow/benchmarks to use the master branch.
601+
- Updates tensorflow/benchmarks to use the master branch. <!-- wokeignore:rule=master -->
602602

603603
### Fixed
604604
- Various improvements and corrections to the documentation.

0 commit comments

Comments
 (0)