thiswillbeyourgithub Claude Opus 4.8 commited on
Commit
501cdef
·
1 Parent(s): 5d433b8

scripts: pin dependency versions in PEP 723 headers for reproducibility

Browse files

Pin every declared dependency to the exact version resolved in the
working uv environments (onnx==1.21.0, onnxruntime==1.26.0,
onnx-neural-compressor==1.0, numpy==1.26.4, sympy==1.14.0,
prettytable==3.17.0, psutil==7.2.2, scipy==1.17.1, loguru==0.7.3) so
uv run reproduces the same toolchain instead of pulling whatever is
latest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

scripts/quantize-fp16.py CHANGED
@@ -2,9 +2,9 @@
2
  # /// script
3
  # requires-python = ">=3.9"
4
  # dependencies = [
5
- # "onnx",
6
- # "onnxruntime",
7
- # "sympy", # onnxruntime.transformers.onnx_model imports it at module load
8
  # ]
9
  # ///
10
  """Convert the fp32 Parakeet ONNX pieces to float16, to land under the WASM /
 
2
  # /// script
3
  # requires-python = ">=3.9"
4
  # dependencies = [
5
+ # "onnx==1.21.0",
6
+ # "onnxruntime==1.26.0",
7
+ # "sympy==1.14.0", # onnxruntime.transformers.onnx_model imports it at module load
8
  # ]
9
  # ///
10
  """Convert the fp32 Parakeet ONNX pieces to float16, to land under the WASM /
scripts/quantize-int8-smoothquant.py CHANGED
@@ -2,15 +2,15 @@
2
  # /// script
3
  # requires-python = ">=3.11"
4
  # dependencies = [
5
- # "onnx",
6
- # "onnxruntime",
7
- # "onnx-neural-compressor",
8
- # "numpy",
9
- # "sympy",
10
- # "prettytable",
11
- # "psutil",
12
- # "scipy",
13
- # "loguru",
14
  # ]
15
  # ///
16
  """Export a *better* int8 Parakeet encoder using SmoothQuant static quantization.
 
2
  # /// script
3
  # requires-python = ">=3.11"
4
  # dependencies = [
5
+ # "onnx==1.21.0",
6
+ # "onnxruntime==1.26.0",
7
+ # "onnx-neural-compressor==1.0",
8
+ # "numpy==1.26.4",
9
+ # "sympy==1.14.0",
10
+ # "prettytable==3.17.0",
11
+ # "psutil==7.2.2",
12
+ # "scipy==1.17.1",
13
+ # "loguru==0.7.3",
14
  # ]
15
  # ///
16
  """Export a *better* int8 Parakeet encoder using SmoothQuant static quantization.
scripts/shard-fp32.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python
2
  # /// script
3
  # requires-python = ">=3.9"
4
- # dependencies = ["onnx"]
5
  # ///
6
  """Shard the fp32 Parakeet encoder's external weights into <2 GB pieces so the
7
  fp32 encoder can load on the WASM backend / in-browser.
 
1
  #!/usr/bin/env python
2
  # /// script
3
  # requires-python = ">=3.9"
4
+ # dependencies = ["onnx==1.21.0"]
5
  # ///
6
  """Shard the fp32 Parakeet encoder's external weights into <2 GB pieces so the
7
  fp32 encoder can load on the WASM backend / in-browser.