gh-inference 0.6.2__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.
Files changed (57) hide show
  1. gh_inference-0.6.2/CHANGELOG.md +78 -0
  2. gh_inference-0.6.2/LICENSE +21 -0
  3. gh_inference-0.6.2/MANIFEST.in +2 -0
  4. gh_inference-0.6.2/PKG-INFO +795 -0
  5. gh_inference-0.6.2/README.md +774 -0
  6. gh_inference-0.6.2/examples/README.md +46 -0
  7. gh_inference-0.6.2/examples/console_tour.py +289 -0
  8. gh_inference-0.6.2/examples/story_turn_contract.json +59 -0
  9. gh_inference-0.6.2/examples/writing_benchmark.py +222 -0
  10. gh_inference-0.6.2/gh_ai_runner/__init__.py +72 -0
  11. gh_inference-0.6.2/gh_ai_runner/agent.py +216 -0
  12. gh_inference-0.6.2/gh_ai_runner/agent_types.py +43 -0
  13. gh_inference-0.6.2/gh_ai_runner/artifact.py +109 -0
  14. gh_inference-0.6.2/gh_ai_runner/batch.py +54 -0
  15. gh_inference-0.6.2/gh_ai_runner/client.py +498 -0
  16. gh_inference-0.6.2/gh_ai_runner/core.py +82 -0
  17. gh_inference-0.6.2/gh_ai_runner/hub.py +204 -0
  18. gh_inference-0.6.2/gh_ai_runner/integrity.py +40 -0
  19. gh_inference-0.6.2/gh_ai_runner/job.py +192 -0
  20. gh_inference-0.6.2/gh_ai_runner/limits.py +92 -0
  21. gh_inference-0.6.2/gh_ai_runner/logger.py +17 -0
  22. gh_inference-0.6.2/gh_ai_runner/metadata.py +123 -0
  23. gh_inference-0.6.2/gh_ai_runner/models.py +217 -0
  24. gh_inference-0.6.2/gh_ai_runner/pipeline.py +24 -0
  25. gh_inference-0.6.2/gh_ai_runner/polling.py +59 -0
  26. gh_inference-0.6.2/gh_ai_runner/repo.py +145 -0
  27. gh_inference-0.6.2/gh_ai_runner/resident.py +103 -0
  28. gh_inference-0.6.2/gh_ai_runner/runner.py +388 -0
  29. gh_inference-0.6.2/gh_ai_runner/stress.py +137 -0
  30. gh_inference-0.6.2/gh_ai_runner/types.py +181 -0
  31. gh_inference-0.6.2/gh_ai_runner/validation.py +57 -0
  32. gh_inference-0.6.2/gh_ai_runner/worker_agent.py +210 -0
  33. gh_inference-0.6.2/gh_inference/__init__.py +3 -0
  34. gh_inference-0.6.2/gh_inference/__main__.py +83 -0
  35. gh_inference-0.6.2/gh_inference.egg-info/PKG-INFO +795 -0
  36. gh_inference-0.6.2/gh_inference.egg-info/SOURCES.txt +55 -0
  37. gh_inference-0.6.2/gh_inference.egg-info/dependency_links.txt +1 -0
  38. gh_inference-0.6.2/gh_inference.egg-info/entry_points.txt +2 -0
  39. gh_inference-0.6.2/gh_inference.egg-info/requires.txt +5 -0
  40. gh_inference-0.6.2/gh_inference.egg-info/top_level.txt +2 -0
  41. gh_inference-0.6.2/pyproject.toml +42 -0
  42. gh_inference-0.6.2/setup.cfg +4 -0
  43. gh_inference-0.6.2/showcase.py +413 -0
  44. gh_inference-0.6.2/tests/test_context_limits.py +160 -0
  45. gh_inference-0.6.2/tests/test_discussion_cli.py +25 -0
  46. gh_inference-0.6.2/tests/test_editable_limits.py +146 -0
  47. gh_inference-0.6.2/tests/test_hub.py +172 -0
  48. gh_inference-0.6.2/tests/test_large_models.py +152 -0
  49. gh_inference-0.6.2/tests/test_pipeline.py +154 -0
  50. gh_inference-0.6.2/tests/test_reliability.py +264 -0
  51. gh_inference-0.6.2/tests/test_remote_agents.py +259 -0
  52. gh_inference-0.6.2/tests/test_resident.py +47 -0
  53. gh_inference-0.6.2/tests/test_showcase.py +67 -0
  54. gh_inference-0.6.2/tests/test_stress.py +75 -0
  55. gh_inference-0.6.2/tests/test_v02.py +245 -0
  56. gh_inference-0.6.2/tests/test_v03.py +204 -0
  57. gh_inference-0.6.2/tests/test_writing_benchmark.py +57 -0
@@ -0,0 +1,78 @@
1
+ # 0.6.2 (2026-10-24)
2
+
3
+ - Repackage the existing implementation for a fresh release; no functional changes.
4
+
5
+ ## 0.6.1
6
+
7
+ - Add stateless ResidentSession with loaded-weight reuse, token-budget checks and optional constrained JSON output.
8
+ - Use all available CPU cores by default; allow explicit GPU offload on compatible hosts.
9
+ - Preserve independent prompts and reject context overflow without truncation.
10
+
11
+ # Changelog
12
+
13
+ ## 0.6.0
14
+
15
+ - Add built-in, commit-pinned Q4_K_M writing models: Glitter 12B, Gemma 4 12B,
16
+ Gemma 4 StyleTune 12B, and Rocinante-X 12B.
17
+ - Accept Hugging Face repository and GGUF file links; add `add_model` for public
18
+ custom HTTPS GGUF downloads with worker-side checksum and size verification.
19
+ - Add resident multi-agent discussion, routed pipelines and draft/review/revise
20
+ loops with selective handoffs and reusable prompt prefixes.
21
+ - Expand compute diagnostics with CPU time, peak process memory, routing time,
22
+ runtime version and handoff sizes; add stress and writing benchmarks.
23
+ - Support dynamic output budgets and native thinking-template controls; pin the
24
+ GitHub inference runtime to llama-cpp-python 0.3.36.
25
+
26
+ ## 0.5.0
27
+
28
+ - Publish as `gh-inference` with the `gh_inference` import and `gh-inference` CLI.
29
+ - Discover public Hugging Face GGUF repositories across model families, without
30
+ a fixed catalog or quantization whitelist.
31
+ - Select exact variants and revisions; verify commit-pinned downloads by size
32
+ and SHA-256, including complete split GGUF groups.
33
+ - Preserve the legacy import, resident model reuse, caching, timing and editable limits.
34
+ - Add GitHub-only verification, wheel checks and PyPI trusted publishing.
35
+
36
+ ## 0.4.0
37
+
38
+ - Add a GitHub-only `Agent` facade: `run()` returns text and `run_many()` reuses one loaded model.
39
+ - Keep full quantized models resident in worker RAM across tasks, refinement, and tool steps in one job.
40
+ - Add optional prompt refinement using the same loaded model, with tokenizer-based savings and fallback checks.
41
+ - Add optional timing, prompt refinement, and bounded conversation history; defer tools and file access.
42
+ - Add a small Qwen 0.5B starter model; retain all existing model keys and APIs.
43
+ - Verify structured agent results as well as the main output.
44
+ - Add manual GitHub model smoke testing; no client-side inference backend or runtime dependency is shipped.
45
+
46
+ ## 0.3.2
47
+
48
+ - Expand the Q4_K_M catalog to 15 models through DeepSeek Coder V2 Lite 16B.
49
+ - Add configurable Linux runner labels and RAM/disk budgets with worker preflight checks.
50
+ - Verify downloaded weight sizes and hashes; avoid weight-cache archives for large models.
51
+ - Document quantization, context memory, and the difference between model storage and RAM.
52
+
53
+ - Default newly created runner repositories to private; expose explicit public opt-in.
54
+ - Bound GitHub HTTP requests, surface API errors, and paginate workflow discovery.
55
+ - Validate finite numeric settings and context limits before provisioning.
56
+ - Preserve caller system messages and require output checksums on every result.
57
+ - Share timeout budgets with artifact retrieval and avoid retries after the deadline.
58
+ - Keep metadata errors sanitized and preserve existing directory permissions.
59
+ - Generate the worker model catalog from the client catalog and download weights atomically.
60
+ - Use one package version source and simplify documentation around the core inference flow.
61
+ - Remove stale committed build outputs and add Python 3.9/3.11/3.13 test/build CI.
62
+ - Keep optional local history failures from interrupting inference.
63
+
64
+ ## 0.3.0
65
+
66
+ - Add concurrent batch submission and collection with `InferenceRequest` and `BatchJob`.
67
+ - Add side-by-side local model comparisons with `ComparisonJob`.
68
+ - Add canonical request and output SHA-256 verification.
69
+ - Add SQLite job and batch metadata, history listing, and cross-process job resume.
70
+ - Exclude prompts, outputs, GitHub tokens, and provider keys from persistent metadata.
71
+
72
+ ## 0.2.0
73
+
74
+ - Add asynchronous `AIJob` handles with status, waiting, cancellation, and retries.
75
+ - Add exact workflow correlation and job-specific structured artifacts.
76
+ - Add token and runner resource telemetry.
77
+ - Add encrypted BYOK setup for OpenAI-compatible HTTPS providers.
78
+ - Preserve the blocking `ai_call()` API.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tanish Chauhan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include CHANGELOG.md showcase.py
2
+ recursive-include examples *.py *.json *.md