grx-tensor 0.1.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/GUIA_PRINCIPIANTES.md +1046 -0
- data/README.es.md +1199 -0
- data/README.md +1026 -283
- data/ext/grx/extconf.rb +4 -18
- data/ext/grx/grx_core.c +411 -331
- data/ext/grx/grx_core.h +23 -13
- data/ext/unix/Makefile +3 -27
- data/ext/windows/Makefile.mingw +3 -23
- data/grx-tensor.gemspec +41 -35
- data/lib/grx/c_api.rb +75 -39
- data/lib/grx/data.rb +87 -0
- data/lib/grx/loss.rb +55 -25
- data/lib/grx/nn.rb +160 -41
- data/lib/grx/optim.rb +21 -16
- data/lib/grx/serialization.rb +66 -0
- data/lib/grx/storage.rb +19 -27
- data/lib/grx/tensor.rb +234 -65
- data/lib/grx/utils.rb +43 -0
- data/lib/grx/version.rb +1 -1
- data/lib/grx.rb +22 -6
- metadata +37 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef573ddb7f047d0fbe2a87a1bb9fe9d102870cdb9c31791129335eda4724baa2
|
|
4
|
+
data.tar.gz: c65fb09c8d9c769415870d60ede2efd50dbdd3367fb6ad700c95c686c3d2376d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 997603cfd5b43ab6800e8f24300d9771e1ca06edca26b15e61447c68076637bb2103112c13af98d3c98c8c9d9b76cbcab89323b3a42e5b56beeebd84da625134
|
|
7
|
+
data.tar.gz: b0623d6572185c7590dd1cf34f0b225950fc459a6d653cc2ae60188e239c00e368e0073ae20c27a66a9516d4b80966b7d0b0f6dd9b8ee1308100ccaeebc941cd
|
data/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,32 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
17
17
|
- `Conv2d`, `LSTM`, `MultiheadAttention` layers
|
|
18
18
|
- CUDA extension (`grx-tensor-cuda`)
|
|
19
19
|
|
|
20
|
+
## [0.2.1] - 2026-08-29
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- **Illegal Instruction Crash Resolved (`SIGILL`)**: Removed forced global `-mavx2` compiler flags that produced opcode crashes on older Intel/AMD CPUs, VMs, and ARM architectures.
|
|
24
|
+
- **Dynamic Multi-Target SIMD Dispatch**: Runtime CPU detection (`grx_simd_level`) dynamically selects between AVX2+FMA (4 doubles/cycle), SSE, or portable scalar C with zero overhead.
|
|
25
|
+
- **Automated Native Compilation**: Extension builds seamlessly on `gem install grx-tensor` without requiring manual make invocations.
|
|
26
|
+
- **Windows DevKit Support & Documentation**: Streamlined MinGW-w64 build path and clarified standalone binary progress.
|
|
27
|
+
- **Post-Install Experience**: Clean dual-language (EN/ES) thank-you notice and direct repository documentation links.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## [0.2.0] - 2026-08-21
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- **Differentiable Reductions & Operations**: `Tensor#sum` and `Tensor#mean` now create autograd DAG nodes supporting direct `loss.backward`.
|
|
35
|
+
- **Differentiable Loss Functions**: `MSELoss`, `MAELoss`, `BCELoss`, `CrossEntropyLoss`, and `HuberLoss` now return differentiable `Tensor` instances.
|
|
36
|
+
- **Advanced Neural Layers**:
|
|
37
|
+
- `GRX::NN::Embedding` — trainable dense token embeddings with backpropagation.
|
|
38
|
+
- `GRX::NN::LayerNorm` — feature normalization with trainable gamma/beta parameters.
|
|
39
|
+
- **Model Serialization**: High-speed binary `.grx` format with `GRX1` magic header for instant weight saving and loading (`Module#save_weights`, `Module#load_weights`).
|
|
40
|
+
- **Data Pipelines**: `GRX::Data::TensorDataset` and `GRX::Data::DataLoader` for mini-batching, shuffling, and dataset iteration.
|
|
41
|
+
- **Gradient Clipping**: `GRX::Utils.clip_grad_norm!` for stabilizing deep networks and recurrent architectures.
|
|
42
|
+
- **Robust Windows DLL Resolution**: Multi-path search for `grx_core.dll` across multiple fallback directories.
|
|
43
|
+
- **Helper methods**: `GRX.mode` and `GRX.c_loaded?`.
|
|
44
|
+
- **Spanish Documentation**: Complete `README.es.md` and `GUIA_PRINCIPIANTES.md`.
|
|
45
|
+
|
|
20
46
|
---
|
|
21
47
|
|
|
22
48
|
## [0.1.0] - 2026-05-11
|