sparse-delta-memory 2.0.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.
- sparse_delta_memory-2.0.0/CHANGELOG.md +128 -0
- sparse_delta_memory-2.0.0/LICENSE +407 -0
- sparse_delta_memory-2.0.0/MANIFEST.in +7 -0
- sparse_delta_memory-2.0.0/PKG-INFO +482 -0
- sparse_delta_memory-2.0.0/README.md +275 -0
- sparse_delta_memory-2.0.0/pyproject.toml +41 -0
- sparse_delta_memory-2.0.0/requirements-dev.txt +7 -0
- sparse_delta_memory-2.0.0/setup.cfg +4 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/README.md +458 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/__init__.py +13 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/backward.py +367 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cache.py +70 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/__init__.py +3 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/_build.py +254 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/_device.py +158 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/_devmemo.py +64 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/_image.py +128 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/bwd_steps_cuda.py +111 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/gather_cuda.py +796 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/gather_ns_cuda.py +134 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/gx_gds_cuda.py +1297 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/gx_gemm_cuda.py +857 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/gx_pa2_cuda.py +1320 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/mover_da2_cuda.py +1802 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/mover_fx_cuda.py +2229 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/pa_dc_cuda.py +1500 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/phase1_bwd_cuda.py +852 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/phase1_common.cuh +181 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/phase1_cuda.py +3801 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/product_key_topk_anyf_cuda.py +668 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/product_key_topk_cuda.py +735 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/px_qrec_cuda.py +167 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/sdm_copy.cuh +90 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda/sdm_plancap.cuh +150 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/cuda_graph.py +605 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/decode.py +140 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/forward.py +464 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/layer.py +663 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/memory_ops.py +1069 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/memory_stats.py +221 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/movers.py +198 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/phase2_kernels.py +267 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/product_key_topk.py +113 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory/wy_solve.py +273 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory.egg-info/PKG-INFO +482 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory.egg-info/SOURCES.txt +108 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory.egg-info/dependency_links.txt +1 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory.egg-info/requires.txt +4 -0
- sparse_delta_memory-2.0.0/sparse_delta_memory.egg-info/top_level.txt +1 -0
- sparse_delta_memory-2.0.0/tests/conftest.py +44 -0
- sparse_delta_memory-2.0.0/tests/data/debug_sdm_previous_release.yaml +69 -0
- sparse_delta_memory-2.0.0/tests/data/v1_configs/debug_hybrid.yaml +79 -0
- sparse_delta_memory-2.0.0/tests/data/v1_configs/sdm_7B.yaml +74 -0
- sparse_delta_memory-2.0.0/tests/data/v1_configs/sdm_flagship.yaml +74 -0
- sparse_delta_memory-2.0.0/tests/det_mutation_harness.py +555 -0
- sparse_delta_memory-2.0.0/tests/det_mutations.json +50 -0
- sparse_delta_memory-2.0.0/tests/op_grid.py +613 -0
- sparse_delta_memory-2.0.0/tests/phase1_reference.py +111 -0
- sparse_delta_memory-2.0.0/tests/sdm_testlib.py +810 -0
- sparse_delta_memory-2.0.0/tests/smoke_sdm.py +9 -0
- sparse_delta_memory-2.0.0/tests/test_autograd_reference.py +196 -0
- sparse_delta_memory-2.0.0/tests/test_backends.py +391 -0
- sparse_delta_memory-2.0.0/tests/test_bf16_entries.py +484 -0
- sparse_delta_memory-2.0.0/tests/test_bf16_snapshot.py +218 -0
- sparse_delta_memory-2.0.0/tests/test_bwd_steps.py +299 -0
- sparse_delta_memory-2.0.0/tests/test_checkpoint_compat.py +348 -0
- sparse_delta_memory-2.0.0/tests/test_chunk_size_contract.py +71 -0
- sparse_delta_memory-2.0.0/tests/test_compat_v1.py +293 -0
- sparse_delta_memory-2.0.0/tests/test_correctness.py +243 -0
- sparse_delta_memory-2.0.0/tests/test_cross_process_determinism.py +107 -0
- sparse_delta_memory-2.0.0/tests/test_cuda_graph.py +250 -0
- sparse_delta_memory-2.0.0/tests/test_cuda_graph_option.py +1686 -0
- sparse_delta_memory-2.0.0/tests/test_decode.py +236 -0
- sparse_delta_memory-2.0.0/tests/test_decode_host.py +72 -0
- sparse_delta_memory-2.0.0/tests/test_dense_limit_gdn.py +563 -0
- sparse_delta_memory-2.0.0/tests/test_det_mutations_manifest.py +61 -0
- sparse_delta_memory-2.0.0/tests/test_determinism.py +1214 -0
- sparse_delta_memory-2.0.0/tests/test_devmemo_entries.py +33 -0
- sparse_delta_memory-2.0.0/tests/test_eval_paths.py +508 -0
- sparse_delta_memory-2.0.0/tests/test_f64_oracle.py +455 -0
- sparse_delta_memory-2.0.0/tests/test_fx_portable.py +442 -0
- sparse_delta_memory-2.0.0/tests/test_fx_tails.py +285 -0
- sparse_delta_memory-2.0.0/tests/test_gather.py +233 -0
- sparse_delta_memory-2.0.0/tests/test_generate_cuda_graph.py +214 -0
- sparse_delta_memory-2.0.0/tests/test_image_refusal.py +264 -0
- sparse_delta_memory-2.0.0/tests/test_input_validation.py +105 -0
- sparse_delta_memory-2.0.0/tests/test_int64_snapshot_rows.py +377 -0
- sparse_delta_memory-2.0.0/tests/test_kernel_allowlist.py +114 -0
- sparse_delta_memory-2.0.0/tests/test_kernels_misc.py +338 -0
- sparse_delta_memory-2.0.0/tests/test_layer_reference.py +240 -0
- sparse_delta_memory-2.0.0/tests/test_layer_types.py +333 -0
- sparse_delta_memory-2.0.0/tests/test_memory_guards.py +1300 -0
- sparse_delta_memory-2.0.0/tests/test_mover_row_types.py +412 -0
- sparse_delta_memory-2.0.0/tests/test_native_route.py +369 -0
- sparse_delta_memory-2.0.0/tests/test_op_grid.py +104 -0
- sparse_delta_memory-2.0.0/tests/test_phase1.py +1082 -0
- sparse_delta_memory-2.0.0/tests/test_phase1_backward.py +475 -0
- sparse_delta_memory-2.0.0/tests/test_phase2.py +841 -0
- sparse_delta_memory-2.0.0/tests/test_product_key_factors.py +305 -0
- sparse_delta_memory-2.0.0/tests/test_quant_config_refusal.py +338 -0
- sparse_delta_memory-2.0.0/tests/test_quant_fx.py +290 -0
- sparse_delta_memory-2.0.0/tests/test_quant_rows.py +255 -0
- sparse_delta_memory-2.0.0/tests/test_quant_tail_refusal.py +361 -0
- sparse_delta_memory-2.0.0/tests/test_second_backward.py +72 -0
- sparse_delta_memory-2.0.0/tests/test_smoke_sdm.py +97 -0
- sparse_delta_memory-2.0.0/tests/test_tail_bwd.py +484 -0
- sparse_delta_memory-2.0.0/tests/test_tail_pa.py +76 -0
- sparse_delta_memory-2.0.0/tests/test_token_data_determinism.py +146 -0
- sparse_delta_memory-2.0.0/tests/test_topk.py +559 -0
- sparse_delta_memory-2.0.0/tests/test_wy_solve.py +180 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
New Sparse Delta Memory kernels: one chunked write/read op for all supported shapes (replacing
|
|
6
|
+
v1's per-shape kernels), deterministic, and faster than v1 (README, Speed). For v1's
|
|
7
|
+
configurations (two square product-key factors), parameter names and shapes are unchanged and v1
|
|
8
|
+
state dicts load with `strict=True`.
|
|
9
|
+
|
|
10
|
+
### Upgrading from v1
|
|
11
|
+
- Imports: `from sparse_delta_memory import SparseDeltaMemory, SparseDeltaMemoryArgs` (top-level
|
|
12
|
+
package; in a checkout, `lingua.sparse_delta_memory` is a deprecated alias with the same module
|
|
13
|
+
objects and one `FutureWarning` per process; the pip package does not include it).
|
|
14
|
+
- v1 configs and checkpoints load unchanged; `memory_block_size` is now `chunk_size` (the old name
|
|
15
|
+
is still accepted, with a `DeprecationWarning`; setting both to different values raises).
|
|
16
|
+
- New defaults: `chunk_size` 64 (it was 256 in 1.0.0; set `chunk_size: 256`
|
|
17
|
+
to keep it; the shipped 1.0.0 configs and pickled 1.0.0 layer arguments set it) and `num_writes` /
|
|
18
|
+
`num_reads` 64 (were 1). The chunk size changes outputs only through floating-point rounding.
|
|
19
|
+
- Outputs are not bitwise those of v1: the new kernels round differently, and exact top-k ties go to
|
|
20
|
+
the larger rank sum, then the larger first rank (slot score: the float32 sum of the factor
|
|
21
|
+
scores).
|
|
22
|
+
|
|
23
|
+
### Package
|
|
24
|
+
- pip package: `pip install sparse-delta-memory` (2.0.0) installs the top-level package
|
|
25
|
+
`sparse_delta_memory` (Python >= 3.12; pins the tested `torch==2.13.0` and `triton==3.7.1`:
|
|
26
|
+
install the CUDA 13.0 build of torch first; also installs `ninja` and `einops`). The CUDA
|
|
27
|
+
extensions compile on first use and need a CUDA toolkit matching `torch.version.cuda` and a host
|
|
28
|
+
C++ compiler. The training code (`lingua/`, `apps/`), benchmarks and tests stay in this
|
|
29
|
+
repository.
|
|
30
|
+
|
|
31
|
+
### Deterministic
|
|
32
|
+
- Outputs, the final bank and every gradient are bitwise identical across repeated calls, fresh
|
|
33
|
+
processes and CUDA-graph replays, for fixed inputs, settings and GPU type (v1 used float atomics);
|
|
34
|
+
not across GPU types, library builds, rank counts or `chunk_size` values (a different rounding by
|
|
35
|
+
design). See README, Determinism.
|
|
36
|
+
- `grad_bank_fp32` (opt-in): the backward accumulates the bank gradient in float32 and casts it back
|
|
37
|
+
once.
|
|
38
|
+
- Known limitations: with a cold extension cache the first call compiles the CUDA extensions
|
|
39
|
+
(about 6 minutes for a no-grad call, 10 for a training call on a GB300 node).
|
|
40
|
+
|
|
41
|
+
### New
|
|
42
|
+
- Any number of product-key factors of any widths (`product_key_factor_dims`); exact product-key
|
|
43
|
+
top-k with a deterministic sparse backward.
|
|
44
|
+
- CUDA graphs of the write/read (`cuda_graph`; on in `debug_sdm.yaml`, `debug_hybrid.yaml` and
|
|
45
|
+
`sdm_flagship.yaml`), with `suspend_cuda_graphs()` and `reset_cuda_graphs()`; layers of one shape
|
|
46
|
+
in different checkpoint regions share one set of graphs, and a replayed call's state copies its
|
|
47
|
+
final bank at the first read (README, CUDA graphs).
|
|
48
|
+
- A single-token decode kernel; generation decodes SDM models from a CUDA graph of the decode step
|
|
49
|
+
(`sdm_decode_cuda_graph`, default `true`).
|
|
50
|
+
- bf16 snapshots on a float32 bank (`snapshot_quant="bf16"`): training saves the backward snapshot
|
|
51
|
+
in bfloat16, half the size of `none`'s float32 snapshot, on the same CUDA kernels as `none` for
|
|
52
|
+
every head dim (the forward is `none`'s, bit for bit, measured on H100 and GB300; the gradients of
|
|
53
|
+
`k_val`, the gates and `q_val` read the bfloat16-rounded rows). On a bfloat16 bank,
|
|
54
|
+
`snapshot_quant="bf16"` changes nothing: bit-identical to `"none"` (measured on H100 and GB300). A
|
|
55
|
+
training call these kernels do not take, including one whose snapshot reaches `2**31` rows, raises
|
|
56
|
+
`UnsupportedConfigurationError` before the op does any work.
|
|
57
|
+
- `benchmarks/` (layer, model and decoding speed against v1) and a larger test suite.
|
|
58
|
+
|
|
59
|
+
### Behavior changes
|
|
60
|
+
- Calls are routed on whether they may need a backward, not on train/eval mode.
|
|
61
|
+
- float16 raises. Out-of-range settings (for example more writes or reads per token than
|
|
62
|
+
`slots_per_head`) raise at construction instead of being capped.
|
|
63
|
+
- Decoding with a cache bank smaller than the configured slots now raises instead of reading out of
|
|
64
|
+
bounds.
|
|
65
|
+
- A direct `sdm_write_read` call that runs several streams over one shared bank must pass
|
|
66
|
+
`shared_bank=True`, which asserts that the streams' slots are disjoint.
|
|
67
|
+
- No fallback paths: one native kernel family per supported GPU class, and an explicit error
|
|
68
|
+
otherwise. Refusals are raised at the entry of the write/read op (`sdm_write_read`); in a layer
|
|
69
|
+
call, the projections, top-k and bank copy (with `cuda_graph`, also input copies) run first.
|
|
70
|
+
Training calls (calls that may need a backward) that v1 accepted but that have no native route in
|
|
71
|
+
2.0.0 raise `UnsupportedConfigurationError` (a `ValueError`) before the op does any work, naming
|
|
72
|
+
the reason (by code reading):
|
|
73
|
+
- int4 snapshots on a float32 bank whose `ceil(head_dim / 128)` equal column slices are 4 mod 8
|
|
74
|
+
columns wide (68 head dims, e.g. 12, 36, 100, 136, 200, 300): use `snapshot_quant="fp8"` or
|
|
75
|
+
`"none"`; native support is planned for 2.0.1.
|
|
76
|
+
- fp8 / int4 snapshots for the head dims without a quantized route (head_dim above 16384, not a
|
|
77
|
+
multiple of 4, or not splitting into `ceil(head_dim / 128)` equal column slices of 16-byte
|
|
78
|
+
rows), on every GPU: use `snapshot_quant="none"`; support is planned for a later release.
|
|
79
|
+
- head_dim above `2**20`, on every GPU and also without a backward (the native kernels take
|
|
80
|
+
head dims up to `2**20`; v1 did not check it): use a smaller head_dim.
|
|
81
|
+
Also by code reading: on RTX GPUs, `chunk_size` above 128 raises a `ValueError` before the op does
|
|
82
|
+
any work, with or without a backward (v1 accepted it, with 256 as its default): use `chunk_size`
|
|
83
|
+
<= 128 there. Calls without a backward (`torch.no_grad()`, inference) run as
|
|
84
|
+
`snapshot_quant="none"`, so none of the snapshot refusals apply to them. Training whose kernel
|
|
85
|
+
plans fit and decode are not refused on any supported GPU; RTX GPUs are not tested yet: each gets
|
|
86
|
+
a warning when the CUDA extensions load (Known limitations).
|
|
87
|
+
- The WY solve always uses IEEE float32; the dual matmul of bfloat16 banks uses TF32; other
|
|
88
|
+
float32 matmuls follow `torch.backends.cuda.matmul.allow_tf32`. Autocast is off inside the op.
|
|
89
|
+
|
|
90
|
+
### Configs
|
|
91
|
+
- `sdm_flagship.yaml` and `sdm_7B.yaml`: 64 writes and reads per token, the paper's setting
|
|
92
|
+
(previously 128); `sdm_flagship.yaml`: chunk 64
|
|
93
|
+
(previously 256).
|
|
94
|
+
- SWA window 128, the paper's, in the 1.4B and 7B pairs (previously 1024); `baseline_1.4B.yaml`
|
|
95
|
+
gates the output of its full-attention layers (`full_attn_gate`).
|
|
96
|
+
|
|
97
|
+
### Removed
|
|
98
|
+
- The per-shape kernels and their fallbacks, `triton_argsort`, the context-parallel code (no
|
|
99
|
+
config enabled it) and `SNAPSHOT_QUANT.md`.
|
|
100
|
+
- `GatedSparseMemoryWriteRead` (use `sparse_delta_memory.memory_ops.sdm_write_read`),
|
|
101
|
+
`fused_decode_step` (use `sparse_delta_memory.decode.sdm_decode_step`), `fast_embedding_bag` (no
|
|
102
|
+
replacement: the op gathers its own rows) and `SparseDeltaMemory.read` (reads happen inside the
|
|
103
|
+
write/read call).
|
|
104
|
+
|
|
105
|
+
### Known limitations
|
|
106
|
+
- A second backward through one SDM call (`retain_graph=True`) raises a RuntimeError (the first
|
|
107
|
+
backward restores the bank in place), except on calls the `cuda_graph` option serves (not a
|
|
108
|
+
differentiable call that starts from a cache).
|
|
109
|
+
- Host-side checks: the GPU-build check runs once per device and build environment when the CUDA
|
|
110
|
+
extensions load, never per call; the argument checks run on every op call and the refusal checks
|
|
111
|
+
once per device and call signature (a later call is one memo lookup).
|
|
112
|
+
- Every supported GPU class runs the default `snapshot_quant="none"` on a bfloat16 bank, with no
|
|
113
|
+
warning except on RTX GPUs (below). A100-class GPUs (sm_80: A100, A30, A800) run every snapshot
|
|
114
|
+
mode: tested on A100 with this release (training with unquantized, fp8 and int4 snapshots, and
|
|
115
|
+
bf16 snapshots on a float32 bank). RTX GPUs (sm_86: RTX 30,
|
|
116
|
+
A10, A40, A16, A2; sm_89: RTX 40, L4, L40, L40S, RTX 6000 Ada; sm_120: RTX 50, RTX PRO 6000
|
|
117
|
+
Blackwell) are designed to run on the portable CUDA kernels (chunk_size <= 128); not tested on
|
|
118
|
+
RTX hardware: each RTX GPU gets one warning per process when the CUDA extensions first load,
|
|
119
|
+
whatever the snapshot mode (by code reading). A100, H100, B200 and GB300 GPUs never warn. The
|
|
120
|
+
warning is `sparse_delta_memory.UntestedHardwareWarning` (a `UserWarning`); silence it with
|
|
121
|
+
`warnings.filterwarnings("ignore", category=sparse_delta_memory.UntestedHardwareWarning)`.
|
|
122
|
+
Inference on these GPUs runs the unquantized path whatever `snapshot_quant` is set (measured on
|
|
123
|
+
A100; for bf16 snapshots, by code reading).
|
|
124
|
+
- Planned for 2.0.1: opt-in per-layer activation checkpointing.
|
|
125
|
+
- Tested with torch 2.13.0, triton 3.7.1 and CUDA 13.0 on NVIDIA GB300; the test suite also on
|
|
126
|
+
H100.
|
|
127
|
+
|
|
128
|
+
## 1.0.0: initial public release (2026-07-06)
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
Attribution-NonCommercial 4.0 International
|
|
2
|
+
|
|
3
|
+
=======================================================================
|
|
4
|
+
|
|
5
|
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
|
6
|
+
does not provide legal services or legal advice. Distribution of
|
|
7
|
+
Creative Commons public licenses does not create a lawyer-client or
|
|
8
|
+
other relationship. Creative Commons makes its licenses and related
|
|
9
|
+
information available on an "as-is" basis. Creative Commons gives no
|
|
10
|
+
warranties regarding its licenses, any material licensed under their
|
|
11
|
+
terms and conditions, or any related information. Creative Commons
|
|
12
|
+
disclaims all liability for damages resulting from their use to the
|
|
13
|
+
fullest extent possible.
|
|
14
|
+
|
|
15
|
+
Using Creative Commons Public Licenses
|
|
16
|
+
|
|
17
|
+
Creative Commons public licenses provide a standard set of terms and
|
|
18
|
+
conditions that creators and other rights holders may use to share
|
|
19
|
+
original works of authorship and other material subject to copyright
|
|
20
|
+
and certain other rights specified in the public license below. The
|
|
21
|
+
following considerations are for informational purposes only, are not
|
|
22
|
+
exhaustive, and do not form part of our licenses.
|
|
23
|
+
|
|
24
|
+
Considerations for licensors: Our public licenses are
|
|
25
|
+
intended for use by those authorized to give the public
|
|
26
|
+
permission to use material in ways otherwise restricted by
|
|
27
|
+
copyright and certain other rights. Our licenses are
|
|
28
|
+
irrevocable. Licensors should read and understand the terms
|
|
29
|
+
and conditions of the license they choose before applying it.
|
|
30
|
+
Licensors should also secure all rights necessary before
|
|
31
|
+
applying our licenses so that the public can reuse the
|
|
32
|
+
material as expected. Licensors should clearly mark any
|
|
33
|
+
material not subject to the license. This includes other CC-
|
|
34
|
+
licensed material, or material used under an exception or
|
|
35
|
+
limitation to copyright. More considerations for licensors:
|
|
36
|
+
wiki.creativecommons.org/Considerations_for_licensors
|
|
37
|
+
|
|
38
|
+
Considerations for the public: By using one of our public
|
|
39
|
+
licenses, a licensor grants the public permission to use the
|
|
40
|
+
licensed material under specified terms and conditions. If
|
|
41
|
+
the licensor's permission is not necessary for any reason--for
|
|
42
|
+
example, because of any applicable exception or limitation to
|
|
43
|
+
copyright--then that use is not regulated by the license. Our
|
|
44
|
+
licenses grant only permissions under copyright and certain
|
|
45
|
+
other rights that a licensor has authority to grant. Use of
|
|
46
|
+
the licensed material may still be restricted for other
|
|
47
|
+
reasons, including because others have copyright or other
|
|
48
|
+
rights in the material. A licensor may make special requests,
|
|
49
|
+
such as asking that all changes be marked or described.
|
|
50
|
+
Although not required by our licenses, you are encouraged to
|
|
51
|
+
respect those requests where reasonable. More considerations
|
|
52
|
+
for the public:
|
|
53
|
+
wiki.creativecommons.org/Considerations_for_licensees
|
|
54
|
+
|
|
55
|
+
=======================================================================
|
|
56
|
+
|
|
57
|
+
Creative Commons Attribution-NonCommercial 4.0 International Public
|
|
58
|
+
License
|
|
59
|
+
|
|
60
|
+
By exercising the Licensed Rights (defined below), You accept and agree
|
|
61
|
+
to be bound by the terms and conditions of this Creative Commons
|
|
62
|
+
Attribution-NonCommercial 4.0 International Public License ("Public
|
|
63
|
+
License"). To the extent this Public License may be interpreted as a
|
|
64
|
+
contract, You are granted the Licensed Rights in consideration of Your
|
|
65
|
+
acceptance of these terms and conditions, and the Licensor grants You
|
|
66
|
+
such rights in consideration of benefits the Licensor receives from
|
|
67
|
+
making the Licensed Material available under these terms and
|
|
68
|
+
conditions.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
Section 1 -- Definitions.
|
|
72
|
+
|
|
73
|
+
a. Adapted Material means material subject to Copyright and Similar
|
|
74
|
+
Rights that is derived from or based upon the Licensed Material
|
|
75
|
+
and in which the Licensed Material is translated, altered,
|
|
76
|
+
arranged, transformed, or otherwise modified in a manner requiring
|
|
77
|
+
permission under the Copyright and Similar Rights held by the
|
|
78
|
+
Licensor. For purposes of this Public License, where the Licensed
|
|
79
|
+
Material is a musical work, performance, or sound recording,
|
|
80
|
+
Adapted Material is always produced where the Licensed Material is
|
|
81
|
+
synched in timed relation with a moving image.
|
|
82
|
+
|
|
83
|
+
b. Adapter's License means the license You apply to Your Copyright
|
|
84
|
+
and Similar Rights in Your contributions to Adapted Material in
|
|
85
|
+
accordance with the terms and conditions of this Public License.
|
|
86
|
+
|
|
87
|
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
|
88
|
+
closely related to copyright including, without limitation,
|
|
89
|
+
performance, broadcast, sound recording, and Sui Generis Database
|
|
90
|
+
Rights, without regard to how the rights are labeled or
|
|
91
|
+
categorized. For purposes of this Public License, the rights
|
|
92
|
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
|
93
|
+
Rights.
|
|
94
|
+
d. Effective Technological Measures means those measures that, in the
|
|
95
|
+
absence of proper authority, may not be circumvented under laws
|
|
96
|
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
|
97
|
+
Treaty adopted on December 20, 1996, and/or similar international
|
|
98
|
+
agreements.
|
|
99
|
+
|
|
100
|
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
|
101
|
+
any other exception or limitation to Copyright and Similar Rights
|
|
102
|
+
that applies to Your use of the Licensed Material.
|
|
103
|
+
|
|
104
|
+
f. Licensed Material means the artistic or literary work, database,
|
|
105
|
+
or other material to which the Licensor applied this Public
|
|
106
|
+
License.
|
|
107
|
+
|
|
108
|
+
g. Licensed Rights means the rights granted to You subject to the
|
|
109
|
+
terms and conditions of this Public License, which are limited to
|
|
110
|
+
all Copyright and Similar Rights that apply to Your use of the
|
|
111
|
+
Licensed Material and that the Licensor has authority to license.
|
|
112
|
+
|
|
113
|
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
|
114
|
+
under this Public License.
|
|
115
|
+
|
|
116
|
+
i. NonCommercial means not primarily intended for or directed towards
|
|
117
|
+
commercial advantage or monetary compensation. For purposes of
|
|
118
|
+
this Public License, the exchange of the Licensed Material for
|
|
119
|
+
other material subject to Copyright and Similar Rights by digital
|
|
120
|
+
file-sharing or similar means is NonCommercial provided there is
|
|
121
|
+
no payment of monetary compensation in connection with the
|
|
122
|
+
exchange.
|
|
123
|
+
|
|
124
|
+
j. Share means to provide material to the public by any means or
|
|
125
|
+
process that requires permission under the Licensed Rights, such
|
|
126
|
+
as reproduction, public display, public performance, distribution,
|
|
127
|
+
dissemination, communication, or importation, and to make material
|
|
128
|
+
available to the public including in ways that members of the
|
|
129
|
+
public may access the material from a place and at a time
|
|
130
|
+
individually chosen by them.
|
|
131
|
+
|
|
132
|
+
k. Sui Generis Database Rights means rights other than copyright
|
|
133
|
+
resulting from Directive 96/9/EC of the European Parliament and of
|
|
134
|
+
the Council of 11 March 1996 on the legal protection of databases,
|
|
135
|
+
as amended and/or succeeded, as well as other essentially
|
|
136
|
+
equivalent rights anywhere in the world.
|
|
137
|
+
|
|
138
|
+
l. You means the individual or entity exercising the Licensed Rights
|
|
139
|
+
under this Public License. Your has a corresponding meaning.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
Section 2 -- Scope.
|
|
143
|
+
|
|
144
|
+
a. License grant.
|
|
145
|
+
|
|
146
|
+
1. Subject to the terms and conditions of this Public License,
|
|
147
|
+
the Licensor hereby grants You a worldwide, royalty-free,
|
|
148
|
+
non-sublicensable, non-exclusive, irrevocable license to
|
|
149
|
+
exercise the Licensed Rights in the Licensed Material to:
|
|
150
|
+
|
|
151
|
+
a. reproduce and Share the Licensed Material, in whole or
|
|
152
|
+
in part, for NonCommercial purposes only; and
|
|
153
|
+
|
|
154
|
+
b. produce, reproduce, and Share Adapted Material for
|
|
155
|
+
NonCommercial purposes only.
|
|
156
|
+
|
|
157
|
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
|
158
|
+
Exceptions and Limitations apply to Your use, this Public
|
|
159
|
+
License does not apply, and You do not need to comply with
|
|
160
|
+
its terms and conditions.
|
|
161
|
+
|
|
162
|
+
3. Term. The term of this Public License is specified in Section
|
|
163
|
+
6(a).
|
|
164
|
+
|
|
165
|
+
4. Media and formats; technical modifications allowed. The
|
|
166
|
+
Licensor authorizes You to exercise the Licensed Rights in
|
|
167
|
+
all media and formats whether now known or hereafter created,
|
|
168
|
+
and to make technical modifications necessary to do so. The
|
|
169
|
+
Licensor waives and/or agrees not to assert any right or
|
|
170
|
+
authority to forbid You from making technical modifications
|
|
171
|
+
necessary to exercise the Licensed Rights, including
|
|
172
|
+
technical modifications necessary to circumvent Effective
|
|
173
|
+
Technological Measures. For purposes of this Public License,
|
|
174
|
+
simply making modifications authorized by this Section 2(a)
|
|
175
|
+
(4) never produces Adapted Material.
|
|
176
|
+
|
|
177
|
+
5. Downstream recipients.
|
|
178
|
+
|
|
179
|
+
a. Offer from the Licensor -- Licensed Material. Every
|
|
180
|
+
recipient of the Licensed Material automatically
|
|
181
|
+
receives an offer from the Licensor to exercise the
|
|
182
|
+
Licensed Rights under the terms and conditions of this
|
|
183
|
+
Public License.
|
|
184
|
+
|
|
185
|
+
b. No downstream restrictions. You may not offer or impose
|
|
186
|
+
any additional or different terms or conditions on, or
|
|
187
|
+
apply any Effective Technological Measures to, the
|
|
188
|
+
Licensed Material if doing so restricts exercise of the
|
|
189
|
+
Licensed Rights by any recipient of the Licensed
|
|
190
|
+
Material.
|
|
191
|
+
|
|
192
|
+
6. No endorsement. Nothing in this Public License constitutes or
|
|
193
|
+
may be construed as permission to assert or imply that You
|
|
194
|
+
are, or that Your use of the Licensed Material is, connected
|
|
195
|
+
with, or sponsored, endorsed, or granted official status by,
|
|
196
|
+
the Licensor or others designated to receive attribution as
|
|
197
|
+
provided in Section 3(a)(1)(A)(i).
|
|
198
|
+
|
|
199
|
+
b. Other rights.
|
|
200
|
+
|
|
201
|
+
1. Moral rights, such as the right of integrity, are not
|
|
202
|
+
licensed under this Public License, nor are publicity,
|
|
203
|
+
privacy, and/or other similar personality rights; however, to
|
|
204
|
+
the extent possible, the Licensor waives and/or agrees not to
|
|
205
|
+
assert any such rights held by the Licensor to the limited
|
|
206
|
+
extent necessary to allow You to exercise the Licensed
|
|
207
|
+
Rights, but not otherwise.
|
|
208
|
+
|
|
209
|
+
2. Patent and trademark rights are not licensed under this
|
|
210
|
+
Public License.
|
|
211
|
+
|
|
212
|
+
3. To the extent possible, the Licensor waives any right to
|
|
213
|
+
collect royalties from You for the exercise of the Licensed
|
|
214
|
+
Rights, whether directly or through a collecting society
|
|
215
|
+
under any voluntary or waivable statutory or compulsory
|
|
216
|
+
licensing scheme. In all other cases the Licensor expressly
|
|
217
|
+
reserves any right to collect such royalties, including when
|
|
218
|
+
the Licensed Material is used other than for NonCommercial
|
|
219
|
+
purposes.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
Section 3 -- License Conditions.
|
|
223
|
+
|
|
224
|
+
Your exercise of the Licensed Rights is expressly made subject to the
|
|
225
|
+
following conditions.
|
|
226
|
+
|
|
227
|
+
a. Attribution.
|
|
228
|
+
|
|
229
|
+
1. If You Share the Licensed Material (including in modified
|
|
230
|
+
form), You must:
|
|
231
|
+
|
|
232
|
+
a. retain the following if it is supplied by the Licensor
|
|
233
|
+
with the Licensed Material:
|
|
234
|
+
|
|
235
|
+
i. identification of the creator(s) of the Licensed
|
|
236
|
+
Material and any others designated to receive
|
|
237
|
+
attribution, in any reasonable manner requested by
|
|
238
|
+
the Licensor (including by pseudonym if
|
|
239
|
+
designated);
|
|
240
|
+
|
|
241
|
+
ii. a copyright notice;
|
|
242
|
+
|
|
243
|
+
iii. a notice that refers to this Public License;
|
|
244
|
+
|
|
245
|
+
iv. a notice that refers to the disclaimer of
|
|
246
|
+
warranties;
|
|
247
|
+
|
|
248
|
+
v. a URI or hyperlink to the Licensed Material to the
|
|
249
|
+
extent reasonably practicable;
|
|
250
|
+
|
|
251
|
+
b. indicate if You modified the Licensed Material and
|
|
252
|
+
retain an indication of any previous modifications; and
|
|
253
|
+
|
|
254
|
+
c. indicate the Licensed Material is licensed under this
|
|
255
|
+
Public License, and include the text of, or the URI or
|
|
256
|
+
hyperlink to, this Public License.
|
|
257
|
+
|
|
258
|
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
|
259
|
+
reasonable manner based on the medium, means, and context in
|
|
260
|
+
which You Share the Licensed Material. For example, it may be
|
|
261
|
+
reasonable to satisfy the conditions by providing a URI or
|
|
262
|
+
hyperlink to a resource that includes the required
|
|
263
|
+
information.
|
|
264
|
+
|
|
265
|
+
3. If requested by the Licensor, You must remove any of the
|
|
266
|
+
information required by Section 3(a)(1)(A) to the extent
|
|
267
|
+
reasonably practicable.
|
|
268
|
+
|
|
269
|
+
4. If You Share Adapted Material You produce, the Adapter's
|
|
270
|
+
License You apply must not prevent recipients of the Adapted
|
|
271
|
+
Material from complying with this Public License.
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
Section 4 -- Sui Generis Database Rights.
|
|
275
|
+
|
|
276
|
+
Where the Licensed Rights include Sui Generis Database Rights that
|
|
277
|
+
apply to Your use of the Licensed Material:
|
|
278
|
+
|
|
279
|
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
|
280
|
+
to extract, reuse, reproduce, and Share all or a substantial
|
|
281
|
+
portion of the contents of the database for NonCommercial purposes
|
|
282
|
+
only;
|
|
283
|
+
|
|
284
|
+
b. if You include all or a substantial portion of the database
|
|
285
|
+
contents in a database in which You have Sui Generis Database
|
|
286
|
+
Rights, then the database in which You have Sui Generis Database
|
|
287
|
+
Rights (but not its individual contents) is Adapted Material; and
|
|
288
|
+
|
|
289
|
+
c. You must comply with the conditions in Section 3(a) if You Share
|
|
290
|
+
all or a substantial portion of the contents of the database.
|
|
291
|
+
|
|
292
|
+
For the avoidance of doubt, this Section 4 supplements and does not
|
|
293
|
+
replace Your obligations under this Public License where the Licensed
|
|
294
|
+
Rights include other Copyright and Similar Rights.
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
|
298
|
+
|
|
299
|
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
|
300
|
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
|
301
|
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
|
302
|
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
|
303
|
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
|
304
|
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
305
|
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
|
306
|
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
|
307
|
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
|
308
|
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
|
309
|
+
|
|
310
|
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
|
311
|
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
|
312
|
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
|
313
|
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
|
314
|
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
|
315
|
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
|
316
|
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
|
317
|
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
|
318
|
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
|
319
|
+
|
|
320
|
+
c. The disclaimer of warranties and limitation of liability provided
|
|
321
|
+
above shall be interpreted in a manner that, to the extent
|
|
322
|
+
possible, most closely approximates an absolute disclaimer and
|
|
323
|
+
waiver of all liability.
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
Section 6 -- Term and Termination.
|
|
327
|
+
|
|
328
|
+
a. This Public License applies for the term of the Copyright and
|
|
329
|
+
Similar Rights licensed here. However, if You fail to comply with
|
|
330
|
+
this Public License, then Your rights under this Public License
|
|
331
|
+
terminate automatically.
|
|
332
|
+
|
|
333
|
+
b. Where Your right to use the Licensed Material has terminated under
|
|
334
|
+
Section 6(a), it reinstates:
|
|
335
|
+
|
|
336
|
+
1. automatically as of the date the violation is cured, provided
|
|
337
|
+
it is cured within 30 days of Your discovery of the
|
|
338
|
+
violation; or
|
|
339
|
+
|
|
340
|
+
2. upon express reinstatement by the Licensor.
|
|
341
|
+
|
|
342
|
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
|
343
|
+
right the Licensor may have to seek remedies for Your violations
|
|
344
|
+
of this Public License.
|
|
345
|
+
|
|
346
|
+
c. For the avoidance of doubt, the Licensor may also offer the
|
|
347
|
+
Licensed Material under separate terms or conditions or stop
|
|
348
|
+
distributing the Licensed Material at any time; however, doing so
|
|
349
|
+
will not terminate this Public License.
|
|
350
|
+
|
|
351
|
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
|
352
|
+
License.
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
Section 7 -- Other Terms and Conditions.
|
|
356
|
+
|
|
357
|
+
a. The Licensor shall not be bound by any additional or different
|
|
358
|
+
terms or conditions communicated by You unless expressly agreed.
|
|
359
|
+
|
|
360
|
+
b. Any arrangements, understandings, or agreements regarding the
|
|
361
|
+
Licensed Material not stated herein are separate from and
|
|
362
|
+
independent of the terms and conditions of this Public License.
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
Section 8 -- Interpretation.
|
|
366
|
+
|
|
367
|
+
a. For the avoidance of doubt, this Public License does not, and
|
|
368
|
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
|
369
|
+
conditions on any use of the Licensed Material that could lawfully
|
|
370
|
+
be made without permission under this Public License.
|
|
371
|
+
|
|
372
|
+
b. To the extent possible, if any provision of this Public License is
|
|
373
|
+
deemed unenforceable, it shall be automatically reformed to the
|
|
374
|
+
minimum extent necessary to make it enforceable. If the provision
|
|
375
|
+
cannot be reformed, it shall be severed from this Public License
|
|
376
|
+
without affecting the enforceability of the remaining terms and
|
|
377
|
+
conditions.
|
|
378
|
+
|
|
379
|
+
c. No term or condition of this Public License will be waived and no
|
|
380
|
+
failure to comply consented to unless expressly agreed to by the
|
|
381
|
+
Licensor.
|
|
382
|
+
|
|
383
|
+
d. Nothing in this Public License constitutes or may be interpreted
|
|
384
|
+
as a limitation upon, or waiver of, any privileges and immunities
|
|
385
|
+
that apply to the Licensor or You, including from the legal
|
|
386
|
+
processes of any jurisdiction or authority.
|
|
387
|
+
|
|
388
|
+
=======================================================================
|
|
389
|
+
|
|
390
|
+
Creative Commons is not a party to its public
|
|
391
|
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
|
392
|
+
its public licenses to material it publishes and in those instances
|
|
393
|
+
will be considered the “Licensor.” The text of the Creative Commons
|
|
394
|
+
public licenses is dedicated to the public domain under the CC0 Public
|
|
395
|
+
Domain Dedication. Except for the limited purpose of indicating that
|
|
396
|
+
material is shared under a Creative Commons public license or as
|
|
397
|
+
otherwise permitted by the Creative Commons policies published at
|
|
398
|
+
creativecommons.org/policies, Creative Commons does not authorize the
|
|
399
|
+
use of the trademark "Creative Commons" or any other trademark or logo
|
|
400
|
+
of Creative Commons without its prior written consent including,
|
|
401
|
+
without limitation, in connection with any unauthorized modifications
|
|
402
|
+
to any of its public licenses or any other arrangements,
|
|
403
|
+
understandings, or agreements concerning use of licensed material. For
|
|
404
|
+
the avoidance of doubt, this paragraph does not form part of the
|
|
405
|
+
public licenses.
|
|
406
|
+
|
|
407
|
+
Creative Commons may be contacted at creativecommons.org.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# The source distribution: the package (with its README and CUDA header), its tests (the ones that
|
|
2
|
+
# need this repository's training code skip outside a checkout), the license and the changelog.
|
|
3
|
+
graft sparse_delta_memory
|
|
4
|
+
graft tests
|
|
5
|
+
include LICENSE CHANGELOG.md requirements-dev.txt
|
|
6
|
+
global-exclude *.py[cod] *.so *.o
|
|
7
|
+
prune **/__pycache__
|