machboost 0.16.20__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.
Files changed (45) hide show
  1. machboost/__init__.py +102 -0
  2. machboost/__main__.py +5 -0
  3. machboost/accelerator.py +782 -0
  4. machboost/adapters/__init__.py +23 -0
  5. machboost/adapters/dflash.py +396 -0
  6. machboost/adapters/huggingface.py +263 -0
  7. machboost/adapters/mlx.py +768 -0
  8. machboost/adapters/mlx_vlm.py +1123 -0
  9. machboost/adapters/ollama.py +490 -0
  10. machboost/adapters/ollama_mlx.py +480 -0
  11. machboost/bench.py +352 -0
  12. machboost/claude_desktop.py +457 -0
  13. machboost/cli.py +3747 -0
  14. machboost/client.py +1069 -0
  15. machboost/coding.py +438 -0
  16. machboost/connections.py +220 -0
  17. machboost/context_bench.py +211 -0
  18. machboost/core.py +441 -0
  19. machboost/extensions.py +603 -0
  20. machboost/generation.py +33 -0
  21. machboost/latency.py +580 -0
  22. machboost/memory.py +868 -0
  23. machboost/model_store.py +173 -0
  24. machboost/models.py +1424 -0
  25. machboost/ollama_compat.py +275 -0
  26. machboost/protocols.py +727 -0
  27. machboost/providers.py +505 -0
  28. machboost/reasoning.py +190 -0
  29. machboost/relay.py +348 -0
  30. machboost/routing.py +433 -0
  31. machboost/scheduler.py +263 -0
  32. machboost/server.py +6390 -0
  33. machboost/team.py +987 -0
  34. machboost/video.py +281 -0
  35. machboost/vision.py +284 -0
  36. machboost/vision_auto.py +289 -0
  37. machboost/vision_policy.py +233 -0
  38. machboost/vision_tokens.py +418 -0
  39. machboost/workspace.py +1022 -0
  40. machboost-0.16.20.dist-info/METADATA +1545 -0
  41. machboost-0.16.20.dist-info/RECORD +45 -0
  42. machboost-0.16.20.dist-info/WHEEL +5 -0
  43. machboost-0.16.20.dist-info/entry_points.txt +2 -0
  44. machboost-0.16.20.dist-info/licenses/LICENSE +21 -0
  45. machboost-0.16.20.dist-info/top_level.txt +1 -0
machboost/__init__.py ADDED
@@ -0,0 +1,102 @@
1
+ __version__ = "0.16.20"
2
+
3
+ from .accelerator import Accelerator, AcceleratorResult, CalibrationResult
4
+ from .bench import (
5
+ BenchmarkCase,
6
+ BenchmarkResult,
7
+ GateDecision,
8
+ GatePolicy,
9
+ benchmark,
10
+ benchmark_cases,
11
+ summarize_results,
12
+ )
13
+ from .core import (
14
+ BoostedService,
15
+ Candidate,
16
+ CorpusDrafter,
17
+ MachBoost,
18
+ RunStats,
19
+ machboost,
20
+ )
21
+ from .client import MachBoostAPIError, MachBoostClient, ensure_server
22
+ from .context_bench import (
23
+ CONTEXT_BENCH_SCHEMA,
24
+ benchmark_context_acceleration,
25
+ context_fingerprint,
26
+ )
27
+ from .latency import LATENCY_SCHEMA, benchmark_chat_latency
28
+ from .adapters.dflash import DFlashAccelerator, DFlashRunStats
29
+ from .adapters.mlx_vlm import MLXVLMAccelerator, VisionRunStats
30
+ from .adapters.ollama_mlx import (
31
+ OllamaMLXAccelerator,
32
+ OllamaMLXCancelled,
33
+ OllamaMLXRunStats,
34
+ )
35
+ from .models import ModelAlias, ModelResolution, resolve_model
36
+ from .routing import HostProbe, HostTarget, MachBoostHostPool, expected_delay_score
37
+ from .server import RuntimeManager
38
+ from .video import TemporalVideoSampler, VideoFrame, VideoSelection
39
+ from .vision import ContentAddressedVisionCache, VisualAssetStore, VisionCacheInfo
40
+ from .workspace import (
41
+ IndexReport,
42
+ SearchHit,
43
+ Workspace,
44
+ WorkspaceError,
45
+ WorkspaceQuery,
46
+ WorkspaceStore,
47
+ )
48
+
49
+ __all__ = [
50
+ "Accelerator",
51
+ "AcceleratorResult",
52
+ "BenchmarkCase",
53
+ "BenchmarkResult",
54
+ "BoostedService",
55
+ "CalibrationResult",
56
+ "Candidate",
57
+ "ContentAddressedVisionCache",
58
+ "CONTEXT_BENCH_SCHEMA",
59
+ "CorpusDrafter",
60
+ "DFlashAccelerator",
61
+ "DFlashRunStats",
62
+ "GateDecision",
63
+ "GatePolicy",
64
+ "LATENCY_SCHEMA",
65
+ "MachBoost",
66
+ "MachBoostAPIError",
67
+ "MachBoostClient",
68
+ "MachBoostHostPool",
69
+ "MLXVLMAccelerator",
70
+ "ModelAlias",
71
+ "ModelResolution",
72
+ "HostProbe",
73
+ "HostTarget",
74
+ "OllamaMLXAccelerator",
75
+ "OllamaMLXCancelled",
76
+ "OllamaMLXRunStats",
77
+ "RunStats",
78
+ "SearchHit",
79
+ "RuntimeManager",
80
+ "TemporalVideoSampler",
81
+ "VideoFrame",
82
+ "VideoSelection",
83
+ "VisualAssetStore",
84
+ "VisionCacheInfo",
85
+ "VisionRunStats",
86
+ "Workspace",
87
+ "WorkspaceError",
88
+ "WorkspaceQuery",
89
+ "WorkspaceStore",
90
+ "IndexReport",
91
+ "benchmark",
92
+ "benchmark_cases",
93
+ "benchmark_chat_latency",
94
+ "benchmark_context_acceleration",
95
+ "context_fingerprint",
96
+ "ensure_server",
97
+ "expected_delay_score",
98
+ "machboost",
99
+ "resolve_model",
100
+ "summarize_results",
101
+ "__version__",
102
+ ]
machboost/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ from .cli import main
2
+
3
+
4
+ if __name__ == "__main__":
5
+ raise SystemExit(main())