Skip to content

Commit c6bdea0

Browse files
committed
release: v0.0.1
1 parent 48a8949 commit c6bdea0

120 files changed

Lines changed: 19965 additions & 1595 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ __pycache__/
1717
runs/
1818
.pytest_cache/
1919
a.out
20+
*.tmp
21+
*.tmp.*
22+
*.bak.tmp

‎CHANGELOG.md‎

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,81 @@
179179
in new `oxideon.splat` (`project_gaussians`, `rasterize`).
180180
Tests: `test_speech_frontend.py`, `test_vision_toolkit.py`,
181181
`test_nerf_splat.py`.
182+
- Classical science stack (additive-only, no behavior change to existing
183+
code; SciPy/PyTorch used as test oracles only, never imported at
184+
runtime):
185+
- `oxideon.numerical`: adaptive `quad`/`dblquad`, `gauss_legendre`/
186+
`fixed_quad`, `Interp1D`, `CubicSpline`, `minimize_scalar`,
187+
`curve_fit`, `physical_constants` table.
188+
- `oxideon.stats`: `ttest_1samp`/`ttest_ind`/`ttest_rel`, `chisquare`/
189+
`chi2_contingency`, `pearsonr`/`spearmanr`, `mannwhitneyu`,
190+
`kstest`, `skew`/`kurtosis`/`jarque_bera`, `ecdf`/`ECDF`,
191+
`p_adjust` (bonferroni/holm/bh).
192+
- `oxideon.physics`: `Wave2DEquation`/`Diffusion2DEquation` PDE
193+
solvers, `simulate_nbody` (+ energy/momentum, Kepler helpers),
194+
`hamiltonian_leapfrog`.
195+
Tests: `test_numerical.py` (26), `test_stats.py` (33),
196+
`test_physics.py` (12), several cross-checked against SciPy.
197+
- Docs: `docs/API_STABILITY.md` (tiered stability statement with
198+
per-module classification), `docs/SCIENCE_API.md` (science API guide
199+
with executed snippets).
200+
- Examples (all `main()`-runnable and gate-enforced via
201+
`test_new_example_scripts_execute_cleanly`):
202+
`science_numerical_methods.py`, `science_statistics.py`,
203+
`science_physics_sims.py`, `train_with_scheduler_and_checkpoint.py`.
182204

183205
### Fixed
206+
- nn autograd restoration (Batch CV, `tests/test_bug_hunt_cv.py`, 21
207+
regression tests, PyTorch oracle for values/gradients/validation):
208+
- `BatchNorm1d/2d/3d` and `GroupNorm` now propagate input gradients
209+
(previously silently None below any norm); `running_var` tracks the
210+
unbiased estimate (torch ddof parity).
211+
- `MultiMarginLoss`, `MultiLabelMarginLoss`,
212+
`MultiLabelSoftMarginLoss` rewritten with Tensor ops (grad flows;
213+
bad reductions and out-of-range labels are `ValueError`).
214+
- `Flatten` honors `start_dim`/`end_dim`; `CTCLoss` accepts
215+
torch-style lengths/targets (validated native subset, N*S `sum`
216+
rescaling); `PReLU` broadcasts per-channel weights with grad.
217+
- `adaptive_max_pool1d/2d/3d`, `lp_pool1d/2d` (also fixes signed
218+
odd-power values), `F.pad` (all modes), and
219+
`local_response_norm` (also fixes even sizes) keep autograd.
220+
- Collective/parallel-container hardening (Batch CU,
221+
`tests/test_bug_hunt_cu.py`, 18 regression tests, torch gloo oracle
222+
for op/dtype domains):
223+
- `all_reduce` list path and `DataParallel` numpy gather no longer
224+
force float32 (f64/i64 preserved); unknown collective ops raise
225+
`ValueError` instead of silently summing or shuffling garbage.
226+
- Bitwise `BAND`/`BOR`/`BXOR` reductions implemented in `all_reduce`
227+
and `ring_all_reduce`; bitwise-on-float and `AVG`-on-int raise
228+
`TypeError` (torch parity).
229+
- `init_process_group` rejects out-of-range ranks before mutating
230+
state; `scatter`/`reduce_scatter` require `world_size` entries;
231+
`reduce_scatter_tensor` chunks the input and reduces per rank
232+
(previously always crashed on legitimate shapes).
233+
- `DataParallel` gathers tuple/list outputs elementwise (torch
234+
parity); `PipelineParallel` forwards kwargs on the microbatched
235+
path and rejects batch-0 input with `ValueError`.
236+
- `KVMemoryBank.read` on empty memory returns grad-connected zeros
237+
so `backward()` works; `all_gather` accepts array-like lists.
238+
- Optimizer/scheduler/serialization hardening (Batch CT,
239+
`tests/test_bug_hunt_ct.py`, 11 regression tests, torch-oracle
240+
verified where applicable):
241+
- Optimizer: bare-Tensor/empty/set/non-Tensor params rejected
242+
(`TypeError`/`ValueError`, torch parity); `load_state_dict` maps
243+
hyper-parameters and per-param state onto the live params by order
244+
instead of adopting checkpoint objects; `state_dict` deep-copies.
245+
- LBFGS honors `max_iter` (inner loop) and `tolerance_change`
246+
(early stop); non-None `line_search_fn` raises `ValueError`.
247+
- NAdam uses the scheduled momentum-decay correction (mirrors the
248+
in-repo Rust schedule) instead of a constant-beta1 term.
249+
- Schedulers read/write per-param-group LRs (previously a single
250+
`.lr`/1e-3 base that never moved native optimizers); `LambdaLR`
251+
validates lambda-list length; StepLR/MultiStepLR preserve external
252+
LR edits on non-decay steps.
253+
- `serialization.load` no longer masks strict state-dict mismatches
254+
as unpickle errors (parse-then-apply); loading a non-dict object
255+
into a model raises `TypeError` instead of silently returning the
256+
untouched model.
184257
- Index-fill audit (engine + binding + shim unwiring, 1 new `ops::tests`,
185258
2 new pytest in `tests/test_masked.py`, all torch-verified): new engine
186259
`index_fill` (axis mask + `where_cond` composition, so gradients flow

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ default-members = [".", "crates/oxideon-core", "crates/oxideon-engines"]
44
resolver = "3"
55

66
[workspace.package]
7-
version = "0.1.0"
7+
version = "0.0.1"
88
edition = "2024"
99
rust-version = "1.85"
1010
license = "MIT OR Apache-2.0"
1111

1212
[workspace.dependencies]
13-
oxideon-core = { path = "crates/oxideon-core", version = "0.1.0", default-features = false }
14-
oxideon-engines = { path = "crates/oxideon-engines", version = "0.1.0" }
13+
oxideon-core = { path = "crates/oxideon-core", version = "0.0.1", default-features = false }
14+
oxideon-engines = { path = "crates/oxideon-engines", version = "0.0.1" }
1515

1616
# Index loops are used throughout the numeric code; allow the lint workspace-wide instead of per file.
1717
[workspace.lints.clippy]

0 commit comments

Comments
 (0)