hugpy-engine 0.3.8__tar.gz → 0.3.9__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.
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/PKG-INFO +1 -1
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/pyproject.toml +1 -1
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/task_endpoints.py +32 -1
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine.egg-info/PKG-INFO +1 -1
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/README.md +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/setup.cfg +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/categories.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/config/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/config/main.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/config/models/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/config/models/models_config.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/config/models/models_default.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/core_auth.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/dispatch/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/dispatch/dispatch.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/fit/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/fit/types.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/imports/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/imports/classes.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/imports/constants.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/imports/functions.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/imports/init_imports.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/llama/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/llama/runners/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/llama/runners/fitevict_runner.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/name_match.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/placement.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/py.typed +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/assure_model_key.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/categories/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/categories/builders.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/categories/frameworks.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/model_resolver.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/task_resolution.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/chat_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/event_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/metadata_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/model_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/runner_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/schemas/task_schemas.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/task_deps.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/tasks.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/utils/__init__.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/utils/json_scavenge.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/utils/model_marker.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/utils/no_think.py +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine.egg-info/SOURCES.txt +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine.egg-info/dependency_links.txt +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine.egg-info/requires.txt +0 -0
- {hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hugpy-engine
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams
|
|
5
5
|
Author-email: putkoff <support@hugpy.ai>
|
|
6
6
|
License-Expression: LicenseRef-Proprietary
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hugpy-engine"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.9"
|
|
8
8
|
description = "Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -120,7 +120,9 @@ _BODY_SPECS: dict[str, dict] = {
|
|
|
120
120
|
"input_key": "prompt", "sources": ("prompt", "input", "text"),
|
|
121
121
|
"passthrough": ("n", "size", "steps", "num_inference_steps",
|
|
122
122
|
"guidance_scale", "negative_prompt", "seed", "width",
|
|
123
|
-
"height", "image", "mask", "
|
|
123
|
+
"height", "image", "image_path", "image_b64", "mask", "mask_path", "mask_b64",
|
|
124
|
+
"strength", "sampler_name", "scheduler", "denoise", "response_format",
|
|
125
|
+
"metadata", "placement_intent", "max_wait_s", "keep_artifacts", "_route"),
|
|
124
126
|
},
|
|
125
127
|
"/v1/videos/generations": {
|
|
126
128
|
"input_key": "prompt", "sources": ("prompt", "input", "text"),
|
|
@@ -219,6 +221,35 @@ def build_endpoint_request(kwargs: dict, model_key: str, *, task: str,
|
|
|
219
221
|
for k in spec.get("passthrough", ()):
|
|
220
222
|
if kwargs.get(k) is not None:
|
|
221
223
|
body[k] = kwargs[k]
|
|
224
|
+
if route == "/v1/images/generations":
|
|
225
|
+
# The old image builders use num_images / num_inference_steps; Comfy's
|
|
226
|
+
# worker workflow consumes n / steps. Normalize without losing explicit
|
|
227
|
+
# zero CFG or caller-selected samplers and schedulers.
|
|
228
|
+
for canonical, aliases in {
|
|
229
|
+
"n": ("num_images",), "steps": ("num_inference_steps",),
|
|
230
|
+
"guidance_scale": ("cfg_scale", "cfg", "guidance"),
|
|
231
|
+
"negative_prompt": ("negative",), "sampler_name": ("sampler",),
|
|
232
|
+
}.items():
|
|
233
|
+
for name in (canonical, *aliases):
|
|
234
|
+
if kwargs.get(name) is not None:
|
|
235
|
+
body[canonical] = kwargs[name]
|
|
236
|
+
break
|
|
237
|
+
if kwargs.get("return_b64") is True and "response_format" not in body:
|
|
238
|
+
body["response_format"] = "b64_json"
|
|
239
|
+
for field in ("image", "mask"):
|
|
240
|
+
value = body.get(field)
|
|
241
|
+
path = body.pop(field + "_path", None)
|
|
242
|
+
if isinstance(value, str):
|
|
243
|
+
path = value
|
|
244
|
+
if path and not isinstance(value, dict) and not body.get(field + "_b64"):
|
|
245
|
+
if os.path.isfile(path):
|
|
246
|
+
with open(path, "rb") as handle:
|
|
247
|
+
raw = handle.read(64 * 1024 * 1024 + 1)
|
|
248
|
+
if len(raw) > 64 * 1024 * 1024:
|
|
249
|
+
raise ValueError(field + " exceeds the 64 MiB inline input limit")
|
|
250
|
+
body[field] = {"b64": base64.b64encode(raw).decode("ascii")}
|
|
251
|
+
else:
|
|
252
|
+
body[field] = {"path": path}
|
|
222
253
|
rid = kwargs.get("request_id") or make_request_id()
|
|
223
254
|
return EndpointRequest(request_id=rid, model_key=model_key, route=route,
|
|
224
255
|
body=body, output=output,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hugpy-engine
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams
|
|
5
5
|
Author-email: putkoff <support@hugpy.ai>
|
|
6
6
|
License-Expression: LicenseRef-Proprietary
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hugpy_engine-0.3.8 → hugpy_engine-0.3.9}/src/hugpy_engine/resolvers/categories/frameworks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|