highpairformer 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {highpairformer-0.2.0 → highpairformer-0.3.0}/PKG-INFO +10 -3
  2. {highpairformer-0.2.0 → highpairformer-0.3.0}/README.md +9 -2
  3. {highpairformer-0.2.0 → highpairformer-0.3.0}/pyproject.toml +1 -1
  4. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/benchmark.py +261 -134
  5. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/_tensorops.py +72 -35
  6. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/triattn.py +100 -58
  7. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/test_benchmark.py +67 -0
  8. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/test_mlx.py +42 -0
  9. {highpairformer-0.2.0 → highpairformer-0.3.0}/uv.lock +1 -1
  10. {highpairformer-0.2.0 → highpairformer-0.3.0}/.github/workflows/publish.yml +0 -0
  11. {highpairformer-0.2.0 → highpairformer-0.3.0}/.gitignore +0 -0
  12. {highpairformer-0.2.0 → highpairformer-0.3.0}/.python-version +0 -0
  13. {highpairformer-0.2.0 → highpairformer-0.3.0}/LICENSE +0 -0
  14. {highpairformer-0.2.0 → highpairformer-0.3.0}/docs/benchmarks/boltz2-mps.svg +0 -0
  15. {highpairformer-0.2.0 → highpairformer-0.3.0}/docs/benchmarks/boltz2-mps.vg.json +0 -0
  16. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/__init__.py +0 -0
  17. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/_precision.py +0 -0
  18. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/jax/__init__.py +0 -0
  19. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/jax/_ops.py +0 -0
  20. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/jax/_runtime.py +0 -0
  21. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/kernels/__init__.py +0 -0
  22. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/kernels/metal/__init__.py +0 -0
  23. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/kernels/metal/_shaders.py +0 -0
  24. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/__init__.py +0 -0
  25. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/_metal.py +0 -0
  26. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/_normalize.py +0 -0
  27. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/attention.py +0 -0
  28. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/swiglu.py +0 -0
  29. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/mlx/trimul.py +0 -0
  30. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/py.typed +0 -0
  31. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/torch/__init__.py +0 -0
  32. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/torch/_mps.py +0 -0
  33. {highpairformer-0.2.0 → highpairformer-0.3.0}/src/highpairformer/torch/_ops.py +0 -0
  34. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/__init__.py +0 -0
  35. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/conftest.py +0 -0
  36. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/test_jax.py +0 -0
  37. {highpairformer-0.2.0 → highpairformer-0.3.0}/tests/test_torch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: highpairformer
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Drop-in Apple Silicon Metal/MLX replacement for cuEquivariance triangle operations across JAX, PyTorch, and MLX.
5
5
  Project-URL: Homepage, https://github.com/Revanta-Inc/highpairformer
6
6
  Project-URL: Repository, https://github.com/Revanta-Inc/highpairformer
@@ -140,9 +140,9 @@ The yellow bars measure the complete Boltz adapter. The trunk calls highpairform
140
140
  Run the standardized Apple Silicon Metal benchmark suite directly via `uvx` / `uv tool run`:
141
141
 
142
142
  ```bash
143
- uv tool run --from "highpairformer[mlx]" hpfbench
143
+ uv tool run --from "highpairformer[mlx]@latest" hpfbench
144
144
  # or:
145
- uvx --from "highpairformer[mlx]" hpfbench
145
+ uvx --from "highpairformer[mlx]@latest" hpfbench
146
146
  ```
147
147
 
148
148
  The benchmark runs `fp32` and `fp16` across `N ∈ {256, 384, 512}` and `c_z ∈ {64, 128, 256}`. It covers Boltz-2 / AlphaFold3 (`c_z=128`, `H=4×32`, `c_s=384`) and ESMFold2 / Protenix-v2 (`c_z=256`, `H=8×32`, `c_token=768`) layouts (`BNSHD` and `BNHSD`), `biased_attention`, `triangle_multiplicative_update`, `swiglu_transition`, and full `pairformer_block` presets. It collects sanitized hardware metadata via `system_profiler SPHardwareDataType` (never sending serial numbers or raw UUIDs, and deriving a deterministic scrypt-hashed `hardware_uuid_hash` for deduplication) and warns if macOS Low Power Mode is enabled.
@@ -156,6 +156,13 @@ Results stay local by default.
156
156
  - `--jsonl`: stream JSONL records (`meta`, `result`, `summary`) directly to stdout instead of a table.
157
157
  - `--output results.jsonl` / `--dry-run`: stream JSONL to a file or print the full JSONL report.
158
158
 
159
+ To isolate the attention backend on a Mac running macOS 26.3 or later, run the triangle-attention and Pairformer block cases from this checkout.
160
+
161
+ ```sh
162
+ uv run --extra mlx hpfbench --compare-attention-backends --tokens 256 384 512 --repeats 15 --output attention.jsonl
163
+ ```
164
+
165
+
159
166
  ## Architecture
160
167
 
161
168
  ```text
@@ -110,9 +110,9 @@ The yellow bars measure the complete Boltz adapter. The trunk calls highpairform
110
110
  Run the standardized Apple Silicon Metal benchmark suite directly via `uvx` / `uv tool run`:
111
111
 
112
112
  ```bash
113
- uv tool run --from "highpairformer[mlx]" hpfbench
113
+ uv tool run --from "highpairformer[mlx]@latest" hpfbench
114
114
  # or:
115
- uvx --from "highpairformer[mlx]" hpfbench
115
+ uvx --from "highpairformer[mlx]@latest" hpfbench
116
116
  ```
117
117
 
118
118
  The benchmark runs `fp32` and `fp16` across `N ∈ {256, 384, 512}` and `c_z ∈ {64, 128, 256}`. It covers Boltz-2 / AlphaFold3 (`c_z=128`, `H=4×32`, `c_s=384`) and ESMFold2 / Protenix-v2 (`c_z=256`, `H=8×32`, `c_token=768`) layouts (`BNSHD` and `BNHSD`), `biased_attention`, `triangle_multiplicative_update`, `swiglu_transition`, and full `pairformer_block` presets. It collects sanitized hardware metadata via `system_profiler SPHardwareDataType` (never sending serial numbers or raw UUIDs, and deriving a deterministic scrypt-hashed `hardware_uuid_hash` for deduplication) and warns if macOS Low Power Mode is enabled.
@@ -126,6 +126,13 @@ Results stay local by default.
126
126
  - `--jsonl`: stream JSONL records (`meta`, `result`, `summary`) directly to stdout instead of a table.
127
127
  - `--output results.jsonl` / `--dry-run`: stream JSONL to a file or print the full JSONL report.
128
128
 
129
+ To isolate the attention backend on a Mac running macOS 26.3 or later, run the triangle-attention and Pairformer block cases from this checkout.
130
+
131
+ ```sh
132
+ uv run --extra mlx hpfbench --compare-attention-backends --tokens 256 384 512 --repeats 15 --output attention.jsonl
133
+ ```
134
+
135
+
129
136
  ## Architecture
130
137
 
131
138
  ```text
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "highpairformer"
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  description = "Drop-in Apple Silicon Metal/MLX replacement for cuEquivariance triangle operations across JAX, PyTorch, and MLX."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"