llm-batch-accelerator 0.1.0__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 (36) hide show
  1. llm_batch_accelerator/__init__.py +49 -0
  2. llm_batch_accelerator/cli.py +732 -0
  3. llm_batch_accelerator/engine/__init__.py +41 -0
  4. llm_batch_accelerator/engine/auditor.py +571 -0
  5. llm_batch_accelerator/engine/identity.py +44 -0
  6. llm_batch_accelerator/engine/journal.py +279 -0
  7. llm_batch_accelerator/engine/orchestrator.py +725 -0
  8. llm_batch_accelerator/engine/packer.py +107 -0
  9. llm_batch_accelerator/engine/reconciler.py +362 -0
  10. llm_batch_accelerator/engine/reuse.py +122 -0
  11. llm_batch_accelerator/engine/sync_router.py +204 -0
  12. llm_batch_accelerator/engine/tail_cut.py +139 -0
  13. llm_batch_accelerator/models/__init__.py +79 -0
  14. llm_batch_accelerator/models/events.py +230 -0
  15. llm_batch_accelerator/models/policies.py +236 -0
  16. llm_batch_accelerator/models/requests.py +192 -0
  17. llm_batch_accelerator/models/state.py +128 -0
  18. llm_batch_accelerator/providers/__init__.py +27 -0
  19. llm_batch_accelerator/providers/base.py +116 -0
  20. llm_batch_accelerator/providers/openai.py +619 -0
  21. llm_batch_accelerator/providers/pacer.py +64 -0
  22. llm_batch_accelerator/py.typed +0 -0
  23. llm_batch_accelerator/reporting/__init__.py +13 -0
  24. llm_batch_accelerator/reporting/_formatters.py +69 -0
  25. llm_batch_accelerator/reporting/html.py +211 -0
  26. llm_batch_accelerator/reporting/markdown.py +118 -0
  27. llm_batch_accelerator/reporting/terminal.py +200 -0
  28. llm_batch_accelerator/storage/__init__.py +15 -0
  29. llm_batch_accelerator/storage/base.py +234 -0
  30. llm_batch_accelerator/storage/local_fs.py +54 -0
  31. llm_batch_accelerator/storage/sqlite.py +1023 -0
  32. llm_batch_accelerator-0.1.0.dist-info/METADATA +173 -0
  33. llm_batch_accelerator-0.1.0.dist-info/RECORD +36 -0
  34. llm_batch_accelerator-0.1.0.dist-info/WHEEL +4 -0
  35. llm_batch_accelerator-0.1.0.dist-info/entry_points.txt +3 -0
  36. llm_batch_accelerator-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,49 @@
1
+ """llm-batch-accelerator package."""
2
+
3
+ from llm_batch_accelerator.engine.auditor import BatchAuditor, compute_audit_report
4
+ from llm_batch_accelerator.engine.orchestrator import BatchAccelerator
5
+ from llm_batch_accelerator.models.events import (
6
+ AuditReport,
7
+ CollectPage,
8
+ EngineEvent,
9
+ ProgressCounts,
10
+ RunReport,
11
+ TickResult,
12
+ )
13
+ from llm_batch_accelerator.models.policies import (
14
+ PackagingPolicy,
15
+ RetryPolicy,
16
+ SyncBudget,
17
+ TailCutPolicy,
18
+ )
19
+ from llm_batch_accelerator.models.requests import (
20
+ BatchItemResult,
21
+ BatchRequest,
22
+ ErrorDetail,
23
+ TokenUsage,
24
+ load_requests_jsonl,
25
+ )
26
+
27
+ __version__ = "0.1.0"
28
+
29
+ __all__ = [
30
+ "AuditReport",
31
+ "BatchAccelerator",
32
+ "BatchAuditor",
33
+ "BatchItemResult",
34
+ "BatchRequest",
35
+ "CollectPage",
36
+ "EngineEvent",
37
+ "ErrorDetail",
38
+ "PackagingPolicy",
39
+ "ProgressCounts",
40
+ "RetryPolicy",
41
+ "RunReport",
42
+ "SyncBudget",
43
+ "TailCutPolicy",
44
+ "TickResult",
45
+ "TokenUsage",
46
+ "__version__",
47
+ "compute_audit_report",
48
+ "load_requests_jsonl",
49
+ ]