spatial-computing 0.12.1__py3-none-any.whl → 0.12.2__py3-none-any.whl

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.
spatial/__init__.py CHANGED
@@ -3,4 +3,4 @@
3
3
  Status of every engine is declared in spatial.core.registry and must be backed
4
4
  by a test or benchmark before being set to OPERATIONAL.
5
5
  """
6
- __version__ = "0.12.1"
6
+ __version__ = "0.12.2"
@@ -107,8 +107,16 @@ class ComputeProvider(Provider):
107
107
  a_ = t1 - b_ * w1
108
108
  if b_ > 0 and a_ >= 0: # time = fixed cost + per-work cost: separates JIT/thread start-up from speed
109
109
  est, basis = a_ + b_ * wf, f"probe 1/8+1/4, affine fit"
110
- else: # noisy probes: fall back to proportional scaling from the larger one
111
- est, basis = t2 * wf / w2, "probe 1/4, proportional"
110
+ else: # the two probes cannot separate fixed cost from speed: probe once more, larger
111
+ s3 = max(s2 * 2, s // 2)
112
+ t3, _ = _best_of(lambda: workloads.run(wname, **{**params, scale: s3}))
113
+ w3 = s3 ** fam["exp"]
114
+ b3 = (t3 - t2) / (w3 - w2) if w3 > w2 else 0.0
115
+ a3 = t2 - b3 * w2
116
+ if b3 > 0 and a3 >= 0:
117
+ est, basis = a3 + b3 * wf, "probe 1/4+1/2, affine fit"
118
+ else: # still noisy: proportional scaling from the largest probe
119
+ est, basis = t3 * wf / w3, "probe 1/2, proportional"
112
120
  o = Option("compute", vname, True, est_time_s=est, rate_usd_h=planner.prices.device_usd_h.get(vname, planner.prices.local_usd_per_hour),
113
121
  isolated=None, basis=basis,
114
122
  run=(lambda wn=wname: workloads.run(wn, **params)), meta={"workload": wname, "params": params})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spatial-computing
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Spatial Computing: open-source infrastructure efficiency toolkit. Measure, decide, prove (compute, tiered memory, runtime routing, hybrid quantum language)
5
5
  Author: Spatial Computing contributors
6
6
  License-Expression: Apache-2.0
@@ -37,7 +37,7 @@ Dynamic: license-file
37
37
 
38
38
  One objective for the whole infrastructure: get every job done correctly at the lowest cost, and prove it. Spatial Computing prices every way to run a job across compute, memory, runtime, quantum, AI, science and a fleet of machines, picks the cheapest, and records the estimate next to what really happened. A gain is claimed only when it is measured. It does not add RAM, cores or GPUs: it compares execution strategies on the hardware you have, trades one resource for another in numbers, and says plainly what it cannot do.
39
39
 
40
- > **Status: v0.12.1, early-stage open-source toolkit.** Everything here was built and measured on a single 2017 MacBook Pro (Intel i7-7660U, 2 cores, 16 GB). Nothing has been proven on a second machine, a data-center GPU or a real quantum computer. See [Limitations](docs/LIMITATIONS.md) and the [site](https://spatial-computing-ecru.vercel.app).
40
+ > **Status: v0.12.2, early-stage open-source toolkit.** Everything here was built and measured on a single 2017 MacBook Pro (Intel i7-7660U, 2 cores, 16 GB). Nothing has been proven on a second machine, a data-center GPU or a real quantum computer. See [Limitations](docs/LIMITATIONS.md) and the [site](https://spatial-computing-ecru.vercel.app).
41
41
 
42
42
  [Français](README.fr.md)
43
43
 
@@ -1,4 +1,4 @@
1
- spatial/__init__.py,sha256=41qvny3RxwiDKvY0eEFm1jXGkZ3hN8yP-eX0tcymwVQ,208
1
+ spatial/__init__.py,sha256=bAIyZjnwvO9gEyXUrqr8NUw45IXlcmxHkT2CvKTlsO0,208
2
2
  spatial/cli.py,sha256=Gs8JUZFNR4JQ_8No8X0od1fu1HzvgkbUO8OZ2GYn3jc,15331
3
3
  spatial/ai/__init__.py,sha256=qrQZBRNCGwnMp_Rx7HNblvGfgmLApVrdIAPcYVmZdCg,926
4
4
  spatial/ai/kvcache.py,sha256=7xrNI3zBKSoLA9ZjI1U2TZQ7GdXMZDzZq50qBrbWAWY,4054
@@ -71,10 +71,10 @@ spatial/simulation/nbody.py,sha256=WcvcrQ1f4c7wjDsLRyxUFMkMTT1HfJ-Es3kT0uf80Og,1
71
71
  spatial/unified/__init__.py,sha256=jc85fwURTd_6RZymNMjxtLVY51mzTXTXyuvyk0KZrLo,674
72
72
  spatial/unified/model.py,sha256=oTOvf0ImSdXXn75sf92bgMCixju-YmMWHiVkRHQdJGA,7088
73
73
  spatial/unified/planner.py,sha256=kdpzCpZJ-RdjCj8MNaES4TPdSug0skSQ53pKUi2Q-Bo,5429
74
- spatial/unified/providers.py,sha256=Qj1_5QqEQiuNs9tlPkr2an0536yj68hwqfE1afy1CUY,21126
75
- spatial_computing-0.12.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
76
- spatial_computing-0.12.1.dist-info/METADATA,sha256=B4ELmfkYhjUfAkdNjBjH9VVodO017sZbGgYm65jGa8w,6697
77
- spatial_computing-0.12.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
78
- spatial_computing-0.12.1.dist-info/entry_points.txt,sha256=UIFCHJL01u7PIPej7EUHRI7rWEY8uBhufZ-_ulXUPRk,79
79
- spatial_computing-0.12.1.dist-info/top_level.txt,sha256=ZHke8hWgy4qIqEGq7omus3O-T7AhmPoc-cqr7JdGGxQ,8
80
- spatial_computing-0.12.1.dist-info/RECORD,,
74
+ spatial/unified/providers.py,sha256=HBOoIhlJ7nuN6nTvkxEiG004A-HEiaM7PY7qdKJURn0,21664
75
+ spatial_computing-0.12.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
76
+ spatial_computing-0.12.2.dist-info/METADATA,sha256=F0IQPQqyxOV0s2WExIY6jpWk3APq_Oatg5EvDh5-ThY,6697
77
+ spatial_computing-0.12.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
78
+ spatial_computing-0.12.2.dist-info/entry_points.txt,sha256=UIFCHJL01u7PIPej7EUHRI7rWEY8uBhufZ-_ulXUPRk,79
79
+ spatial_computing-0.12.2.dist-info/top_level.txt,sha256=ZHke8hWgy4qIqEGq7omus3O-T7AhmPoc-cqr7JdGGxQ,8
80
+ spatial_computing-0.12.2.dist-info/RECORD,,