feat(matching): rank with semantic embeddings and explain matches by evidence

This commit is contained in:
shira committed 2026-10-11 10:39:46 +03:00
1 parent facc1789b1
commit 24b64d698a
215 files changed
+16951 -327

No files matched your search

+28 -6
View File
@@ -1,10 +1,14 @@
# The base image is a build argument so that make -C deploy release-build can
# pin it to the digest it resolved; the default keeps the agreed tag.
ARG PYTHON_IMAGE=python:alpine
# pin it to the digest it resolved. PyTorch publishes glibc wheels only, so the
# service uses the Debian slim variant instead of Alpine, and the minor version
# is fixed because requires-python and the locked wheels are for Python 3.14.
ARG PYTHON_IMAGE=python:3.14-slim
FROM ${PYTHON_IMAGE} AS base
RUN apk upgrade --no-cache
RUN apt-get update \
&& apt-get upgrade --yes --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
FROM base AS build
@@ -20,20 +24,38 @@ COPY ml/.python-version ml/pyproject.toml ml/uv.lock ./ml/
COPY ml/src ./ml/src
RUN uv sync --project ml --python /usr/local/bin/python --locked --no-dev --no-editable
# The model files are fetched once, at build time, from the pinned revision
# and verified against the SHA-256 of the lock file. Only safetensors weights,
# configs, and the tokenizer are fetched: no remote code, no pickle weights.
FROM base AS model
COPY ml/src/lincodex_ml/model_files.py /tmp/model_files.py
COPY ml/model/giga-embeddings-480m.lock.json /tmp/model.lock.json
RUN python /tmp/model_files.py fetch --lock /tmp/model.lock.json --out /opt/lincodex/model \
&& rm /tmp/model_files.py /tmp/model.lock.json
FROM base
ENV PATH="/opt/venv/bin:${PATH}" \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
PYTHONUNBUFFERED=1 \
ML_EMBEDDER=giga \
ML_MODEL_DIR=/opt/lincodex/model \
ML_TORCH_THREADS=4 \
HF_HUB_OFFLINE=1 \
TRANSFORMERS_OFFLINE=1 \
HF_HUB_DISABLE_TELEMETRY=1
WORKDIR /app
# Package installation belongs to the build stage, not the service runtime.
RUN python -m pip uninstall --yes pip \
&& python -c "import ensurepip, shutil; shutil.rmtree(ensurepip.__path__[0])" \
&& addgroup -S -g 10001 lincodex \
&& adduser -S -D -H -u 10001 -G lincodex lincodex
&& groupadd --system --gid 10001 lincodex \
&& useradd --system --uid 10001 --gid lincodex --no-create-home --shell /usr/sbin/nologin lincodex
COPY --from=build --chown=lincodex:lincodex /opt/venv /opt/venv
# Read-only for the service user: root owns the weights.
COPY --from=model /opt/lincodex/model /opt/lincodex/model
USER 10001:10001
EXPOSE 8000
+10 -1
View File
@@ -1,7 +1,10 @@
.DEFAULT_GOAL := help
UV ?= uv
API_PREPARED ?= 0
.PHONY: help install generate check-generated check-pydantic-compat build run fmt fmt-check lint lint-fix typecheck test test-contract check verify
# Local directory of the pinned model weights for test-model and run.
ML_MODEL_DIR ?= $(HOME)/.cache/lincodex-ml/giga-480m
MODEL_LOCK := model/giga-embeddings-480m.lock.json
.PHONY: help install generate check-generated check-pydantic-compat build run fmt fmt-check lint lint-fix typecheck test test-contract test-model model-fetch check verify
help: ## Show available ML service commands.
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf "%-14s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@@ -49,6 +52,12 @@ test: ## Run service tests.
test-contract: ## Check implementation against the shared OpenAPI contract.
$(UV) run pytest tests/test_contract.py
model-fetch: ## Download the pinned model files into ML_MODEL_DIR and verify their SHA-256 (about 1 GB).
$(UV) run python -m lincodex_ml.model_files fetch --lock $(MODEL_LOCK) --out "$(ML_MODEL_DIR)"
test-model: ## Run the slow parity test of the real model against the research vectors (needs model-fetch).
ML_MODEL_DIR="$(ML_MODEL_DIR)" $(UV) run pytest -m slow -p no:cacheprovider tests/test_giga_model.py
check: ## Run formatting, lint, type, tests, and package build.
$(MAKE) fmt-check lint typecheck test build
+3 -2
View File
@@ -2,11 +2,12 @@
[Русский](README.md) | English
A separate Python service using FastAPI for future resume analysis and candidate matching. It currently provides an HTTP scaffold with `/healthz`, `/readyz`, and metrics. No model is connected yet, so `/readyz` returns 503.
A separate Python service using FastAPI. It serves `POST /v1/embeddings` with the pinned Giga-Embeddings-instruct-480M model on CPU for semantic matching (the optional `model` field names the model; a request for a model the service has not loaded gets 400), plus `/healthz`, `/readyz`, and metrics. `/readyz` returns 503 until the model is loaded and warmed up, and always without a model (`ML_EMBEDDER=none`, the default outside the image). The model files are fetched at image build time by `model/giga-embeddings-480m.lock.json` and verified by SHA-256; see [deployment](../docs/en/DEPLOY.md#separate-ml-compose-project).
- `src/lincodex_ml/` contains the application, HTTP routes, and infrastructure code.
- `codegen/` configures Pydantic model generation from `api/ml/`.
- `tests/` checks service health and contract conformance.
- `tests/` checks service health, the embedding contract with a fake encoder, the model lock, and (marked `slow`, `make -C ml test-model`) the real model against the study vectors.
- `model/` pins the model revision and the SHA-256 of its files.
- `scripts/` checks Pydantic models generated from the OpenAPI 3.2 fixture.
- `pyproject.toml` and `uv.lock` define dependencies and Python tool settings.
+3 -2
View File
@@ -2,11 +2,12 @@
Русский | [English](README.en.md)
Отдельный Python-сервис на FastAPI для будущего анализа резюме и подбора кандидатов. Сейчас работает HTTP-каркас: `/healthz`, `/readyz` и метрики. Модель еще не подключена, поэтому `/readyz` возвращает 503.
Отдельный Python-сервис на FastAPI. Он отдает `POST /v1/embeddings` с закрепленной моделью Giga-Embeddings-instruct-480M на CPU для семантического подбора (необязательное поле `model` называет модель; запрос модели, которую сервис не загрузил, получает 400), а также `/healthz`, `/readyz` и метрики. `/readyz` отвечает 503, пока модель не загружена и не прогрета, и всегда без модели (`ML_EMBEDDER=none`, значение по умолчанию вне образа). Файлы модели скачиваются при сборке образа по `model/giga-embeddings-480m.lock.json` и проверяются по SHA-256; см. [развертывание](../docs/ru/DEPLOY.md#отдельный-ml-compose).
- `src/lincodex_ml/` - приложение, HTTP-маршруты и инфраструктурный код.
- `codegen/` - настройки генерации моделей Pydantic из `api/ml/`.
- `tests/` - проверки состояния сервиса и соответствия контракту.
- `tests/` - проверки состояния сервиса, контракта эмбеддингов на фиктивном кодировщике, lock-файла модели и (маркер `slow`, `make -C ml test-model`) реальной модели против векторов исследования.
- `model/` - закрепленная ревизия модели и SHA-256 ее файлов.
- `scripts/` - проверка Pydantic-моделей, сгенерированных из фикстуры OpenAPI 3.2.
- `pyproject.toml` и `uv.lock` - зависимости и настройки Python-инструментов.
+33
View File
@@ -0,0 +1,33 @@
{
"id": "ai-sage/Giga-Embeddings-instruct-480M-0826",
"revision": "1763d603adac8057bd6482a708001b0ed2e0a903",
"license": "MIT",
"source": "https://huggingface.co",
"note": "Only these files are fetched. The repository's remote code (modeling_gigarembed.py, configuration_gigarembed.py) is not fetched or executed: lincodex_ml.inference.giga implements the same bidirectional Qwen3 encoder. There is no pickle (.bin) weight file.",
"files": {
"config.json": {
"size": 1562,
"sha256": "99968b29efb4dafdd3ba88da19677a2b7046b6c761d8f9deb078c4eed49ddfeb"
},
"config_sentence_transformers.json": {
"size": 223,
"sha256": "63ab8ab57df89362caafa22dd7d82d8642b8a6fb18e617387618b7ec33a8ef98"
},
"model.safetensors": {
"size": 967470272,
"sha256": "9ce03c6c5ae02baebb42ce3015b6f3e628c5fec7b7745bc2490f6ff961a654a5"
},
"special_tokens_map.json": {
"size": 551,
"sha256": "82d96d7a9e6ced037f12394b7ea6a5b02e6ca87e0d11edaa8d60d9be857ce7db"
},
"tokenizer.json": {
"size": 10728166,
"sha256": "0870f9c0f06a677f7e939e7765ae3a5d9582f2a6d7e7258176ecd1a3eab96cef"
},
"tokenizer_config.json": {
"size": 212,
"sha256": "57981f331fd010c7be87f58e7570b2061dd14d98be53063ad8972e9c4db0b644"
}
}
}
+17 -1
View File
@@ -5,8 +5,13 @@ description = "Operational scaffold for the Lincodex ML service"
requires-python = ">=3.14,<3.15"
dependencies = [
"fastapi==0.142.2",
"numpy==2.5.3",
"prometheus-client==0.26.0",
"pydantic==2.13.5",
"safetensors==0.8.0",
"tokenizers==0.23.3",
"torch==2.11.0",
"transformers==5.19.0",
"uvicorn[standard]==0.54.0",
]
@@ -28,6 +33,16 @@ build-backend = "hatchling.build"
[tool.uv]
required-version = "==0.12.22"
# CPU-only PyTorch wheels: the default index resolves Linux torch with CUDA
# libraries of several gigabytes that a CPU host never uses.
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[tool.hatch.build.targets.wheel]
packages = ["src/lincodex_ml"]
@@ -47,4 +62,5 @@ files = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
addopts = "-ra -m 'not slow'"
markers = ["slow: needs the pinned model weights in ML_MODEL_DIR (make test-model)"]
+63
View File
@@ -0,0 +1,63 @@
"""POST /v1/embeddings: encode texts with the loaded encoder."""
from __future__ import annotations
from typing import Annotated
from fastapi import APIRouter, Depends, Request, status
from fastapi.concurrency import run_in_threadpool
from fastapi.exceptions import RequestValidationError
from lincodex_ml.api.models import (
EmbeddingInputKind,
EmbeddingModel,
EmbeddingRequest,
EmbeddingResponse,
EmbeddingVector,
)
from lincodex_ml.api.problems import ServiceUnavailableError
from lincodex_ml.inference.embedder import InputKind
from lincodex_ml.inference.runtime import EmbeddingRuntime, NotReadyError
router = APIRouter(tags=["inference"])
def get_runtime(request: Request) -> EmbeddingRuntime:
runtime: EmbeddingRuntime = request.app.state.embedding_runtime
return runtime
@router.post(
"/v1/embeddings",
operation_id="CreateMLEmbeddings",
response_model=EmbeddingResponse,
status_code=status.HTTP_200_OK,
summary="Encode texts into normalized vectors with the pinned embedding model.",
)
async def create_embeddings(
payload: EmbeddingRequest,
runtime: Annotated[EmbeddingRuntime, Depends(get_runtime)],
) -> EmbeddingResponse:
kind = InputKind(payload.kind.root)
texts = [text.root for text in payload.texts]
try:
# The service loads one model today; the field keeps the contract ready
# for several (an ensemble), and a model it does not serve is refused.
if payload.model is not None and payload.model != runtime.info().model_id:
raise RequestValidationError(
[{"loc": ("body", "model"), "type": "value_error", "msg": "model not served"}]
)
info, vectors = await run_in_threadpool(runtime.encode, kind, texts)
except NotReadyError as error:
raise ServiceUnavailableError from error
return EmbeddingResponse(
model=EmbeddingModel(
id=info.model_id,
revision=info.revision,
dimension=info.dimension,
max_tokens=info.max_tokens,
prompt_version=info.prompt_version,
),
kind=EmbeddingInputKind(payload.kind.root),
vectors=[EmbeddingVector(vector) for vector in vectors],
)
+8 -2
View File
@@ -1,6 +1,7 @@
from fastapi import APIRouter, Response, status
from fastapi import APIRouter, Request, Response, status
from lincodex_ml.api.models import MLHealthResponse, MLReadinessResponse
from lincodex_ml.inference.runtime import EmbeddingRuntime, RuntimeState
router = APIRouter(tags=["health"])
@@ -28,6 +29,11 @@ async def get_healthz() -> MLHealthResponse:
},
summary="Check whether an inference runtime is available.",
)
async def get_readyz(response: Response) -> MLReadinessResponse:
async def get_readyz(request: Request, response: Response) -> MLReadinessResponse:
# Ready only after the model is loaded and a warm-up encode finished;
# a disabled or failed runtime stays not ready.
runtime: EmbeddingRuntime = request.app.state.embedding_runtime
if runtime.state is RuntimeState.READY:
return MLReadinessResponse(status="ready")
response.status_code = status.HTTP_503_SERVICE_UNAVAILABLE
return MLReadinessResponse(status="not_ready")
+97 -1
View File
@@ -29,6 +29,7 @@ class ProblemCode(
"rate_limited",
"internal",
"not_implemented",
"service_unavailable",
]
]
):
@@ -54,9 +55,10 @@ class ProblemCode(
"rate_limited",
"internal",
"not_implemented",
"service_unavailable",
],
Field(
description="Stable public error code. Adding a code is a contract change; renaming or removing one is a breaking change. Clients must handle an unknown code by its HTTP status.\n\n- validation_failed (400): parameters or body do not match the contract, or a body violates a domain rule such as salary_from <= salary_to; `errors` points at the fields.\n- unauthenticated (401): no valid session or credentials.\n- forbidden (403): the caller is authenticated but not allowed.\n- not_found (404): the route or object does not exist or is not visible.\n- method_not_allowed (405): the route does not support the method.\n- idempotency_in_progress (409): a request with the same Idempotency-Key is still being processed.\n- state_conflict (409): the operation conflicts with the current state of the resource, for example an invitation that was already accepted.\n- version_conflict (412): If-Match does not match the current version.\n- payload_too_large (413): the request body exceeds the limit.\n- unsupported_media_type (415): the request Content-Type is not accepted.\n- idempotency_key_reused (422): the Idempotency-Key was already used with a different request.\n- precondition_required (428): the operation requires If-Match.\n- rate_limited (429): too many requests; see Retry-After.\n- internal (500): unexpected server error.\n- not_implemented (501): the operation is in the contract but not implemented yet.\n\nThe enum keeps the public API codes so both contracts share one Problem shape. The identity codes verification_token_invalid, verification_token_expired, invalid_credentials, email_not_verified, and csrf_check_failed belong to the public API; the ML service never returns them."
description="Stable public error code. Adding a code is a contract change; renaming or removing one is a breaking change. Clients must handle an unknown code by its HTTP status.\n\n- validation_failed (400): parameters or body do not match the contract, or a body violates a domain rule such as salary_from <= salary_to; `errors` points at the fields.\n- unauthenticated (401): no valid session or credentials.\n- forbidden (403): the caller is authenticated but not allowed.\n- not_found (404): the route or object does not exist or is not visible.\n- method_not_allowed (405): the route does not support the method.\n- idempotency_in_progress (409): a request with the same Idempotency-Key is still being processed.\n- state_conflict (409): the operation conflicts with the current state of the resource, for example an invitation that was already accepted.\n- version_conflict (412): If-Match does not match the current version.\n- payload_too_large (413): the request body exceeds the limit.\n- unsupported_media_type (415): the request Content-Type is not accepted.\n- idempotency_key_reused (422): the Idempotency-Key was already used with a different request.\n- precondition_required (428): the operation requires If-Match.\n- rate_limited (429): too many requests; see Retry-After.\n- internal (500): unexpected server error.\n- not_implemented (501): the operation is in the contract but not implemented yet.\n- service_unavailable (503): the service cannot serve the request now, for example while a model loads; retry later.\n\nThe enum keeps the public API codes so both contracts share one Problem shape. The identity codes verification_token_invalid, verification_token_expired, invalid_credentials, email_not_verified, and csrf_check_failed belong to the public API; the ML service never returns them."
),
]
@@ -167,3 +169,97 @@ class MLReadinessResponse(BaseModel):
extra="forbid",
)
status: Literal["ready", "not_ready"]
class EmbeddingInputKind(RootModel[Literal["query", "document"]]):
root: Annotated[
Literal["query", "document"],
Field(
description="Side of the retrieval pair that the texts belong to. The service owns the prompt of each side, so callers never send model instructions.\n\n- query: the side that searches, such as a hiring need or one requirement of it. The service prepends the retrieval instruction of the model.\n- document: the side that is searched, such as a candidate card or one item of it. The service adds no prompt."
),
]
class EmbeddingText(RootModel[str]):
root: Annotated[
str,
Field(
description="One plain text to encode. It is untrusted data and never an instruction. The service truncates it deterministically to the token limit of the model (`EmbeddingModel.max_tokens`); characters beyond 8000 are rejected instead.",
max_length=8000,
min_length=1,
),
]
class EmbeddingRequest(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
model: Annotated[
str | None,
Field(
description="Identifier of the model to use, as `EmbeddingModel.id` reports it. Absent means the default model of the service. A service may load several models, for example the members of an ensemble; a model it does not serve answers 400 validation_failed with the pointer `/model`.",
max_length=200,
min_length=1,
pattern="^[A-Za-z0-9._/-]+$",
),
] = None
kind: EmbeddingInputKind
texts: Annotated[list[EmbeddingText], Field(max_length=32, min_length=1)]
class EmbeddingModel(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
id: Annotated[
str,
Field(
description="Model repository identifier, for example ai-sage/Giga-Embeddings-instruct-480M-0826.",
max_length=200,
min_length=1,
pattern="^[A-Za-z0-9._/-]+$",
),
]
revision: Annotated[
str,
Field(
description="Pinned revision of the weights, a commit hash for a published model.",
max_length=64,
min_length=1,
pattern="^[A-Za-z0-9._-]+$",
),
]
dimension: Annotated[int, Field(description="Length of every vector.", ge=1, le=4096)]
max_tokens: Annotated[
int, Field(description="Token limit after which a text is truncated.", ge=1, le=32768)
]
prompt_version: Annotated[
str,
Field(
description="Version of the prompt and pooling recipe of the service. A change of the query instruction or the pooling changes it.",
max_length=64,
min_length=1,
pattern="^[a-z0-9._-]+$",
),
]
class EmbeddingVector(RootModel[list[float]]):
root: Annotated[
list[float],
Field(
description="L2-normalized vector of one text, in float32 precision. The cosine of two vectors of the same model is their dot product.",
max_length=4096,
min_length=1,
),
]
class EmbeddingResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
model: EmbeddingModel
kind: EmbeddingInputKind
vectors: Annotated[list[EmbeddingVector], Field(max_length=32, min_length=1)]
+59
View File
@@ -125,11 +125,70 @@ _STATUS_DEFINITIONS: Final[Mapping[int, _Definition]] = {
"Operation not implemented",
"This operation is not available yet.",
),
status.HTTP_503_SERVICE_UNAVAILABLE: _Definition(
ProblemCode("service_unavailable"),
status.HTTP_503_SERVICE_UNAVAILABLE,
"Service unavailable",
"The model is not ready yet. Retry later.",
),
}
# Seconds a client waits before it asks a service that is still loading.
_SERVICE_UNAVAILABLE_RETRY_AFTER: Final = "5"
# Response headers of an HTTP exception that a problem response keeps.
_FORWARDED_HEADERS: Final = ("Allow", "Retry-After")
class ServiceUnavailableError(StarletteHTTPException):
"""The service cannot serve the request yet, for example while a model loads."""
def __init__(self) -> None:
super().__init__(
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
headers={"Retry-After": _SERVICE_UNAVAILABLE_RETRY_AFTER},
)
class BodyLimitMiddleware:
"""Answer 413 payload_too_large for a request body above the limit.
The declared Content-Length is checked first; a body without one is
counted while it streams, so a client cannot make the service buffer more
than the limit.
"""
def __init__(self, app: ASGIApp, max_body_bytes: int) -> None:
self._app = app
self._max_body_bytes = max_body_bytes
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
if scope["type"] != "http":
await self._app(scope, receive, send)
return
request = Request(scope)
declared = request.headers.get("content-length")
if declared is not None and declared.isdigit() and int(declared) > self._max_body_bytes:
await _too_large(request)(scope, receive, send)
return
received = 0
async def limited_receive() -> Message:
nonlocal received
message = await receive()
if message["type"] == "http.request":
received += len(message.get("body", b""))
if received > self._max_body_bytes:
# The route reads the body inside the exception handling of
# the framework, which answers this as a problem response.
raise StarletteHTTPException(status_code=status.HTTP_413_CONTENT_TOO_LARGE)
return message
await self._app(scope, limited_receive, send)
def _too_large(request: Request) -> JSONResponse:
return _problem_response(request, _STATUS_DEFINITIONS[status.HTTP_413_CONTENT_TOO_LARGE])
def install_problem_handlers(application: FastAPI) -> None:
"""Answer every framework and unhandled error with a problem response."""
application.add_exception_handler(RequestValidationError, _handle_validation_error)
+96
View File
@@ -0,0 +1,96 @@
"""Service settings read once from the environment."""
from __future__ import annotations
import os
from collections.abc import Mapping
from dataclasses import dataclass
from enum import StrEnum
from pathlib import Path
from typing import Final
DEFAULT_MODEL_DIR: Final = Path("/opt/lincodex/model")
# Four intra-op threads meet the latency targets of the research CPU benchmark
# (profile p95 352 ms, search over 100k vectors p95 591 ms) for Giga-480M.
DEFAULT_TORCH_THREADS: Final = 4
# One text per forward pass gives every text the same vector whatever else the
# request carries; larger micro-batches trade that for throughput.
DEFAULT_MICRO_BATCH: Final = 1
DEFAULT_MAX_TOKENS: Final = 1024
DEFAULT_MAX_BODY_BYTES: Final = 2 * 1024 * 1024
_MAX_TORCH_THREADS: Final = 64
_MAX_MICRO_BATCH: Final = 32
_MAX_TOKENS_LIMIT: Final = 8192
class EmbedderKind(StrEnum):
"""Which encoder the service loads."""
# The pinned Giga-Embeddings model from the image.
GIGA = "giga"
# A deterministic hash encoder for tests and stands without the model. It
# is never a model result and reports its own model id.
FAKE = "fake"
# No encoder: the service stays not ready and refuses inference.
NONE = "none"
class SettingsError(ValueError):
"""An environment value is invalid."""
@dataclass(frozen=True, slots=True)
class Settings:
embedder: EmbedderKind
model_dir: Path
torch_threads: int
micro_batch: int
max_tokens: int
verify_weights: bool
max_body_bytes: int
def _integer(environ: Mapping[str, str], name: str, default: int, maximum: int) -> int:
raw = environ.get(name, "").strip()
if raw == "":
return default
try:
value = int(raw)
except ValueError as error:
raise SettingsError(f"{name} must be an integer") from error
if value < 1 or value > maximum:
raise SettingsError(f"{name} must be between 1 and {maximum}")
return value
def _boolean(environ: Mapping[str, str], name: str, default: bool) -> bool:
raw = environ.get(name, "").strip().lower()
if raw == "":
return default
if raw in {"true", "1"}:
return True
if raw in {"false", "0"}:
return False
raise SettingsError(f"{name} must be true or false")
def load_settings(environ: Mapping[str, str] | None = None) -> Settings:
source = os.environ if environ is None else environ
raw_kind = source.get("ML_EMBEDDER", "").strip() or EmbedderKind.NONE.value
try:
kind = EmbedderKind(raw_kind)
except ValueError as error:
raise SettingsError("ML_EMBEDDER must be giga, fake, or none") from error
return Settings(
embedder=kind,
model_dir=Path(source.get("ML_MODEL_DIR", "").strip() or DEFAULT_MODEL_DIR),
torch_threads=_integer(
source, "ML_TORCH_THREADS", DEFAULT_TORCH_THREADS, _MAX_TORCH_THREADS
),
micro_batch=_integer(source, "ML_MICRO_BATCH", DEFAULT_MICRO_BATCH, _MAX_MICRO_BATCH),
max_tokens=_integer(source, "ML_MAX_TOKENS", DEFAULT_MAX_TOKENS, _MAX_TOKENS_LIMIT),
verify_weights=_boolean(source, "ML_VERIFY_WEIGHTS", True),
max_body_bytes=_integer(
source, "ML_MAX_BODY_BYTES", DEFAULT_MAX_BODY_BYTES, 16 * DEFAULT_MAX_BODY_BYTES
),
)
+1
View File
@@ -0,0 +1 @@
"""Text embedding runtime of the ML service."""
+63
View File
@@ -0,0 +1,63 @@
"""The encoder interface and the deterministic order of a request."""
from __future__ import annotations
from collections.abc import Sequence
from dataclasses import dataclass
from enum import StrEnum
from typing import Protocol
class InputKind(StrEnum):
"""Side of the retrieval pair; see EmbeddingInputKind in the contract."""
QUERY = "query"
DOCUMENT = "document"
@dataclass(frozen=True, slots=True)
class ModelInfo:
model_id: str
revision: str
dimension: int
max_tokens: int
prompt_version: str
class Embedder(Protocol):
"""Encodes texts into L2-normalized float32 vectors."""
@property
def info(self) -> ModelInfo: ...
def encode_batch(self, kind: InputKind, texts: Sequence[str]) -> list[list[float]]:
"""Encode one micro-batch; the result follows the order of texts."""
...
def micro_batches(texts: Sequence[str], size: int) -> list[list[int]]:
"""Split request positions into micro-batches of similar length.
Texts are ordered by length, longest first, with the request position as
the tie-breaker, so the same request is always split the same way and a
batch pads as little as possible.
"""
order = sorted(range(len(texts)), key=lambda index: (-len(texts[index]), index))
return [order[start : start + size] for start in range(0, len(order), size)]
def encode_ordered(
embedder: Embedder, kind: InputKind, texts: Sequence[str], micro_batch: int
) -> list[list[float]]:
"""Encode texts in deterministic micro-batches and restore request order."""
vectors: list[list[float] | None] = [None] * len(texts)
for batch in micro_batches(texts, micro_batch):
encoded = embedder.encode_batch(kind, [texts[index] for index in batch])
for index, vector in zip(batch, encoded, strict=True):
vectors[index] = vector
result: list[list[float]] = []
for encoded_vector in vectors:
if encoded_vector is None:
raise RuntimeError("an encoder skipped a text")
result.append(encoded_vector)
return result
+51
View File
@@ -0,0 +1,51 @@
"""A deterministic stand-in encoder for tests and stands without the model.
Its vectors come from SHA-256 of the kind and the text, so they are stable and
unrelated texts are nearly orthogonal. It reports its own model id, so no
caller can mistake its output for a model result.
"""
from __future__ import annotations
import hashlib
import math
import struct
from collections.abc import Sequence
from typing import Final
from lincodex_ml.inference.embedder import InputKind, ModelInfo
FAKE_MODEL_ID: Final = "lincodex/fake-hash-embedder"
FAKE_REVISION: Final = "fake-v1"
FAKE_DIMENSION: Final = 32
class FakeEmbedder:
def __init__(self, dimension: int = FAKE_DIMENSION, max_tokens: int = 1024) -> None:
self._info = ModelInfo(
model_id=FAKE_MODEL_ID,
revision=FAKE_REVISION,
dimension=dimension,
max_tokens=max_tokens,
prompt_version="fake-v1",
)
@property
def info(self) -> ModelInfo:
return self._info
def encode_batch(self, kind: InputKind, texts: Sequence[str]) -> list[list[float]]:
return [self._vector(kind, text) for text in texts]
def _vector(self, kind: InputKind, text: str) -> list[float]:
values: list[float] = []
counter = 0
while len(values) < self._info.dimension:
block = hashlib.sha256(f"{kind.value}\x00{counter}\x00{text}".encode()).digest()
for (raw,) in struct.iter_unpack(">i", block):
values.append(raw / 2**31)
counter += 1
values = values[: self._info.dimension]
norm = math.sqrt(sum(value * value for value in values)) or 1.0
# float32 rounding keeps the fake in the precision of a real model.
return [struct.unpack("<f", struct.pack("<f", value / norm))[0] for value in values]
+149
View File
@@ -0,0 +1,149 @@
"""Giga-Embeddings-instruct-480M on CPU, reproducing the research recipe.
The model is a Qwen3 decoder turned into a bidirectional encoder. Its Hugging
Face repository ships that wrapper as remote code; the service does not
execute it. Qwen3BidirectionalModel below is the same computation written
against the pinned transformers release: every attention layer is
non-causal, the padding mask is bidirectional, and weights, RoPE, RMSNorm,
and QK-norm are stock Qwen3, so the checkpoint loads without key remapping.
The encoding recipe matches the research run (sentence-transformers 5.7.0,
float32): the query side gets the model's retrieval prompt, the document side
gets none; the prompt and the text are joined and stripped; tokens are
truncated to max_tokens; the last hidden states are mean-pooled over the
attention mask including the prompt tokens and L2-normalized.
"""
from __future__ import annotations
import json
from collections.abc import Sequence
from pathlib import Path
from typing import Any, Final
import torch
from transformers import PreTrainedTokenizerFast
from transformers.masking_utils import create_bidirectional_mask
from transformers.models.qwen3.configuration_qwen3 import Qwen3Config
from transformers.models.qwen3.modeling_qwen3 import Qwen3Model
from transformers.utils import logging as transformers_logging
from lincodex_ml.inference.embedder import InputKind, ModelInfo
from lincodex_ml.model_files import LOCK_FILE_NAME, load_lock, verify_directory
# The "query" prompt of config_sentence_transformers.json at the pinned
# revision. Startup checks that the file still says the same.
QUERY_PROMPT: Final = "Instruct: Given a query, retrieve relevant passages\nQuery: "
DOCUMENT_PROMPT: Final = ""
# Changes whenever the prompt or the pooling recipe changes; callers store it
# with each vector.
PROMPT_VERSION: Final = "giga-card-mean-v1"
class Qwen3BidirectionalConfig(Qwen3Config): # type: ignore[no-untyped-call]
model_type = "qwen3_bidirec"
class Qwen3BidirectionalModel(Qwen3Model): # type: ignore[no-untyped-call]
"""Qwen3 with bidirectional self-attention, as the model card defines it."""
config_class = Qwen3BidirectionalConfig
def __init__(self, config: Qwen3BidirectionalConfig) -> None:
super().__init__(config)
for layer in self.layers:
attention: Any = layer.self_attn
attention.is_causal = False
def encode_hidden(self, input_ids: torch.Tensor, attention_mask: torch.Tensor) -> torch.Tensor:
inputs_embeds = self.embed_tokens(input_ids)
cache_position = torch.arange(inputs_embeds.shape[1], device=inputs_embeds.device)
position_ids = cache_position.unsqueeze(0)
mask = create_bidirectional_mask(
config=self.config, inputs_embeds=inputs_embeds, attention_mask=attention_mask
)
hidden_states = inputs_embeds
position_embeddings = self.rotary_emb(hidden_states, position_ids)
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
hidden_states = decoder_layer(
hidden_states,
attention_mask=mask,
position_ids=position_ids,
past_key_values=None,
use_cache=False,
cache_position=cache_position,
position_embeddings=position_embeddings,
)
result: torch.Tensor = self.norm(hidden_states)
return result
class GigaEmbedder:
"""Loads the verified files of one directory and encodes on CPU."""
def __init__(self, model_dir: Path, max_tokens: int, verify_weights: bool) -> None:
lock = load_lock(model_dir / LOCK_FILE_NAME)
if verify_weights:
verify_directory(lock, model_dir)
_check_query_prompt(model_dir)
self._tokenizer = PreTrainedTokenizerFast.from_pretrained(
str(model_dir), local_files_only=True
)
model = Qwen3BidirectionalModel.from_pretrained(
str(model_dir),
dtype=torch.float32,
attn_implementation="sdpa",
local_files_only=True,
use_safetensors=True,
)
model.eval() # type: ignore[no-untyped-call]
self._model = model
self._max_tokens = max_tokens
self._info = ModelInfo(
model_id=lock.model_id,
revision=lock.revision,
dimension=int(model.config.hidden_size),
max_tokens=max_tokens,
prompt_version=PROMPT_VERSION,
)
@property
def info(self) -> ModelInfo:
return self._info
@torch.inference_mode()
def encode_batch(self, kind: InputKind, texts: Sequence[str]) -> list[list[float]]:
prompt = QUERY_PROMPT if kind is InputKind.QUERY else DOCUMENT_PROMPT
prepared = [(prompt + text).strip() for text in texts]
encoded: Any = self._tokenizer(
prepared,
padding=True,
truncation="longest_first",
max_length=self._max_tokens,
return_tensors="pt",
)
attention_mask: torch.Tensor = encoded["attention_mask"]
hidden = self._model.encode_hidden(encoded["input_ids"], attention_mask)
weights = attention_mask.unsqueeze(-1).to(hidden.dtype)
summed = (hidden * weights).sum(dim=1)
counts = weights.sum(dim=1).clamp(min=1e-9)
pooled = torch.nn.functional.normalize(summed / counts, p=2, dim=1)
vectors: list[list[float]] = pooled.to(torch.float32).tolist()
return vectors
def _check_query_prompt(model_dir: Path) -> None:
document = json.loads(
(model_dir / "config_sentence_transformers.json").read_text(encoding="utf-8")
)
prompts = document.get("prompts", {})
if prompts.get("query") != QUERY_PROMPT or prompts.get("document", "") != DOCUMENT_PROMPT:
raise RuntimeError("the model prompts differ from the reviewed recipe")
def configure_torch(threads: int) -> None:
"""Fix the thread pools so results and latency do not depend on the host."""
torch.set_num_threads(threads)
torch.set_num_interop_threads(1)
# The loader's progress bar would print raw text into the JSON log.
transformers_logging.disable_progress_bar() # type: ignore[no-untyped-call]
+151
View File
@@ -0,0 +1,151 @@
"""Loading state and serialized execution of the encoder.
The encoder loads in a background thread after startup, so the process
answers /healthz at once. Readiness turns ready only after a warm-up encode
of both input kinds has finished. Encoding runs one request at a time: the
model already uses every configured CPU thread, and parallel requests would
only compete for them.
"""
from __future__ import annotations
import logging
import threading
import time
from collections.abc import Callable, Sequence
from enum import StrEnum
from typing import Final
from prometheus_client import Counter, Histogram
from lincodex_ml.config import EmbedderKind, Settings
from lincodex_ml.inference.embedder import Embedder, InputKind, ModelInfo, encode_ordered
logger = logging.getLogger(__name__)
# Warm-up texts: the first passes allocate kernels and buffers, so the
# first real request does not pay for them.
_WARMUP_TEXTS: Final = (
"Backend developer: idempotent payment callbacks, PostgreSQL, Kafka.",
"Разработка сервиса уведомлений с повторной доставкой и дедупликацией.", # noqa: RUF001
)
_WARMUP_ROUNDS: Final = 3
ENCODE_SECONDS: Final = Histogram(
"lincodex_ml_embedding_request_seconds",
"Time to encode one embedding request, by input kind.",
["kind"],
buckets=(0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0, 30.0),
)
ENCODED_TEXTS: Final = Counter(
"lincodex_ml_embedding_texts_total",
"Texts encoded, by input kind.",
["kind"],
)
class RuntimeState(StrEnum):
DISABLED = "disabled"
LOADING = "loading"
READY = "ready"
FAILED = "failed"
class NotReadyError(Exception):
"""The encoder is not loaded and warmed up."""
class EmbeddingRuntime:
def __init__(self, settings: Settings, factory: Callable[[], Embedder] | None) -> None:
self._settings = settings
self._factory = factory
self._state = RuntimeState.DISABLED if factory is None else RuntimeState.LOADING
self._embedder: Embedder | None = None
self._state_lock = threading.Lock()
self._encode_lock = threading.Lock()
self._thread: threading.Thread | None = None
@property
def state(self) -> RuntimeState:
with self._state_lock:
return self._state
def start(self) -> None:
"""Load and warm up the encoder in the background."""
if self._factory is None or self._thread is not None:
return
self._thread = threading.Thread(target=self._load, name="embedder-load", daemon=True)
self._thread.start()
def wait(self, timeout: float | None = None) -> RuntimeState:
if self._thread is not None:
self._thread.join(timeout)
return self.state
def _load(self) -> None:
factory = self._factory
if factory is None:
return
started = time.monotonic()
try:
embedder = factory()
for _ in range(_WARMUP_ROUNDS):
for kind in InputKind:
encode_ordered(embedder, kind, _WARMUP_TEXTS, self._settings.micro_batch)
except Exception as error:
# The message can quote file paths or text; the type is enough to act on.
logger.error("embedding model failed to load: %s", type(error).__name__)
with self._state_lock:
self._state = RuntimeState.FAILED
return
with self._state_lock:
self._embedder = embedder
self._state = RuntimeState.READY
logger.info(
"embedding model is ready",
extra={"seconds": round(time.monotonic() - started, 1)},
)
def info(self) -> ModelInfo:
with self._state_lock:
if self._embedder is None:
raise NotReadyError
return self._embedder.info
def encode(self, kind: InputKind, texts: Sequence[str]) -> tuple[ModelInfo, list[list[float]]]:
with self._state_lock:
embedder = self._embedder
if embedder is None:
raise NotReadyError
with self._encode_lock, ENCODE_SECONDS.labels(kind=kind.value).time():
vectors = encode_ordered(embedder, kind, texts, self._settings.micro_batch)
ENCODED_TEXTS.labels(kind=kind.value).inc(len(texts))
return embedder.info, vectors
def embedder_factory(settings: Settings) -> Callable[[], Embedder] | None:
"""Return how to build the configured encoder, or None when disabled."""
match settings.embedder:
case EmbedderKind.NONE:
return None
case EmbedderKind.FAKE:
def build_fake() -> Embedder:
from lincodex_ml.inference.fake import FakeEmbedder
return FakeEmbedder(max_tokens=settings.max_tokens)
return build_fake
case EmbedderKind.GIGA:
def build_giga() -> Embedder:
# Imported here: torch and transformers load in seconds and
# only a service that runs the model needs them.
from lincodex_ml.inference.giga import GigaEmbedder, configure_torch
configure_torch(settings.torch_threads)
return GigaEmbedder(
settings.model_dir, settings.max_tokens, settings.verify_weights
)
return build_giga
+32 -3
View File
@@ -1,17 +1,46 @@
import os
from collections.abc import AsyncIterator
from contextlib import asynccontextmanager
from fastapi import FastAPI
from prometheus_client import REGISTRY, make_asgi_app
from lincodex_ml.api.embeddings import router as embeddings_router
from lincodex_ml.api.health import router as health_router
from lincodex_ml.api.problems import install_problem_handlers
from lincodex_ml.api.problems import BodyLimitMiddleware, install_problem_handlers
from lincodex_ml.config import Settings, load_settings
from lincodex_ml.inference.runtime import EmbeddingRuntime, embedder_factory
from lincodex_ml.infra.logging import configure_logging
# The model is read from the image only; the Hugging Face libraries must never
# reach the network or print progress bars into the JSON log.
os.environ.setdefault("HF_HUB_OFFLINE", "1")
os.environ.setdefault("TRANSFORMERS_OFFLINE", "1")
os.environ.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")
os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1")
def create_app() -> FastAPI:
def create_app(
settings: Settings | None = None, runtime: EmbeddingRuntime | None = None
) -> FastAPI:
configure_logging()
application = FastAPI(title="Lincodex ML Operational API", version="0.1.0")
effective = load_settings() if settings is None else settings
embedding_runtime = (
EmbeddingRuntime(effective, embedder_factory(effective)) if runtime is None else runtime
)
@asynccontextmanager
async def lifespan(_: FastAPI) -> AsyncIterator[None]:
embedding_runtime.start()
yield
application = FastAPI(title="Lincodex ML Operational API", version="0.1.0", lifespan=lifespan)
application.openapi_version = "3.1.2"
application.state.embedding_runtime = embedding_runtime
install_problem_handlers(application)
application.add_middleware(BodyLimitMiddleware, max_body_bytes=effective.max_body_bytes)
application.include_router(health_router)
application.include_router(embeddings_router)
application.mount("/metrics", make_asgi_app(registry=REGISTRY))
return application
+188
View File
@@ -0,0 +1,188 @@
"""Pinned model files: fetch them once at image build time and verify them.
The module uses only the standard library, so the image build can run it
before any dependency is installed. A lock file names the model, its pinned
revision, and the size and SHA-256 of every file that the service loads.
Nothing else is fetched: no remote code and no pickle weights.
Usage:
python -m lincodex_ml.model_files fetch --lock LOCK --out DIR
python -m lincodex_ml.model_files verify --lock LOCK --dir DIR
"""
from __future__ import annotations
import argparse
import hashlib
import json
import os
import re
import sys
import tempfile
import urllib.request
from dataclasses import dataclass
from pathlib import Path
from typing import Final
# The only host the fetch reads from; redirects to its storage CDN follow.
SOURCE_HOST: Final = "https://huggingface.co"
_CHUNK_BYTES: Final = 1 << 20
_FETCH_TIMEOUT_SECONDS: Final = 60
_FETCH_ATTEMPTS: Final = 3
_REVISION_PATTERN: Final = re.compile(r"^[0-9a-f]{40}$")
_MODEL_ID_PATTERN: Final = re.compile(r"^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$")
_FILE_NAME_PATTERN: Final = re.compile(r"^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)?$")
_SHA256_PATTERN: Final = re.compile(r"^[0-9a-f]{64}$")
LOCK_FILE_NAME: Final = "model.lock.json"
class ModelFilesError(Exception):
"""A lock file or a model file does not match its pin."""
@dataclass(frozen=True, slots=True)
class PinnedFile:
name: str
size: int
sha256: str
@dataclass(frozen=True, slots=True)
class ModelLock:
model_id: str
revision: str
files: tuple[PinnedFile, ...]
def load_lock(path: Path) -> ModelLock:
"""Read and validate a lock file."""
try:
document = json.loads(path.read_text(encoding="utf-8"))
except (OSError, ValueError) as error:
raise ModelFilesError("the lock file cannot be read") from error
model_id = document.get("id")
revision = document.get("revision")
files = document.get("files")
if not isinstance(model_id, str) or not _MODEL_ID_PATTERN.fullmatch(model_id):
raise ModelFilesError("the lock file has an invalid model id")
if not isinstance(revision, str) or not _REVISION_PATTERN.fullmatch(revision):
raise ModelFilesError("the lock file must pin a full commit revision")
if not isinstance(files, dict) or not files:
raise ModelFilesError("the lock file lists no files")
pinned: list[PinnedFile] = []
for name, entry in sorted(files.items()):
if not isinstance(name, str) or not _FILE_NAME_PATTERN.fullmatch(name) or ".." in name:
raise ModelFilesError("the lock file has an invalid file name")
if name.endswith((".bin", ".pkl", ".pt", ".py")):
raise ModelFilesError("the lock file must not pin pickle weights or code")
size = entry.get("size") if isinstance(entry, dict) else None
digest = entry.get("sha256") if isinstance(entry, dict) else None
if not isinstance(size, int) or size <= 0:
raise ModelFilesError("the lock file has an invalid file size")
if not isinstance(digest, str) or not _SHA256_PATTERN.fullmatch(digest):
raise ModelFilesError("the lock file has an invalid file digest")
pinned.append(PinnedFile(name=name, size=size, sha256=digest))
return ModelLock(model_id=model_id, revision=revision, files=tuple(pinned))
def file_sha256(path: Path) -> str:
digest = hashlib.sha256()
with path.open("rb") as stream:
while chunk := stream.read(_CHUNK_BYTES):
digest.update(chunk)
return digest.hexdigest()
def verify_file(path: Path, pinned: PinnedFile) -> None:
"""Fail unless the file has exactly the pinned size and digest."""
if not path.is_file() or path.stat().st_size != pinned.size:
raise ModelFilesError(f"{pinned.name} is missing or has the wrong size")
if file_sha256(path) != pinned.sha256:
raise ModelFilesError(f"{pinned.name} does not match its pinned SHA-256")
def verify_directory(lock: ModelLock, directory: Path) -> None:
"""Verify every pinned file of a model directory."""
for pinned in lock.files:
verify_file(directory / pinned.name, pinned)
def _download(url: str, target: Path, pinned: PinnedFile) -> None:
digest = hashlib.sha256()
written = 0
request = urllib.request.Request(url, headers={"User-Agent": "lincodex-model-fetch"})
with (
urllib.request.urlopen(request, timeout=_FETCH_TIMEOUT_SECONDS) as response,
target.open("wb") as stream,
):
while chunk := response.read(_CHUNK_BYTES):
written += len(chunk)
if written > pinned.size:
raise ModelFilesError(f"{pinned.name} is larger than pinned")
digest.update(chunk)
stream.write(chunk)
if written != pinned.size or digest.hexdigest() != pinned.sha256:
raise ModelFilesError(f"{pinned.name} does not match its pin")
def fetch(lock: ModelLock, directory: Path) -> None:
"""Download every pinned file that is missing or wrong, then verify all."""
for pinned in lock.files:
target = directory / pinned.name
try:
verify_file(target, pinned)
continue
except ModelFilesError:
pass
target.parent.mkdir(parents=True, exist_ok=True)
url = f"{SOURCE_HOST}/{lock.model_id}/resolve/{lock.revision}/{pinned.name}"
last_error: Exception | None = None
for _attempt in range(_FETCH_ATTEMPTS):
descriptor, temporary = tempfile.mkstemp(dir=target.parent, prefix=".fetch-")
os.close(descriptor)
try:
_download(url, Path(temporary), pinned)
# The runtime user only reads the files.
Path(temporary).chmod(0o644)
Path(temporary).replace(target)
last_error = None
break
except (OSError, ModelFilesError) as error:
last_error = error
Path(temporary).unlink(missing_ok=True)
if last_error is not None:
raise ModelFilesError(f"{pinned.name} could not be fetched") from last_error
verify_directory(lock, directory)
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(prog="lincodex_ml.model_files")
commands = parser.add_subparsers(dest="command", required=True)
fetch_parser = commands.add_parser("fetch", help="download and verify the pinned files")
fetch_parser.add_argument("--lock", type=Path, required=True)
fetch_parser.add_argument("--out", type=Path, required=True)
verify_parser = commands.add_parser("verify", help="verify a model directory")
verify_parser.add_argument("--lock", type=Path, required=True)
verify_parser.add_argument("--dir", type=Path, required=True)
arguments = parser.parse_args(argv)
try:
lock = load_lock(arguments.lock)
if arguments.command == "fetch":
arguments.out.mkdir(parents=True, exist_ok=True)
fetch(lock, arguments.out)
# The lock travels with the files, so the service can verify and
# report the exact pin it loads.
(arguments.out / LOCK_FILE_NAME).write_text(
arguments.lock.read_text(encoding="utf-8"), encoding="utf-8"
)
else:
verify_directory(lock, arguments.dir)
except ModelFilesError as error:
print(f"model files: {error}", file=sys.stderr)
return 1
print(f"model files: {lock.model_id}@{lock.revision} verified")
return 0
if __name__ == "__main__":
raise SystemExit(main())
+1
View File
@@ -0,0 +1 @@
{"source": "research run giga-480m, float32, sentence-transformers 5.7.0 on CUDA (reports/step3 caches); synthetic texts written for the study", "model": "ai-sage/Giga-Embeddings-instruct-480M-0826", "revision": "1763d603adac8057bd6482a708001b0ed2e0a903", "cases": [{"kind": "query", "text": "Title: Junior backend-разработчик в команду товарного каталога\nGrade: junior\nDomain: e-commerce, товарный каталог\nRequired skills: Python; REST API; SQL\nDesired skills: FastAPI или Django; pydantic\nTasks:\n- разрабатывать эндпоинты создания и редактирования карточек товаров\n- валидировать входящие данные от контент-менеджеров и внешних систем\n- делать постраничную выдачу и регулярные выгрузки для других систем\nDescription: Вакансия: Junior backend-разработчик. Мы развиваем внутренний сервис товарного каталога, через который контент-менеджеры заводят карточки, а остальные системы забирают данные. Нужно писать эндпоинты для создания и редактирования карточек, аккуратно проверять входные данные, делать постраничную выдачу и регулярные выгрузки в другие системы. Ожидаем уверенный Python, понимание REST и SQL. Будет плюсом опыт с FastAPI или Django и pydantic. Наставничество есть.", "vector": [0.0010874, -0.0122021, -0.0296269, -0.0182613, 0.0168587, 0.0215172, 0.015573, -0.0077459, -0.0405785, 0.0280189, 0.0662278, -0.0130433, -0.0063699, 0.0058273, 0.0623433, 0.0054798, 0.0295653, 0.0109709, 0.0267212, 0.0118491, 0.0138514, -0.0092159, 0.0062456, 0.0270044, 0.0125473, 0.0560331, 0.0836002, -0.0177237, 0.0148641, 0.020999, 0.0130739, 0.010851, -0.0070858, 0.0371799, -0.0108275, 0.0309553, 0.0318851, 0.0315151, -0.0175437, 0.0376225, 0.0648459, 0.0062609, 0.0451493, 0.0164599, 0.0057624, -0.0437538, 0.0206657, -0.0144556, -0.0052715, 0.0121134, -0.0331767, 0.0441031, -0.022338, -0.0175843, -0.0057629, -0.0301147, -0.0111735, 0.0007432, -0.0288401, 0.0450347, 0.0183183, 0.031774, -0.0546547, 0.0061646, -0.0115972, 0.0508562, -0.0021525, -0.0080868, 0.0016952, -0.0466259, 0.0033148, -0.0120994, 0.0127655, -0.0150255, -0.0136487, 0.0042134, 0.0178402, -0.0519363, -0.0089776, -0.0448243, 0.0158321, -0.0142117, -0.0263317, 0.0508424, 0.0373702, -0.0055558, -0.0294157, 0.0146107, 0.0241555, -0.0365671, -0.0091064, 0.0002475, 0.010197, -0.0302118, -0.0324269, 0.0131996, -0.0077065, -0.0270601, -0.0444277, 0.0100831, -0.0352657, -0.0363421, 0.0365646, -0.0230992, 0.0344071, -0.0448087, 0.0441019, 0.0383389, 0.0257643, -0.062267, 0.0291318, -0.0192691, -0.0076901, 0.0193025, 0.0135324, 0.0260016, -0.0529182, -0.0119884, -0.0121649, -0.0207623, 0.0069311, -0.0410238, -0.0187615, -0.0312817, 0.0030423, 0.0061491, 0.0193261, 0.0412739, -0.0154324, -0.042763, 0.0306725, 0.0008396, 0.006132, 0.0088559, 0.0224031, 0.0139317, 0.0487625, 0.003571, 0.024823, -0.0089968, -0.0413704, -0.0692513, 0.0322092, -0.003721, -0.0097764, -0.0184926, 0.0228861, -0.0311401, -0.0297228, 0.020615, 0.0047598, 0.0022507, 0.0124001, 0.0417159, -0.0436192, -0.0815099, -0.0174925, -0.0205195, 0.0193254, 0.0706004, 0.0022302, 0.0458147, 0.0168698, -0.0097129, 0.0445161, 0.0008063, -0.0044315, 0.0015631, 0.0018957, 0.0290296, -0.0227532, -0.0371539, -0.0729047, 0.020618, -0.0152086, 0.0134396, 0.0095738, 0.0426427, 0.0502025, -0.0469692, 0.0036251, 0.0136171, -0.0208582, 0.0182502, 0.013664, 0.020154, 0.0089408, -0.0547697, -0.0647874, -0.0456385, -0.0213974, 0.0212687, -0.0465319, 0.0077016, 0.0074073, -0.0322197, 0.0268453, -0.0195837, -0.0228397, -0.023701, -0.0006939, 0.0072619, -0.003501, 0.0075031, -0.0808211, -0.0268128, 0.0159746, -0.0713221, -0.0003716, 0.0347029, -0.0650821, -0.0078897, 0.0077127, 0.006232, -0.0449824, 0.0209828, -0.0464028, 0.0685018, -0.0279625, -0.0166439, 0.027674, -0.0295136, 0.0231525, -0.0005871, -0.0164897, -0.0037675, 0.0772745, -0.0139079, -0.0154013, 0.0206638, 0.024798, 0.0009943, -0.0174517, -0.0403561, 0.0224058, -0.0085782, 0.0455634, -0.036259, 0.0153402, 0.0369549, 0.0162551, -0.0038592, 0.0011081, -0.0152834, -0.0139122, -0.0156211, 0.0593592, 0.0439871, 0.0081494, 0.0446605, 0.0101774, -0.0657304, -0.0366937, 0.0102266, 0.0023427, 0.0151238, -0.0119786, 0.017147, 0.0128313, 0.0085243, 0.0006423, 0.0417882, 0.0262946, -0.0036146, 0.0036378, -0.015278, 0.0113112, -0.0075143, -0.0113745, 0.0583961, -0.0004987, 0.0306577, -0.0718292, -0.0414702, -0.0301506, -0.0591662, 0.0396986, 0.0208291, -0.0583831, 0.0571403, -0.0022077, 0.0326037, 0.0130092, -0.0Line truncated
+244
View File
@@ -0,0 +1,244 @@
import json
import logging
import math
from collections.abc import Sequence
from pathlib import Path
import httpx
import pytest
import yaml
from fastapi import FastAPI
from lincodex_ml.config import EmbedderKind, Settings, load_settings
from lincodex_ml.inference.embedder import InputKind, ModelInfo, micro_batches
from lincodex_ml.inference.fake import FakeEmbedder
from lincodex_ml.inference.runtime import EmbeddingRuntime, RuntimeState
from lincodex_ml.main import create_app
CONTRACT_PATH = Path(__file__).resolve().parents[2] / "api" / "ml" / "openapi.bundle.yml"
PRIVATE_TEXT = "Jane Doe, +7 900 000-00-00, built a ledger at Example Bank"
@pytest.fixture
def anyio_backend() -> str:
return "asyncio"
def _settings(**overrides: object) -> Settings:
base = load_settings({"ML_EMBEDDER": "fake"})
values = {
"embedder": base.embedder,
"model_dir": base.model_dir,
"torch_threads": base.torch_threads,
"micro_batch": base.micro_batch,
"max_tokens": base.max_tokens,
"verify_weights": base.verify_weights,
"max_body_bytes": base.max_body_bytes,
}
values.update(overrides)
return Settings(**values) # type: ignore[arg-type]
class RecordingEmbedder:
"""Fake encoder that records the micro-batches it receives."""
def __init__(self) -> None:
self.inner = FakeEmbedder()
self.batches: list[list[str]] = []
@property
def info(self) -> ModelInfo:
return self.inner.info
def encode_batch(self, kind: InputKind, texts: Sequence[str]) -> list[list[float]]:
self.batches.append(list(texts))
return self.inner.encode_batch(kind, texts)
def _ready_app(settings: Settings, embedder: object | None = None) -> FastAPI:
built = embedder if embedder is not None else FakeEmbedder()
runtime = EmbeddingRuntime(settings, lambda: built) # type: ignore[arg-type, return-value]
runtime.start()
assert runtime.wait(10) is RuntimeState.READY
return create_app(settings, runtime)
async def _post(application: FastAPI, body: object, **kwargs: object) -> httpx.Response:
async with httpx.AsyncClient(
transport=httpx.ASGITransport(app=application), base_url="http://test"
) as client:
return await client.post("/v1/embeddings", json=body, **kwargs) # type: ignore[arg-type]
@pytest.mark.anyio
async def test_embeddings_return_normalized_vectors_in_request_order() -> None:
application = _ready_app(_settings())
texts = ["short", "a much longer text than the first one", "mid length text"]
response = await _post(application, {"kind": "document", "texts": texts})
assert response.status_code == 200
body = response.json()
assert body["kind"] == "document"
assert body["model"]["id"] == "lincodex/fake-hash-embedder"
assert body["model"]["dimension"] == 32
assert len(body["vectors"]) == len(texts)
for text, vector in zip(texts, body["vectors"], strict=True):
assert vector == FakeEmbedder().encode_batch(InputKind.DOCUMENT, [text])[0]
assert math.isclose(math.sqrt(sum(value * value for value in vector)), 1.0, abs_tol=1e-6)
@pytest.mark.anyio
async def test_identical_requests_give_identical_vectors_and_kinds_differ() -> None:
application = _ready_app(_settings(micro_batch=2))
body = {"kind": "query", "texts": ["Kafka", "make payment callbacks idempotent", "Go"]}
first = (await _post(application, body)).json()
second = (await _post(application, body)).json()
document = (await _post(application, {**body, "kind": "document"})).json()
assert first == second
assert first["vectors"] != document["vectors"]
def test_micro_batches_sort_by_length_with_position_as_tie_breaker() -> None:
texts = ["bb", "a", "cc", "dddd", "e"]
assert micro_batches(texts, 2) == [[3, 0], [2, 1], [4]]
assert micro_batches(texts, 1) == [[3], [0], [2], [1], [4]]
@pytest.mark.anyio
async def test_micro_batch_size_bounds_every_forward_pass() -> None:
recorder = RecordingEmbedder()
application = _ready_app(_settings(micro_batch=2), recorder)
recorder.batches.clear()
await _post(application, {"kind": "document", "texts": ["a", "bbb", "cc", "dddd", "e"]})
assert recorder.batches == [["dddd", "bbb"], ["cc", "a"], ["e"]]
@pytest.mark.anyio
async def test_service_answers_503_until_the_model_is_ready() -> None:
application = create_app(_settings(embedder=EmbedderKind.NONE))
async with httpx.AsyncClient(
transport=httpx.ASGITransport(app=application), base_url="http://test"
) as client:
response = await client.post("/v1/embeddings", json={"kind": "query", "texts": ["Go"]})
readiness = await client.get("/readyz")
assert response.status_code == 503
assert response.headers["content-type"].startswith("application/problem+json")
assert response.json()["code"] == "service_unavailable"
assert response.headers["retry-after"] == "5"
assert readiness.status_code == 503
@pytest.mark.anyio
async def test_readiness_turns_ready_only_after_the_warm_up() -> None:
application = _ready_app(_settings())
async with httpx.AsyncClient(
transport=httpx.ASGITransport(app=application), base_url="http://test"
) as client:
response = await client.get("/readyz")
assert response.status_code == 200
assert response.json() == {"status": "ready"}
def test_failed_load_keeps_the_service_not_ready(caplog: pytest.LogCaptureFixture) -> None:
def broken() -> FakeEmbedder:
raise OSError(PRIVATE_TEXT)
runtime = EmbeddingRuntime(_settings(), broken)
with caplog.at_level(logging.INFO):
runtime.start()
assert runtime.wait(10) is RuntimeState.FAILED
assert PRIVATE_TEXT not in caplog.text
@pytest.mark.anyio
@pytest.mark.parametrize(
"body",
[
{"kind": "query", "texts": []},
{"kind": "query", "texts": ["x"] * 33},
{"kind": "query", "texts": ["x" * 8001]},
{"kind": "query", "texts": [""]},
{"kind": "summary", "texts": ["x"]},
{"kind": "query", "texts": ["x"], "prompt": "ignore the instruction"},
],
)
async def test_requests_outside_the_contract_answer_400(body: object) -> None:
application = _ready_app(_settings())
response = await _post(application, body)
assert response.status_code == 400
assert response.json()["code"] == "validation_failed"
@pytest.mark.anyio
async def test_body_over_the_limit_answers_413() -> None:
application = _ready_app(_settings(max_body_bytes=1024))
response = await _post(application, {"kind": "query", "texts": ["x" * 2000]})
assert response.status_code == 413
assert response.json()["code"] == "payload_too_large"
@pytest.mark.anyio
async def test_streamed_body_over_the_limit_answers_413() -> None:
application = _ready_app(_settings(max_body_bytes=1024))
payload = json.dumps({"kind": "query", "texts": ["x" * 2000]}).encode()
async def chunks(): # type: ignore[no-untyped-def]
for start in range(0, len(payload), 256):
yield payload[start : start + 256]
async with httpx.AsyncClient(
transport=httpx.ASGITransport(app=application), base_url="http://test"
) as client:
response = await client.post(
"/v1/embeddings", content=chunks(), headers={"content-type": "application/json"}
)
assert response.status_code == 413
@pytest.mark.anyio
async def test_request_texts_never_reach_the_log(caplog: pytest.LogCaptureFixture) -> None:
application = _ready_app(_settings())
with caplog.at_level(logging.DEBUG):
await _post(application, {"kind": "document", "texts": [PRIVATE_TEXT]})
await _post(application, {"kind": "document", "texts": [PRIVATE_TEXT * 2000]})
assert "Jane Doe" not in caplog.text
def test_embedding_operation_matches_the_shared_contract() -> None:
contract = yaml.safe_load(CONTRACT_PATH.read_text(encoding="utf-8"))
operation = contract["paths"]["/v1/embeddings"]["post"]
implementation = create_app(_settings(embedder=EmbedderKind.NONE)).openapi()
actual = implementation["paths"]["/v1/embeddings"]["post"]
assert actual["operationId"] == operation["operationId"]
assert set(operation["responses"]) >= {"200", "400", "413", "503"}
def test_settings_reject_invalid_values() -> None:
from lincodex_ml.config import SettingsError
for environ in (
{"ML_EMBEDDER": "gpt"},
{"ML_TORCH_THREADS": "0"},
{"ML_MICRO_BATCH": "many"},
{"ML_VERIFY_WEIGHTS": "maybe"},
):
with pytest.raises(SettingsError):
load_settings(environ)
settings = load_settings({})
assert settings.embedder is EmbedderKind.NONE
assert (settings.torch_threads, settings.micro_batch, settings.max_tokens) == (4, 1, 1024)
@pytest.mark.anyio
async def test_a_request_may_name_the_served_model_and_not_another() -> None:
application = _ready_app(_settings())
served = await _post(
application, {"model": "lincodex/fake-hash-embedder", "kind": "query", "texts": ["Go"]}
)
assert served.status_code == 200
other = await _post(application, {"model": "example/other", "kind": "query", "texts": ["Go"]})
assert other.status_code == 400
assert other.json()["errors"][0]["pointer"] == "/model"
+48
View File
@@ -0,0 +1,48 @@
"""Parity of the real model with the research vectors.
Marked slow: it needs the pinned weights in ML_MODEL_DIR (fetch them with
`make -C ml model-fetch`) and runs only with `make -C ml test-model`.
"""
import json
import math
import os
from pathlib import Path
import pytest
from lincodex_ml.inference.embedder import InputKind
GOLDEN = Path(__file__).resolve().parent / "data" / "giga_golden.json"
# CPU float32 against the research CUDA float32 run; measured differences are
# below 1e-6 per component.
MAX_COMPONENT_DIFFERENCE = 1e-4
pytestmark = pytest.mark.slow
@pytest.fixture(scope="module")
def model_dir() -> Path:
raw = os.environ.get("ML_MODEL_DIR", "")
if not raw:
pytest.skip("ML_MODEL_DIR is not set")
return Path(raw)
def test_real_model_reproduces_the_research_vectors_deterministically(model_dir: Path) -> None:
from lincodex_ml.inference.giga import GigaEmbedder, configure_torch
configure_torch(4)
embedder = GigaEmbedder(model_dir, max_tokens=1024, verify_weights=True)
golden = json.loads(GOLDEN.read_text(encoding="utf-8"))
assert embedder.info.model_id == golden["model"]
assert embedder.info.revision == golden["revision"]
assert embedder.info.dimension == 1024
for case in golden["cases"]:
kind = InputKind(case["kind"])
first = embedder.encode_batch(kind, [case["text"]])[0]
second = embedder.encode_batch(kind, [case["text"]])[0]
assert first == second
assert math.isclose(math.sqrt(sum(value * value for value in first)), 1.0, abs_tol=1e-5)
difference = max(abs(a - b) for a, b in zip(first, case["vector"], strict=True))
assert difference < MAX_COMPONENT_DIFFERENCE
+83
View File
@@ -0,0 +1,83 @@
import hashlib
import json
from pathlib import Path
import pytest
from lincodex_ml.model_files import (
LOCK_FILE_NAME,
ModelFilesError,
PinnedFile,
load_lock,
main,
verify_directory,
verify_file,
)
LOCK_PATH = Path(__file__).resolve().parents[1] / "model" / "giga-embeddings-480m.lock.json"
def _write_lock(path: Path, files: dict[str, object], **overrides: object) -> Path:
document = {
"id": "example/model",
"revision": "0" * 40,
"files": files,
**overrides,
}
path.write_text(json.dumps(document), encoding="utf-8")
return path
def test_the_checked_in_lock_pins_safetensors_and_no_code() -> None:
lock = load_lock(LOCK_PATH)
names = {pinned.name for pinned in lock.files}
assert lock.model_id == "ai-sage/Giga-Embeddings-instruct-480M-0826"
assert lock.revision == "1763d603adac8057bd6482a708001b0ed2e0a903"
assert "model.safetensors" in names
assert not any(name.endswith((".py", ".bin", ".pt", ".pkl")) for name in names)
@pytest.mark.parametrize(
("files", "overrides"),
[
({"model.bin": {"size": 1, "sha256": "0" * 64}}, {}),
({"modeling.py": {"size": 1, "sha256": "0" * 64}}, {}),
({"../escape": {"size": 1, "sha256": "0" * 64}}, {}),
({"config.json": {"size": 1, "sha256": "short"}}, {}),
({"config.json": {"size": 1, "sha256": "0" * 64}}, {"revision": "main"}),
({}, {}),
],
)
def test_lock_rejects_unsafe_or_unpinned_entries(
tmp_path: Path, files: dict[str, object], overrides: dict[str, object]
) -> None:
with pytest.raises(ModelFilesError):
load_lock(_write_lock(tmp_path / "lock.json", files, **overrides))
def test_verification_detects_size_and_digest_changes(tmp_path: Path) -> None:
content = b"weights"
target = tmp_path / "model.safetensors"
target.write_bytes(content)
pinned = PinnedFile("model.safetensors", len(content), hashlib.sha256(content).hexdigest())
verify_file(target, pinned)
target.write_bytes(b"weightz")
with pytest.raises(ModelFilesError):
verify_file(target, pinned)
target.write_bytes(b"longer weights")
with pytest.raises(ModelFilesError):
verify_file(target, pinned)
def test_verify_command_checks_a_directory(tmp_path: Path) -> None:
content = b"{}"
(tmp_path / "config.json").write_bytes(content)
lock = _write_lock(
tmp_path / LOCK_FILE_NAME,
{"config.json": {"size": len(content), "sha256": hashlib.sha256(content).hexdigest()}},
)
verify_directory(load_lock(lock), tmp_path)
assert main(["verify", "--lock", str(lock), "--dir", str(tmp_path)]) == 0
(tmp_path / "config.json").write_bytes(b"[]")
assert main(["verify", "--lock", str(lock), "--dir", str(tmp_path)]) == 1
+2 -1
View File
@@ -150,7 +150,8 @@ def test_uvicorn_loggers_are_redacted_after_uvicorn_configures_them(
(429, 429, "rate_limited"),
(501, 501, "not_implemented"),
(418, 400, "validation_failed"),
(503, 500, "internal"),
(503, 503, "service_unavailable"),
(502, 500, "internal"),
],
)
async def test_http_exceptions_map_to_contract_problems(
Generated
+428
View File
@@ -1,6 +1,10 @@
version = 1
revision = 5
requires-python = "==3.14.*"
resolution-markers = [
"sys_platform != 'darwin'",
"sys_platform == 'darwin'",
]
[[package]]
name = "annotated-doc"
@@ -191,6 +195,24 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a0/b6/78aaf9141fb46742928c113f3cf6ef2259d538cb02b604b7656c1dc9883c/fastapi-0.142.2-py3-none-any.whl", hash = "sha256:bd5f4d81f1e93a88bcd77caf4dfe3c2dbffc3805407a0007e9a114c18b3a670b", size = 144409, upload-time = "2026-09-30T09:51:09.8Z" },
]
[[package]]
name = "filelock"
version = "4.1.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/4c/58/6fd434bec86eff7c38a3168454cb132b762b2bea9b3ac094101a2f7bc32a/filelock-4.1.0.tar.gz", hash = "sha256:ad7f724afef953e731b1cc39bcd3a09166d72ed7fcdf29e6e88b1c3235c6715d", size = 561277, upload-time = "2026-10-09T19:57:20.34Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/ee/86/032133892a5de43b5a98200b01aadcad68cc255e274a762f08b8a76d2912/filelock-4.1.0-py3-none-any.whl", hash = "sha256:2ce9818e3e2d8f284c1a964414447ef148d42a5fd5e2a477a7118e574b293ec1", size = 133003, upload-time = "2026-10-09T19:57:18.716Z" },
]
[[package]]
name = "fsspec"
version = "2026.9.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/77/cd/9be253869fc42e764de7f3dedd6969af7d44ff9c3375214a3442a6f3fc08/fsspec-2026.9.0.tar.gz", hash = "sha256:0f08147951c8cb31d844c3547d631053b127863b60be04cf06e121333ee0e2fe", size = 333545, upload-time = "2026-09-18T17:50:42.825Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/6c/c0/a98505f18594f1bce828bb159cec0fcf9860562f1a2c85913409fc8f3d9e/fsspec-2026.9.0-py3-none-any.whl", hash = "sha256:8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f", size = 221738, upload-time = "2026-09-18T17:50:41.341Z" },
]
[[package]]
name = "genson"
version = "1.4.0"
@@ -225,6 +247,30 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/5f/80/91f51f439c05d4ec4623c22928ce16a938d6d793bf709477830823497859/hatchling-1.32.4-py3-none-any.whl", hash = "sha256:08ecf7548fb48205e7f213d70c71e67b8271b7242093dc3f1da578b42c734a2c", size = 78748, upload-time = "2026-09-20T22:48:44.19Z" },
]
[[package]]
name = "hf-xet"
version = "1.7.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/9e/27/06d899ea7bd721d272f84aac98bdb238de98af4cc767a69056d967d68c71/hf_xet-1.7.0.tar.gz", hash = "sha256:d406ec79053c0871817f700c2ac8c36ba0d87f9c34b7458b0f0063bb218b0466", size = 985689, upload-time = "2026-10-06T20:18:43.89Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/9f/7c/3e45174942e6793adde6cba4daa7fb037275cf02a944d9eadfcf9ff33b86/hf_xet-1.7.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:fa029678be1ba7f953c409b0b27bf15cc69cd1c9b3a674fbd78856ebefca1052", size = 3803919, upload-time = "2026-10-06T20:18:09.844Z" },
{ url = "https://files.pythonhosted.org/packages/ff/3a/5e8b363391adcbb002e191dbf924dab31464ea9c45adfeb73502afc36d35/hf_xet-1.7.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:57bc157b8b7fe3bee9dcb9af7f3da8de41801c3b31a9ef68a77a33c6a6be382f", size = 3553588, upload-time = "2026-10-06T20:18:13.376Z" },
{ url = "https://files.pythonhosted.org/packages/e5/c2/0d1eaa5da13bbf9c896badc7f380601c7d973a87a6ffb4d100267c4536c1/hf_xet-1.7.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:87dab080f8f7d32781c2586904e3603f4e60d09bfc727706c3ae419e0829beeb", size = 4201962, upload-time = "2026-10-06T20:18:16.11Z" },
{ url = "https://files.pythonhosted.org/packages/23/2d/225d5b11a9ca7d31b9470a57f2b2be1a5cef8b84325a2146aeb4589e226c/hf_xet-1.7.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:b01fe18dbbd151a2403d2c64ed30dc6547b00d6babab9a617d77c7acdb81ee66", size = 3982978, upload-time = "2026-10-06T20:18:18.092Z" },
{ url = "https://files.pythonhosted.org/packages/93/34/9d681f0e3dac0b5dae0d7dea748429266f24e52415446523f464fbaa828e/hf_xet-1.7.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:4ee5e05a627f5ab5bad7a86582277d645556ea1e199903aae19e033a392aa13a", size = 4181558, upload-time = "2026-10-06T20:18:20.082Z" },
{ url = "https://files.pythonhosted.org/packages/de/f0/277f039b7d72027bc2ed277f1b62a2f70f740a5aac2a3e7243e5b6854c5d/hf_xet-1.7.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:19c0e64f14175ccb6a1aff69e0d2ab9ec5269a560e6687abaf2b3fa4f73de7cd", size = 4411546, upload-time = "2026-10-06T20:18:21.999Z" },
{ url = "https://files.pythonhosted.org/packages/3d/7f/832d3ddb49326114175b7bcc50daea8565c09fd21ac03a02b211c09fefb7/hf_xet-1.7.0-cp314-cp314t-win_amd64.whl", hash = "sha256:757168feb5679647c0bb13ee5d0faebe799c4dff9051419885a566ebd79f949d", size = 3812809, upload-time = "2026-10-06T20:18:24.288Z" },
{ url = "https://files.pythonhosted.org/packages/3d/c4/310c3c29e5beae7c049e63947bd1923d597883b41c9ec4718589920812c4/hf_xet-1.7.0-cp314-cp314t-win_arm64.whl", hash = "sha256:b91569d5f1b61c34b043687da02c05dd3604f3d329e7868510bf3f7971599006", size = 3646174, upload-time = "2026-10-06T20:18:26.279Z" },
{ url = "https://files.pythonhosted.org/packages/9c/0b/b03be21ffaada749ba0d3197d8aefbf1aa698bac149580421c15239b299e/hf_xet-1.7.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:e3e88a7a75d7d95cbee1f37dc31341d6201124cf21c6c4b1dfab8ccba9b09e0f", size = 3796096, upload-time = "2026-10-06T20:18:28.43Z" },
{ url = "https://files.pythonhosted.org/packages/c3/47/a26ebdce7056a61e931f228439bc0ab08cbec239d1690f965e5e637cba79/hf_xet-1.7.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:59fba37039233c7fcbe196817d6cdcf1b40dfb17b410f229d85b0cf0a1848da4", size = 3560352, upload-time = "2026-10-06T20:18:30.365Z" },
{ url = "https://files.pythonhosted.org/packages/a3/4c/2bf3b66c215d409655f28de1622393dde04c9461280d48c7924bb3b2decd/hf_xet-1.7.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2814a6e999d13464c4d679b788cc5d784eb5a4edfc638a31f10e9a11ab531ef8", size = 4212180, upload-time = "2026-10-06T20:18:32.292Z" },
{ url = "https://files.pythonhosted.org/packages/49/0c/a2f703a5a78267556e89e03316fa0805c86b72b50829bc67665746e8ebf0/hf_xet-1.7.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:fcfd6c22418e57dd5b3aea649e813b2e2cfb2aebf317b210d90f1fe4b3018b52", size = 3990011, upload-time = "2026-10-06T20:18:34.21Z" },
{ url = "https://files.pythonhosted.org/packages/a4/77/e52e4201b1cbf571530a61cc57f70182045a39a230089ee5f1df182a4de2/hf_xet-1.7.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:80f79dae613ce9e0ea1fd1ae15616ca9ac74aed4c770aabc199c4f03ebecc863", size = 4190628, upload-time = "2026-10-06T20:18:36.062Z" },
{ url = "https://files.pythonhosted.org/packages/6c/dc/03a21b89f118664a0926ff25b0f8e44a519bf22724a6a8fc7a9abbc188b6/hf_xet-1.7.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:0a9e802f33bf50c851abe45fc5380e61f959e2d369647d6742b79ad9d6c27cab", size = 4418814, upload-time = "2026-10-06T20:18:37.888Z" },
{ url = "https://files.pythonhosted.org/packages/4d/59/b35106dfa71b6eef605dc88bd038fe99c7f86fb132a15b60d0bf2f235b2c/hf_xet-1.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:2b7bb5727889b0f2436dbaaad8fc4c3e66b8240d992716989e0c086b4278b1bc", size = 3822644, upload-time = "2026-10-06T20:18:40.052Z" },
{ url = "https://files.pythonhosted.org/packages/48/cd/072313585f74fe9d441e2eb5e0a4703c30586cd709810ea369675f61b74e/hf_xet-1.7.0-cp38-abi3-win_arm64.whl", hash = "sha256:acc3851cf2576a8fb2ae926da863f4efabe21303cf292e9a44332802ab0dcc6a", size = 3662436, upload-time = "2026-10-06T20:18:42.205Z" },
]
[[package]]
name = "httpcore"
version = "1.0.9"
@@ -238,6 +284,19 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },
]
[[package]]
name = "httpcore2"
version = "2.13.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "h11" },
{ name = "truststore" },
]
sdist = { url = "https://files.pythonhosted.org/packages/cb/f3/1db7aa2bc2524062192bb0e0323969492d1883152a232fe36eea65f4e35c/httpcore2-2.13.1.tar.gz", hash = "sha256:e0aa977abe17e69a3b820a24542a6fa88702676d83880b8d194dcd18408e5103", size = 68071, upload-time = "2026-09-23T07:47:22.372Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/09/ba/a4568248771ce81957bfb7cc600264a40fbcda092391ee1c415c50be4bea/httpcore2-2.13.1-py3-none-any.whl", hash = "sha256:e1e05d4f25f7d7d496bfb96748f6f4b67657b03da069b3a68c36069f3db73d0a", size = 83423, upload-time = "2026-09-23T07:47:19.365Z" },
]
[[package]]
name = "httptools"
version = "0.8.0"
@@ -275,6 +334,51 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },
]
[[package]]
name = "httpx2"
version = "2.13.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio", marker = "sys_platform != 'emscripten'" },
{ name = "httpcore2", marker = "sys_platform != 'emscripten'" },
{ name = "httpx2-jsfetch", marker = "sys_platform == 'emscripten'" },
{ name = "idna" },
{ name = "truststore", marker = "sys_platform != 'emscripten'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/d5/44/474bef2a0e9d90f1715d32cb98b0738695ca17ba324095fb2497ed7fbd59/httpx2-2.13.1.tar.gz", hash = "sha256:e48744a19e3af5ee48313d0ce5fe941d5422fae5705ea922a4aabf94d7800dfa", size = 100405, upload-time = "2026-09-23T07:47:23.052Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/d8/9c/6fe8931fd9f381042a9e4c7d5a7b4cbf7016b252bec0c99a49fce42c3326/httpx2-2.13.1-py3-none-any.whl", hash = "sha256:6dff50fabc270ee5fd25d845d0b078ed20564579744d6d962850975996d2f9a4", size = 95597, upload-time = "2026-09-23T07:47:20.995Z" },
]
[[package]]
name = "httpx2-jsfetch"
version = "1.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/cd/c4/0e5636363151a2a1795e0a77617168b9ca438e1748ec05fc9b5687f93d64/httpx2_jsfetch-1.0.tar.gz", hash = "sha256:70a0e3eabfef7cce5ad9c629f7d01ca05e418f586646f4ddf14782e4c1454c60", size = 6872, upload-time = "2026-08-07T00:13:07.492Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/9b/43/832f631d32e4f1211caa2ba368317739fe71f0b8530e4c9d15dc454bac2a/httpx2_jsfetch-1.0-py3-none-any.whl", hash = "sha256:cb916b707601e69a07721aabc8f3f6659be3a6893bc1ff5c6f9e02241df2da32", size = 6382, upload-time = "2026-08-07T00:13:06.567Z" },
]
[[package]]
name = "huggingface-hub"
version = "2.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "click" },
{ name = "filelock" },
{ name = "fsspec" },
{ name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'ARM64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },
{ name = "httpx2" },
{ name = "packaging" },
{ name = "pyyaml" },
{ name = "tqdm" },
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/12/47/6858d63643e66fb4f6585c3cfd4029c0b2bc1ae21688cee9b3335f20a10d/huggingface_hub-2.2.0.tar.gz", hash = "sha256:5d1b47537394e4215cb858aa12fd493d0f7ef7f58990f5dcd24bc173107b2871", size = 1041026, upload-time = "2026-10-08T15:30:59.971Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/eb/b0/0f7b430fd100b3a3b037fdbb314878200241082e607b3383c63d91a13a72/huggingface_hub-2.2.0-py3-none-any.whl", hash = "sha256:1667f145dc56dc210d60966069397df9ecfca9607a5d43db88b308c89dae56b3", size = 839884, upload-time = "2026-10-08T15:30:57.914Z" },
]
[[package]]
name = "idna"
version = "3.20"
@@ -372,8 +476,14 @@ version = "0.1.0"
source = { editable = "." }
dependencies = [
{ name = "fastapi" },
{ name = "numpy" },
{ name = "prometheus-client" },
{ name = "pydantic" },
{ name = "safetensors" },
{ name = "tokenizers" },
{ name = "torch", version = "2.11.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "sys_platform == 'darwin'" },
{ name = "torch", version = "2.11.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "sys_platform != 'darwin'" },
{ name = "transformers" },
{ name = "uvicorn", extra = ["standard"] },
]
@@ -391,8 +501,13 @@ dev = [
[package.metadata]
requires-dist = [
{ name = "fastapi", specifier = "==0.142.2" },
{ name = "numpy", specifier = "==2.5.3" },
{ name = "prometheus-client", specifier = "==0.26.0" },
{ name = "pydantic", specifier = "==2.13.5" },
{ name = "safetensors", specifier = "==0.8.0" },
{ name = "tokenizers", specifier = "==0.23.3" },
{ name = "torch", specifier = "==2.11.0", index = "https://download.pytorch.org/whl/cpu" },
{ name = "transformers", specifier = "==5.19.0" },
{ name = "uvicorn", extras = ["standard"], specifier = "==0.54.0" },
]
@@ -407,6 +522,18 @@ dev = [
{ name = "ruff", specifier = "==0.16.10" },
]
[[package]]
name = "markdown-it-py"
version = "4.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "mdurl" },
]
sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" },
]
[[package]]
name = "markupsafe"
version = "3.0.4"
@@ -450,6 +577,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/93/63/da554b4c97a6b0ea3229ca7fe8cbfb620be81613d517f482e85958550537/markupsafe-3.0.4-cp314-cp314t-win_arm64.whl", hash = "sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c", size = 14421, upload-time = "2026-10-02T23:06:09.402Z" },
]
[[package]]
name = "mdurl"
version = "0.1.2"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },
]
[[package]]
name = "more-itertools"
version = "11.1.0"
@@ -459,6 +595,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" },
]
[[package]]
name = "mpmath"
version = "1.3.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" },
]
[[package]]
name = "mypy"
version = "2.4.0"
@@ -497,6 +642,44 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" },
]
[[package]]
name = "networkx"
version = "3.7"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/dc/76/3af777226b63a5e64a6b36b1ec5855c14e2b94a37096d4760e595fc43511/networkx-3.7.tar.gz", hash = "sha256:fd77a511bd90f39f3d016351345b52cf5319b813bdca01de3f755d3cca62e96a", size = 1866482, upload-time = "2026-09-21T16:45:16.974Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/7e/cd/fe58041e9011f307c490e3e17dd48cc516448f7c698a3f2d9d9d65d7e6a8/networkx-3.7-py3-none-any.whl", hash = "sha256:e3fd2c13a7814cee3746340d8d7f8598a67f16a58bf47fb7f8793fab6efca1b0", size = 2142205, upload-time = "2026-09-21T16:45:14.609Z" },
]
[[package]]
name = "numpy"
version = "2.5.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/13/01/11703282db468b85f6f7b8c7f22d058de5970d5c7e60a3a8aaa313c3de36/numpy-2.5.3.tar.gz", hash = "sha256:df2d5874ff183595a4ba404edd04f6bd9b5505c1d7708573f6a6c17489a67563", size = 20791231, upload-time = "2026-09-06T16:27:47.073Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/70/78/cf416f15dc29375a229d9dfebf8db6e313f291580b39fa1a568b6052bb07/numpy-2.5.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:350ba9783ce969cf9f7ce6e6a9a58e1a6e2a19ca025b7ee448c4db727706212a", size = 16998686, upload-time = "2026-09-06T16:25:33.171Z" },
{ url = "https://files.pythonhosted.org/packages/9e/59/abcc2d8def4fd60eec7d87f92d27c13448ffd9ab14339bcc63a0d7a2fdea/numpy-2.5.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:012e66aca395d795496446e52aeeb5866312a5d4d3f27da270e5a0b43f70dc5c", size = 12013862, upload-time = "2026-09-06T16:25:36.748Z" },
{ url = "https://files.pythonhosted.org/packages/94/75/4640d2d6e4b64a049e48425a82728a41ef4adb61332d2cba68055774878b/numpy-2.5.3-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:adc1ada2662f8a5f960b8a10d9986897e7499ef07e06d4cfe7197f8cce923c07", size = 5449793, upload-time = "2026-09-06T16:25:39.476Z" },
{ url = "https://files.pythonhosted.org/packages/96/cd/625b57ae33d4ca560f32cc0b47b4a5922146d9beb998ddf773900d440a73/numpy-2.5.3-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:54a115e5a73b8fc44f0cebef486365a1894b5c9760685d4558b72b7c3eb846e0", size = 6785176, upload-time = "2026-09-06T16:25:42.069Z" },
{ url = "https://files.pythonhosted.org/packages/9c/72/12918652e7912ef9751e8694c88820fcd1908e0618cb23f5f3caa6004b7b/numpy-2.5.3-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be5a8381859b6da607c84f4f7d6847725f1cf1853ef8a2c9e115b7d58bef47dc", size = 15703377, upload-time = "2026-09-06T16:25:45.135Z" },
{ url = "https://files.pythonhosted.org/packages/45/8f/9beacf79ca7c650688ad0baa80931adb988fe6e6e5d5903c23cc3dbd70eb/numpy-2.5.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b0521d0f4aebb6e06189451025fa17a913287b13c03d5fe05c017333b654ea5b", size = 16711928, upload-time = "2026-09-06T16:25:48.461Z" },
{ url = "https://files.pythonhosted.org/packages/09/8d/41d0a56e1ac4c87495c897a211b1368691b7237aadabec8b3b8f3a74d48f/numpy-2.5.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9deb49575e5b0b94ed72c8a64ec4d033381adc27e9060ae842971f697ba96104", size = 17059507, upload-time = "2026-09-06T16:25:51.873Z" },
{ url = "https://files.pythonhosted.org/packages/08/1e/0dfbc5cc251d54e2af790f254d24ec38637fa97ec7d5d11de7ffed787098/numpy-2.5.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b00eefbcf0f292945c4b4dec2ae845389ef5bcdcd596e6e4328051db5b5ba694", size = 18471002, upload-time = "2026-09-06T16:25:55.233Z" },
{ url = "https://files.pythonhosted.org/packages/b5/2c/dfa40f6991f8185c8c30ffd023dfcbb11888e823cfab9557b920f3bb7bed/numpy-2.5.3-cp314-cp314-win32.whl", hash = "sha256:c2381f82999704f818e2c987a865050e285ec3621262c66d40f5a96c8f899f8e", size = 6180485, upload-time = "2026-09-06T16:25:58.157Z" },
{ url = "https://files.pythonhosted.org/packages/a4/73/d2c08231e4fde7e415501fd02c715d96e98599b2d8384445933944152984/numpy-2.5.3-cp314-cp314-win_amd64.whl", hash = "sha256:2c25dfa72943e4336ddb6b0ee4277b47a0c85bede0807530ec68103bf58e2c10", size = 12698179, upload-time = "2026-09-06T16:26:00.789Z" },
{ url = "https://files.pythonhosted.org/packages/5c/e9/dcdcc9b95cf5f49815055573aee1b11cfbf5299f38a180e437ded050810f/numpy-2.5.3-cp314-cp314-win_arm64.whl", hash = "sha256:15aa985ac73a8db02db7663381aa109510449d3819d37206caed27b33a65a8a6", size = 10769383, upload-time = "2026-09-06T16:26:04.011Z" },
{ url = "https://files.pythonhosted.org/packages/49/c4/af8bc08a7ef4e1529a7c0cf24969accce316b783999802089a581ec99272/numpy-2.5.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ac7bb1c52d445bd4f8f7f97fefe6abc3a084dc4d63df50d79b17fa2b78e89297", size = 12132668, upload-time = "2026-09-06T16:26:07.138Z" },
{ url = "https://files.pythonhosted.org/packages/c5/ae/0f15eb56d4ec5e13c1f7ff04ff407f997d1acbadb45d3e1f2e2645a8f43c/numpy-2.5.3-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:e6ab667ba76450084eb64013762c438ea76d9d29cc676dcd6c2e9892ba37f841", size = 5568580, upload-time = "2026-09-06T16:26:09.828Z" },
{ url = "https://files.pythonhosted.org/packages/23/fb/c72a8f25d4b6e96c354e7ab45ace3b27dc11e5d6a13b6c7d0cd6b08bf112/numpy-2.5.3-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:f7fabeb6cea87d65f3b926de33d03fb016cfdc29314c90974383b5582ae72891", size = 6882634, upload-time = "2026-09-06T16:26:12.524Z" },
{ url = "https://files.pythonhosted.org/packages/07/a9/968c90ed2ab15060c338e8137f1215b5a60756ae07328e0a60d1c6734df4/numpy-2.5.3-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1fb6f8fb9ff0b3a69f52c66ce397b0246583e9f28616231b0e32ca49259a5fa6", size = 15748923, upload-time = "2026-09-06T16:26:15.092Z" },
{ url = "https://files.pythonhosted.org/packages/59/08/9df04103947b95e3b6b1f2ed1a70521f325647a31b82da6a2aae3a485508/numpy-2.5.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93e1f5447e2b1e479d7bd74701e84746b86450cff1fc368b132d195e2b8f8211", size = 16746748, upload-time = "2026-09-06T16:26:18.43Z" },
{ url = "https://files.pythonhosted.org/packages/41/a0/14c8d5fe5b53a334aabb653deb391c0fef49558f491880ea300ed6785224/numpy-2.5.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c00abe94c1a69d75d827dcf1c025b25c8a45d230b3bcd77a9020883a1b047653", size = 17111561, upload-time = "2026-09-06T16:26:22.113Z" },
{ url = "https://files.pythonhosted.org/packages/c4/a6/d7e96e42f01522e154c32489640f16dfc4f6181d165d05fc3bec8c2c4999/numpy-2.5.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:536f963710a4e63934d80ac0dc4f478804a83e9a84b6828018f25d09953ada33", size = 18513945, upload-time = "2026-09-06T16:26:25.401Z" },
{ url = "https://files.pythonhosted.org/packages/25/39/3453afb7119d0449ef11c886874120ff180e2c337760e0e2d88f70f1a945/numpy-2.5.3-cp314-cp314t-win32.whl", hash = "sha256:4c8a6d2ebce6305fd82fbefca827775437147052a976ee7c94b36a0c1b52ac6c", size = 6335421, upload-time = "2026-09-06T16:26:28.175Z" },
{ url = "https://files.pythonhosted.org/packages/99/01/22815d2b19a1a746b1d45205cffebb3fe511a18acb75fba6c88491fc9894/numpy-2.5.3-cp314-cp314t-win_amd64.whl", hash = "sha256:9a37475425b431b4d060f23b4f52cd2f3aef6bc7c654bd760adf0040eec9d435", size = 12896420, upload-time = "2026-09-06T16:26:31.265Z" },
{ url = "https://files.pythonhosted.org/packages/fa/ee/a7cbba67eeaff038dc29ca8b98a88396c8b0cc9c89d4924f4a27a5c9150b/numpy-2.5.3-cp314-cp314t-win_arm64.whl", hash = "sha256:2d8240cb4c16fd831074aa2b2cf9fc54664d826341d61c372245b96a74a49a9a", size = 10857177, upload-time = "2026-09-06T16:26:34.167Z" },
]
[[package]]
name = "opentelemetry-api"
version = "1.45.0"
@@ -689,6 +872,59 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
]
[[package]]
name = "regex"
version = "2026.9.29"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/fc/f2/af1da9d3ceed77bfcdce40427d49ba0be94e4fe84245e3bfef68c10e75b6/regex-2026.9.29.tar.gz", hash = "sha256:8b5fcc4771732191b2b7d1dd68d8f0353f47f8d90b6150f6dce58bf1112442cb", size = 419199, upload-time = "2026-09-29T00:49:58.298Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/93/1f/d9dc6f02f569625faf67a4daec926cd5023472dcd69bb44286dccd5a5ab3/regex-2026.9.29-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:957bb708e8057ab1649ba566456429d691ec9b90d1c9ad1af1ba7ffbbeaf05f2", size = 497598, upload-time = "2026-09-29T00:47:36.541Z" },
{ url = "https://files.pythonhosted.org/packages/9c/83/9b693a3fd1451381e812031a8961ec5b3b8f0c8cc6871f14c5223642804d/regex-2026.9.29-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c9b602fae1e00b7c035d661ce85575365719192a7b46784bd71cf64c68053aa0", size = 296250, upload-time = "2026-09-29T00:47:38.233Z" },
{ url = "https://files.pythonhosted.org/packages/dd/5f/52bc2abc3fef040cd9de76ab29c918d6a717a454ae2b9dd7938b0c95656d/regex-2026.9.29-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0166844493626c5015c6088ee15c9ca2fd060ca15b7641d1657da6a58432ae33", size = 293518, upload-time = "2026-09-29T00:47:39.957Z" },
{ url = "https://files.pythonhosted.org/packages/dc/fc/cf50671215ee0057046980b4571ef8646a005819bb67f0957e779ed107a5/regex-2026.9.29-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b97a38fb4c732b6832db6bf108963adbcd82ef1268ba2025dce390f45af75efa", size = 806037, upload-time = "2026-09-29T00:47:41.676Z" },
{ url = "https://files.pythonhosted.org/packages/14/4b/dddef8fc15c63e4347cc9efb138d0cd306f30e6c98acbcc81a8f780083b9/regex-2026.9.29-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a540abfab208e1b7ef2df231c40ef3b6cbb30a0aad6204e9b6a81c10a6794628", size = 878881, upload-time = "2026-09-29T00:47:43.755Z" },
{ url = "https://files.pythonhosted.org/packages/9f/cb/38daabed32d28f7e58a06e9344ce00dc67952e9996bc578ed6a29fe1240e/regex-2026.9.29-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ddfa987262763c3c22a8367d2a49c244b018a74c3a8e3ab1a864119ad45c5633", size = 918684, upload-time = "2026-09-29T00:47:45.594Z" },
{ url = "https://files.pythonhosted.org/packages/a9/4d/041d9458a645fee4fce4d642a89d27271a3cfcd91095104f6dde44da70bf/regex-2026.9.29-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2f7f7aa47b229f2b39a2ae2596d2ad5625d77b5eb9856fac2dab3eb506cdd0a0", size = 807176, upload-time = "2026-09-29T00:47:47.372Z" },
{ url = "https://files.pythonhosted.org/packages/bf/c4/4383eed7aa5aef67616cb1b3f3ad06b7c624c4e6cced48630cd5ce133d85/regex-2026.9.29-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d9b77b25b4f395f92de6099ab08e8ae2bc7e51dfe157f22900902243a5cc90c7", size = 784315, upload-time = "2026-09-29T00:47:49.518Z" },
{ url = "https://files.pythonhosted.org/packages/5c/a6/0086ad31cebb183c637d3198547075aa493afde308e1ff61fccccb29ba6e/regex-2026.9.29-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:34b6925af9853bf461950e6508910f179fd6e9b1a7ec8548e069606b7e51a26b", size = 793748, upload-time = "2026-09-29T00:47:51.279Z" },
{ url = "https://files.pythonhosted.org/packages/d5/a0/f9005cba3f629a859573fc5d1224ea4e1f97919ec8581d018e03a351a604/regex-2026.9.29-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:addd736a0547d553283adaf4e05d7104e7f2c7b0b092e9b4d28756825f14531f", size = 870302, upload-time = "2026-09-29T00:47:53.368Z" },
{ url = "https://files.pythonhosted.org/packages/01/4f/e1a3e46bb5315a4e18b01a990e7a28e2a16595609d50c442baf2815a3c65/regex-2026.9.29-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:fe3fa1dd453ed5c7f5ea23a26218329790ed7197a99b90e94330e313959a7f52", size = 770299, upload-time = "2026-09-29T00:47:55.606Z" },
{ url = "https://files.pythonhosted.org/packages/2c/fe/f303b4acfda44e1ff1379368748c1ef2dad04a6a8e9c0ecbc970b19d97ca/regex-2026.9.29-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0cc63b5e47c12a48d90c7e9d7de6a035dd14f62868aaedbb4e0ff8ba2b8bfe7b", size = 861570, upload-time = "2026-09-29T00:47:57.617Z" },
{ url = "https://files.pythonhosted.org/packages/60/b6/b4f7e99249f596017c60ccad5faf9310fc8e3e59bb2244940a90a1b0bdff/regex-2026.9.29-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:724184b4aafed865e4f13ca313fdcb43024300c028ec67319cfa16847d84685e", size = 795967, upload-time = "2026-09-29T00:47:59.922Z" },
{ url = "https://files.pythonhosted.org/packages/fb/d3/fc865a4638d9f6762192b6bab5b7aa1f33a90e9e99578c2e111e2a63c8c3/regex-2026.9.29-cp314-cp314-win32.whl", hash = "sha256:c6c8fabf1dafc1f1ddcbb67896d3f93efb092e8c4b6322d7389b944e76a484e5", size = 274758, upload-time = "2026-09-29T00:48:01.8Z" },
{ url = "https://files.pythonhosted.org/packages/31/e2/c2b466924ccbeb874862968ca638051b15a8fd29d994a0e99004a5cbf78e/regex-2026.9.29-cp314-cp314-win_amd64.whl", hash = "sha256:1c2a0026062abcc321a53db4a185ceba0b59a66b5d37b0808917a88b55a5257f", size = 283817, upload-time = "2026-09-29T00:48:03.614Z" },
{ url = "https://files.pythonhosted.org/packages/c6/42/ea0f8dbaa924fa75c6338935eaee2f44dab369b27f02db1e03d74344b049/regex-2026.9.29-cp314-cp314-win_arm64.whl", hash = "sha256:121a76a0985db80ceae9e171c337f8c927868e37d01b54e3ce87bc87f9c6a208", size = 283663, upload-time = "2026-09-29T00:48:05.624Z" },
{ url = "https://files.pythonhosted.org/packages/44/48/d58e5081119f5c223bbb37d2340acde3d069e1df8e8cd166c37502eee4da/regex-2026.9.29-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:e31f72490b7c12f7790e1e25c3afffd20503ee1bfb43461d7838b871ff244b19", size = 501393, upload-time = "2026-09-29T00:48:07.833Z" },
{ url = "https://files.pythonhosted.org/packages/72/3c/c49945287d4f9efee7d41f98072f8ad880efb8f430595a612fbdea996a4e/regex-2026.9.29-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:80ea96f5c1a30bf09007d48466521d9c294bebe197c708c3359096e3e3691632", size = 298237, upload-time = "2026-09-29T00:48:09.684Z" },
{ url = "https://files.pythonhosted.org/packages/f9/1f/688cb61c3d4cf7bcc1ed444b5cc49399eba3e51c469ae285cf87fea3022e/regex-2026.9.29-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:554bffadcbcb6d5f4e5fb10a61cc52084b9a63d1dab5f10bcd2c4343972e8e2c", size = 295936, upload-time = "2026-09-29T00:48:11.454Z" },
{ url = "https://files.pythonhosted.org/packages/26/a3/de43ac6b877b7d09c19a3a426b1bd5acdd209eaaf68f406466f80439ccf6/regex-2026.9.29-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:864e9b87ac33c3fb9fb4ad48166d4fdb579c351d5c77deb0d34bccb36a775cd9", size = 816905, upload-time = "2026-09-29T00:48:13.321Z" },
{ url = "https://files.pythonhosted.org/packages/62/14/9940763201c51d537786304984c67d0fc3d2ed18837ffb6f09a869f6b6c9/regex-2026.9.29-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:044265d77d94f5e3cb2fd72c76723807c429cb8c533e9d4672d0334a6f14f588", size = 881527, upload-time = "2026-09-29T00:48:15.313Z" },
{ url = "https://files.pythonhosted.org/packages/d3/e1/c842d8df0b23245ebf202f8ab9c39fd48e2db39959454ec39a41c8c72082/regex-2026.9.29-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2089fe39c406784d90101c726755ffa1497bb74638fd434300d2b88006186de8", size = 923115, upload-time = "2026-09-29T00:48:17.328Z" },
{ url = "https://files.pythonhosted.org/packages/d8/c1/98622479e3c354a446a75232e522d747d2b3df23092dcd8a5309380a2020/regex-2026.9.29-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0def9fb6abac55492d6d51cddb7225d07d6f279e774e0adc08569a54a5fc8d46", size = 820674, upload-time = "2026-09-29T00:48:19.32Z" },
{ url = "https://files.pythonhosted.org/packages/6c/d0/5808c95f9c79ed27b5eedaafc3df6239ec56a49f2e23ea8f831b18427c82/regex-2026.9.29-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:888d60953908dcf761aa320c3e390ab8556efbdb551ace63921de90f6ae0848d", size = 793306, upload-time = "2026-09-29T00:48:21.615Z" },
{ url = "https://files.pythonhosted.org/packages/bf/d3/021ca2638671ad20603bcd9b4d5bfa35d2610cd216a043ea7f0b44ea39f6/regex-2026.9.29-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ed511a0708e2297e1d6431e7fb217e3402791e491e02da800658ace4973df1bb", size = 803103, upload-time = "2026-09-29T00:48:23.871Z" },
{ url = "https://files.pythonhosted.org/packages/6b/2d/755c6d13ef9c657378013676c391c7a402166b3f419a464a3e058dcbe533/regex-2026.9.29-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:e1172147d28d8fbcf8cb8d26c41506169f5ad8fe9ec969cb116835a19d4d8eca", size = 872175, upload-time = "2026-09-29T00:48:26.255Z" },
{ url = "https://files.pythonhosted.org/packages/6c/fc/e1cab183b9dafe8597f58c1c766da9bf96204d3b2f232bcf3eeb75ff7b6c/regex-2026.9.29-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:92f05c9c42bde5785dc48770bc2194d9f7442544156f951e19cd31b096cec562", size = 777362, upload-time = "2026-09-29T00:48:28.389Z" },
{ url = "https://files.pythonhosted.org/packages/06/7c/e10ea17fba31fb4a1f9d13ed53a2d2a9066a2aea58d7557e263f6d99e7b0/regex-2026.9.29-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:f37964e4a5e993d2fd45147741e9dff7f34a2d8c00ab94c4ea0514a4677f959e", size = 865606, upload-time = "2026-09-29T00:48:30.4Z" },
{ url = "https://files.pythonhosted.org/packages/8e/6e/69824d9aee1fd41c54ea7264654a47c8d9d84d8a228e11c2bcf4c201ed81/regex-2026.9.29-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:951733b1bbdb71e377cec567b409f1a7881b47cfcad84121aa74cb575fa425ea", size = 807945, upload-time = "2026-09-29T00:48:32.375Z" },
{ url = "https://files.pythonhosted.org/packages/89/22/857050a86e21ce60193e02a8ef662521f2e263a645c8b1b905fc136b61a7/regex-2026.9.29-cp314-cp314t-win32.whl", hash = "sha256:65b408d8fcb273e3499e7ef2ce796810da1becd208c7fb4373692a242d79d461", size = 276758, upload-time = "2026-09-29T00:48:34.72Z" },
{ url = "https://files.pythonhosted.org/packages/4d/96/56808fe029553d7d4c703414f2a527faad2ea2bfa9ca094a2e7f8762b530/regex-2026.9.29-cp314-cp314t-win_amd64.whl", hash = "sha256:bf48516e35cf848390ea68850aba53e7c333720d2945b4d2c25b69fc5171723f", size = 286527, upload-time = "2026-09-29T00:48:36.864Z" },
{ url = "https://files.pythonhosted.org/packages/01/aa/074e2cfb3d8101a6a764aba5f7c5d1e21de087483e35bdc0c4ce2eb60364/regex-2026.9.29-cp314-cp314t-win_arm64.whl", hash = "sha256:9173db3be74a35cb6731701094b98120f7ee4876a287882a59cdea1fa7da342f", size = 285954, upload-time = "2026-09-29T00:48:38.901Z" },
]
[[package]]
name = "rich"
version = "15.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "markdown-it-py" },
{ name = "pygments" },
]
sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" },
]
[[package]]
name = "ruff"
version = "0.16.10"
@@ -714,6 +950,48 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/fc/05/c16957eb287c3fc062e032619a25868d93d408a844b725bcf514f7a378ff/ruff-0.16.10-py3-none-win_arm64.whl", hash = "sha256:25a65fe998c4e6861ec079ada5826a2fc605e6cbccbe9dcd7fac1f54e791621b", size = 10366440, upload-time = "2026-10-01T18:03:19.04Z" },
]
[[package]]
name = "safetensors"
version = "0.8.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/45/06/f955dbbb1859e3bd23c8ac6141af5106e7ad5fedec4a3a6e3d60f94b7001/safetensors-0.8.0.tar.gz", hash = "sha256:fabaf3e0f18a6618d9b36560682562157f77c2b71fcffc7b432be2baed9d753d", size = 325846, upload-time = "2026-06-09T07:52:25.563Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/39/a0/f718cda65b05407d228f97602cf60dca269c979867aa5beb25410de26cd3/safetensors-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c554f85858e05226d3c2828e32395e677434685d6d94594a41643361c5e837f0", size = 473568, upload-time = "2026-06-09T07:52:18.829Z" },
{ url = "https://files.pythonhosted.org/packages/f5/b1/fa7c600e7dceae12e9606c7578cbc9ff1e1ed55844883ee5c92205e86226/safetensors-0.8.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:c80201d22cbf405b80647a60ada77bba06c8fba2da2743ba1e89cdcc39a81f25", size = 484562, upload-time = "2026-06-09T07:52:17.518Z" },
{ url = "https://files.pythonhosted.org/packages/09/7d/65a7de0af421317bb36a067241e4235fff194eed60b961ed6d3f59a3fc60/safetensors-0.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a46e5ff292c356d6991e60942ba7f79817682d3a2cef0702136448cb9c4d235", size = 502844, upload-time = "2026-06-09T07:52:07.624Z" },
{ url = "https://files.pythonhosted.org/packages/91/4f/3175c9d75634e0e0dda0082794193521035edd7c70a6f212bf33ca06ddf4/safetensors-0.8.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4124502b78f03534117c848f87a39b8f31e577b15eff423bf8bfb95f2a8c30d0", size = 511823, upload-time = "2026-06-09T07:52:09.565Z" },
{ url = "https://files.pythonhosted.org/packages/20/87/846c289e7aa2299eff406335717cf43ce8777194ece8aad75772e0411615/safetensors-0.8.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7bc0a787ba8a35be368ee3574edfa2b1ad389eebd0a72e482ae275490e3f6c98", size = 633461, upload-time = "2026-06-09T07:52:11.128Z" },
{ url = "https://files.pythonhosted.org/packages/76/22/8d64d9df2c45d5ded401df889d0ad90882804ca172d79ec4f0df8f727fe0/safetensors-0.8.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:040070828e36dc8e122178bbbd5830ff9e97920affb84cbe0f46442497bed358", size = 545148, upload-time = "2026-06-09T07:52:13.603Z" },
{ url = "https://files.pythonhosted.org/packages/28/50/f203ff3a3ddfe19308efc83c5a3a29ed02bf786732ec35e68bf9162f3365/safetensors-0.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd6f3f93c9a0a7cc2788ee63fb763353d4bd2e89b0751bc78fcf7dda00bea774", size = 516040, upload-time = "2026-06-09T07:52:16.29Z" },
{ url = "https://files.pythonhosted.org/packages/46/fb/cdaed17ceb2948784fd9c36b6fd3e951b608547cea81a48e8ee6f8cfdfcb/safetensors-0.8.0-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:fcdd41ec4628fee5799f807c73c353629130fbd942aa23d83c623dd6c9d52d78", size = 513832, upload-time = "2026-06-09T07:52:12.37Z" },
{ url = "https://files.pythonhosted.org/packages/0d/49/1e15de264dcc3b77943d2d0c56a95809956883b1c2d6d585c792523f180b/safetensors-0.8.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8e9f537aa183a38ace122d27303dcd986b26bd2a7591f9181d7f0c396f4677ca", size = 559930, upload-time = "2026-06-09T07:52:14.743Z" },
{ url = "https://files.pythonhosted.org/packages/2a/43/bf38443278eab4b1be1fce2931e2b012ad9cb7df52ada751d0aab8f7659a/safetensors-0.8.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:87eec7ffed2b809f05a398a8becb7d013f19f7837cd15d9748580d6cf30dbaf4", size = 678670, upload-time = "2026-06-09T07:52:20.032Z" },
{ url = "https://files.pythonhosted.org/packages/72/e3/68cd3fa5b48488e84add63e04cb12f3bc28ae4638c06d4508c6e88823d0e/safetensors-0.8.0-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:4a95ae2b05d7726d751da4ebf626a2ca782b706e101bd894c95bc2450b1cffcc", size = 786679, upload-time = "2026-06-09T07:52:21.322Z" },
{ url = "https://files.pythonhosted.org/packages/29/4b/1c19c509d56e01f4fbb3d0a2e597450f6cc04d1d56cf52defb0a62dfd715/safetensors-0.8.0-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:3ae091f16662658bdc019a4ff6cb4c085bb7d725eb5978b183ffd265863b6d2d", size = 765683, upload-time = "2026-06-09T07:52:22.594Z" },
{ url = "https://files.pythonhosted.org/packages/27/43/41c1621732edd934d868a00d1b891584c892a7b62a9aab82ea5a0a5623ee/safetensors-0.8.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:8e080062fcde23be189565e1c3305d16751a218ecf9412c8601e64204eb6f846", size = 722361, upload-time = "2026-06-09T07:52:23.924Z" },
{ url = "https://files.pythonhosted.org/packages/8e/3f/73ccf82579412b4a71c4ca673f10b5f1f888d7cf5af7fe24f27d30307be4/safetensors-0.8.0-cp310-abi3-win32.whl", hash = "sha256:2ddf52eac562eda224f99acfa7889d02968c1fd59a5b011ae7d8137c37e9c02d", size = 342401, upload-time = "2026-06-09T07:52:28.895Z" },
{ url = "https://files.pythonhosted.org/packages/1b/6d/3fba214c1e5e0f69991677ec3bc17023f0421776975e1de0c682dca475e2/safetensors-0.8.0-cp310-abi3-win_amd64.whl", hash = "sha256:096ec1a98435df7beb08853bb5aa9081a84f23d0adc67ed1a0a10550f608373f", size = 355540, upload-time = "2026-06-09T07:52:27.832Z" },
{ url = "https://files.pythonhosted.org/packages/8d/fc/7eedc3510d97878876e32774eebbeb61c43f148a96e915c84229a3e967aa/safetensors-0.8.0-cp310-abi3-win_arm64.whl", hash = "sha256:f7838e5135a406ad3e02efdcb8cf2e5397d368b0154537c4fec682dbc544d452", size = 340500, upload-time = "2026-06-09T07:52:26.745Z" },
]
[[package]]
name = "setuptools"
version = "81.0.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/0d/1c/73e719955c59b8e424d015ab450f51c0af856ae46ea2da83eba51cc88de1/setuptools-81.0.0.tar.gz", hash = "sha256:487b53915f52501f0a79ccfd0c02c165ffe06631443a886740b91af4b7a5845a", size = 1198299, upload-time = "2026-02-06T21:10:39.601Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e1/e3/c164c88b2e5ce7b24d667b9bd83589cf4f3520d97cad01534cd3c4f55fdb/setuptools-81.0.0-py3-none-any.whl", hash = "sha256:fdd925d5c5d9f62e4b74b30d6dd7828ce236fd6ed998a08d81de62ce5a6310d6", size = 1062021, upload-time = "2026-02-06T21:10:37.175Z" },
]
[[package]]
name = "shellingham"
version = "1.5.4"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },
]
[[package]]
name = "starlette"
version = "1.7.0"
@@ -726,6 +1004,52 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/4e/d6/1ec1b290f9e0fb067899b61e1d37a30c923068bad260b216dbe37a7d2967/starlette-1.7.0-py3-none-any.whl", hash = "sha256:67f8e99895493dd2911a03f11314af6ceebeae4e704bb9f43dfc6a9db151c93e", size = 78980, upload-time = "2026-09-23T07:30:24.567Z" },
]
[[package]]
name = "sympy"
version = "1.14.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "mpmath" },
]
sdist = { url = "https://files.pythonhosted.org/packages/83/d3/803453b36afefb7c2bb238361cd4ae6125a569b4db67cd9e79846ba2d68c/sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517", size = 7793921, upload-time = "2025-04-27T18:05:01.611Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" },
]
[[package]]
name = "tokenizers"
version = "0.23.3"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "huggingface-hub" },
]
sdist = { url = "https://files.pythonhosted.org/packages/e0/7c/2cabb2174e772636683008f2c5621949b645da7d303c596589e84516a184/tokenizers-0.23.3.tar.gz", hash = "sha256:cded33237c77caeef62944d32aa9a7ef42bdce2b3497e18d137e072a8c4be438", size = 385286, upload-time = "2026-10-09T10:16:55.759Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/aa/2e/4ce5b9716f26e526eff6b0502ebed4ea8d7161f03b3c77617c9f25528e97/tokenizers-0.23.3-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9d2b5c97daf61688c2ad1803ca851800feaba50fb68d5821779e9ea5880d968c", size = 3148800, upload-time = "2026-10-09T10:00:51.457Z" },
{ url = "https://files.pythonhosted.org/packages/b2/72/01e49f032bb346e5aaf06c10c74fe8aeec847173adbadd66eb7c53054bf2/tokenizers-0.23.3-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:68649e97d5b43c44c031d8d848874a6eecae8f8fe40ea989aa777a5a83aca716", size = 3101381, upload-time = "2026-10-09T10:00:54.063Z" },
{ url = "https://files.pythonhosted.org/packages/15/fc/ae987741829b1cd547668c4c94be732ae3eefd1d74344e64c3d2ca714acd/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec82e80e65a862275b97c3d90b7a523df8d9519ee48aeb4e9625b2cc909274e0", size = 3519944, upload-time = "2026-10-09T10:00:55.885Z" },
{ url = "https://files.pythonhosted.org/packages/1c/da/cc8f6c030afaf05fbddc608158fbb761dca46913cbeba6b112e59fc82e2a/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c64a0713180ff16829d4e7f39a658b77ea11443af4e1aa46523692943c9b1414", size = 3397695, upload-time = "2026-10-09T10:00:57.444Z" },
{ url = "https://files.pythonhosted.org/packages/ec/f1/256f78d1365fa2cd3ea6db716883d74667c8cbb6a21f15fa5b89a773cdc2/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ddedfd4b3b4be6be24ff6ca645c4a37fddfd305f6f3e354c54cf10b715c48215", size = 3753125, upload-time = "2026-10-09T10:01:00.165Z" },
{ url = "https://files.pythonhosted.org/packages/60/93/eee007ac2fcbf4ecfce7fbc354826cf3611f56bdb886f3e91b1f7dd06b8f/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a89614730d7b80940a5d2ed9320e1ec8add5a745c6151d8d05071b7215505b6", size = 4018598, upload-time = "2026-10-09T10:01:02.05Z" },
{ url = "https://files.pythonhosted.org/packages/bf/f9/0c96c4739461fce9d8d865b416728081bf6230022d7163bd6244f35f4b31/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e88646b8580c5ad7f4361477f1298e9cc01771a1ee9aecfe32c47b8ff614cc38", size = 3602442, upload-time = "2026-10-09T10:01:03.77Z" },
{ url = "https://files.pythonhosted.org/packages/3a/40/6706b82693715581457c6d5423eaa7faae576bb0526c5738a57085eb4449/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:376851d22bcf9d650a5c3090bb83e6cf9e895fbf0595369fa4cd43c1f69b5f87", size = 3396193, upload-time = "2026-10-09T10:01:05.48Z" },
{ url = "https://files.pythonhosted.org/packages/fe/0c/85946de40e25b7364b8f1bcf56def129069acd5bb364b7c86a32919e1a23/tokenizers-0.23.3-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:bf501c40b72d2d5c8623620210430e9cac1ce47a46e45b34107b70a1557d46b0", size = 3553483, upload-time = "2026-10-09T10:01:07.387Z" },
{ url = "https://files.pythonhosted.org/packages/f1/6b/8d615d92cad1d511ca5ab188d1c7c167f0b3d295cc0d96207f9f82d486d8/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:114e2b55ed177179d59f4ab98200a4471e11e78f9e4b5a922d146740f96fcf52", size = 9972248, upload-time = "2026-10-09T10:01:09.437Z" },
{ url = "https://files.pythonhosted.org/packages/c9/7d/a922e37ddd58d1b463bbc2ad08120c8f59c60b814cd353519a116b24f8ba/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:d3407fb7b9c4d75dd68850ffd7180bc0a5d2dbaf0762d888e612f31fec3f9c6b", size = 9802957, upload-time = "2026-10-09T10:01:11.869Z" },
{ url = "https://files.pythonhosted.org/packages/4b/06/5d3f506a86ae0699a0e4ea05c05978f9aee169ef2c1d844e68c971cf8194/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:84513ef0aeb8bf8f4ea11a2e8a7ac163ec5288aa115e649a59b470ac5c3107df", size = 10145487, upload-time = "2026-10-09T10:01:14.268Z" },
{ url = "https://files.pythonhosted.org/packages/26/e5/065625317690ea3548d834dad81f48ea1fd32e4964610e658e195d7fe28e/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e05ab7baf7f47b406a95fea6f3b0a484b2ddcd9e1d14b68844c457eb755085a3", size = 10266026, upload-time = "2026-10-09T10:16:33.054Z" },
{ url = "https://files.pythonhosted.org/packages/77/4e/babede85d0d19f5e3deeef0063e01848141329934d3d77c31b5cab5ac2b4/tokenizers-0.23.3-cp310-abi3-win32.whl", hash = "sha256:1ebf28794e7e4954e20a7f70fbea410b2d1f0418f7dbbca97ca384fcfef38c25", size = 2588086, upload-time = "2026-10-09T10:16:35.686Z" },
{ url = "https://files.pythonhosted.org/packages/d1/6c/24f074c9a0efb98e61b20aafe6b2641922d5db24e447d5d6daffd9e17555/tokenizers-0.23.3-cp310-abi3-win_amd64.whl", hash = "sha256:1f0823bb00c5fdc98e487354d54dd55a03848d61a1a0bf29a68c77f24f3b26c3", size = 2872101, upload-time = "2026-10-09T10:16:37.533Z" },
{ url = "https://files.pythonhosted.org/packages/53/77/a476b6f73a661c11d113a342d2326b91506cf2285f0995d1212a6bb2022d/tokenizers-0.23.3-cp310-abi3-win_arm64.whl", hash = "sha256:7e48734d2de9260d86f03ab056d2cfeeff3869f61dbd49aaa15a2793b5f3458b", size = 2742580, upload-time = "2026-10-09T10:16:39.244Z" },
{ url = "https://files.pythonhosted.org/packages/65/46/f66baaedd42414a3f583c47379dc350e3e1f858a690d2574fd85ae70681b/tokenizers-0.23.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:efa3d7318406b4d115dce61ad5061953f1f44b128e79c020ce4615d763e23b6e", size = 3154274, upload-time = "2026-10-09T10:16:40.876Z" },
{ url = "https://files.pythonhosted.org/packages/c6/41/8de8c63b2d935eee5a0f42011fb7b786ffafeab0b8eb6d17acb8af2293b7/tokenizers-0.23.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a4fbb3662f9f59d199d61338e54b4bcc11d07ebbb1aeb3540dacb2be9c521cb7", size = 3077805, upload-time = "2026-10-09T10:16:42.856Z" },
{ url = "https://files.pythonhosted.org/packages/e3/08/b1cbae8dc8fc7c91f992ac2d87a086e9b3f25a28814047ca16a82fe8c87b/tokenizers-0.23.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de536665495cb4b409d25bade41963f801aff4225c19a6b804b048f7d14e34c7", size = 3491678, upload-time = "2026-10-09T10:16:45.093Z" },
{ url = "https://files.pythonhosted.org/packages/3e/0d/aac0cb2f3a1fdbef514145b4c5f2df4d05deeb1ee8f73ae641a1b4a62a85/tokenizers-0.23.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5cc24bb457dd4a8af89c8fcb40074d570129ec473df2a866c276ee55db4749d7", size = 3367420, upload-time = "2026-10-09T10:16:47.112Z" },
{ url = "https://files.pythonhosted.org/packages/1e/1d/41a697d0c193a320b243fbd68b2057b6eb2f01ecf80899e1a16e646ff699/tokenizers-0.23.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:acd5c57b4bd3e56e246e2731a3a3a6825a7a7d89b7e3b761ba80bc521710f04b", size = 9945973, upload-time = "2026-10-09T10:16:49.326Z" },
{ url = "https://files.pythonhosted.org/packages/37/e9/b56e619fcd583000a2b1254bb46af8dc6a174d3ba3329f454ad5a95a2be2/tokenizers-0.23.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:82eb480f6f1c21cea3349dec32cf1a6384c6c1e775f00f83b0d51197bc013687", size = 10237491, upload-time = "2026-10-09T10:16:51.943Z" },
{ url = "https://files.pythonhosted.org/packages/6f/68/f58b3beb95f3b62816e91e5e768e684cd63e58f9cbece22036dae3b1c971/tokenizers-0.23.3-cp314-cp314t-win_amd64.whl", hash = "sha256:1554a6eed34d9d6a78d23360f4e06df8dffab1ae08c7e8488e0b3e3b36cc266f", size = 2847654, upload-time = "2026-10-09T10:16:54.166Z" },
]
[[package]]
name = "tomlkit"
version = "0.15.1"
@@ -735,6 +1059,86 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/13/bc/8c13eb66537dce1d2bd3a57132902f38d0e7f5bb46fa9f4daed9fe9d76ee/tomlkit-0.15.1-py3-none-any.whl", hash = "sha256:177a05aece5a8ca5266fd3c448abb47b8d352f09d477d3ca8332db4d89b24304", size = 49449, upload-time = "2026-07-17T01:48:05.728Z" },
]
[[package]]
name = "torch"
version = "2.11.0"
source = { registry = "https://download.pytorch.org/whl/cpu" }
resolution-markers = [
"sys_platform == 'darwin'",
]
dependencies = [
{ name = "filelock" },
{ name = "fsspec" },
{ name = "jinja2" },
{ name = "networkx" },
{ name = "setuptools" },
{ name = "sympy" },
{ name = "typing-extensions" },
]
wheels = [
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:072a0d6e4865e8b0dc0dbfe6ebed68fae235124222835ef03e5814d414d8c012", upload-time = "2026-03-23T15:17:10Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:23ec7789017da9d95b6d543d790814785e6f30905c5443efa8257d1490d73f79", upload-time = "2026-03-23T15:17:14Z" },
]
[[package]]
name = "torch"
version = "2.11.0+cpu"
source = { registry = "https://download.pytorch.org/whl/cpu" }
resolution-markers = [
"sys_platform != 'darwin'",
]
dependencies = [
{ name = "filelock" },
{ name = "fsspec" },
{ name = "jinja2" },
{ name = "networkx" },
{ name = "setuptools" },
{ name = "sympy" },
{ name = "typing-extensions" },
]
wheels = [
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314-linux_s390x.whl", hash = "sha256:c9a14c367f470623b978e273a4e1915995b4ba7a0ae999178b06c273eea3536f", upload-time = "2026-04-28T00:07:54Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:71676f6a9a84bbd385e010198b51fa1c2324fb8f3c512a32d2c81af65f68f4c9", upload-time = "2026-04-28T00:08:02Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:f8481ea9088e4e5b81178a75aabdbb658bde8639bc1a15fd5d8f930abc966735", upload-time = "2026-04-28T00:08:11Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314-win_amd64.whl", hash = "sha256:7575af4c9f7f7500ed62b1dafeb069aa0ba35b368a5f09793b3976b3d50f4fe4", upload-time = "2026-04-28T00:08:20Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314t-linux_s390x.whl", hash = "sha256:825f1596878280a3a4c861441674888bc2d792e4ab7b045cb35feeab3f4f5dd7", upload-time = "2026-04-28T00:08:27Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:c8a0bdfb2fd915b6c2cd27c856f63f729c366a4917772eba6b2b02aa3bce70d5", upload-time = "2026-04-28T00:08:36Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:768f22924a25cad2adeb9c6cbac5159e71067c8d4019b1511960d7435a5ca652", upload-time = "2026-04-28T00:08:47Z" },
{ url = "https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp314-cp314t-win_amd64.whl", hash = "sha256:6db45e7b2526d996fbf47c3d08737807a60a4e17996a6d91a97027fe260832c8", upload-time = "2026-04-28T00:08:57Z" },
]
[[package]]
name = "tqdm"
version = "4.70.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "sys_platform == 'win32'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/0d/ea/b2a5bd54b28a324dae8211928b2d730b6547500342c7e6c6dea08bd0a485/tqdm-4.70.1.tar.gz", hash = "sha256:cefd0eca11b2a37a3aee776544d4f4ae913f02688135b5556b8788dfa474afc4", size = 171846, upload-time = "2026-09-11T07:25:16.601Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/a7/03/921a3d3c75785aca9ebfbfcabfbc3a1be12e2ab5265deb026d55a5a3f83e/tqdm-4.70.1-py3-none-any.whl", hash = "sha256:c293e525e6fef9c20e8728fd4612df02a0aa31bb5fe91ecd93e123b1b7bffa73", size = 80199, upload-time = "2026-09-11T07:25:14.599Z" },
]
[[package]]
name = "transformers"
version = "5.19.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "huggingface-hub" },
{ name = "numpy" },
{ name = "packaging" },
{ name = "pyyaml" },
{ name = "regex" },
{ name = "safetensors" },
{ name = "tokenizers" },
{ name = "tqdm" },
{ name = "typer" },
]
sdist = { url = "https://files.pythonhosted.org/packages/65/4c/70012ed0795235fb6bd7806fafd4a1842f03e49ebbfa3bb9580e451948ce/transformers-5.19.0.tar.gz", hash = "sha256:87f38dd25e4521151b97e94520ac457f44a0ae8a8358a5b112daff6c64a822d6", size = 10032022, upload-time = "2026-10-06T16:39:00.229Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/b9/59/1e7f1212c215c73690ae6cab4678efe1555ff985953e145d88cc212859b0/transformers-5.19.0-py3-none-any.whl", hash = "sha256:afcd2dd5f603ed28c1e1fcb00a338ccbb4ef5f878ed289635df8b58187afb518", size = 12599123, upload-time = "2026-10-06T16:38:56.794Z" },
]
[[package]]
name = "trove-classifiers"
version = "2026.9.21.13"
@@ -744,6 +1148,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/30/81/0da8afb52a71d0a4f2bd3152357b1a441e393b286374802b9d3addab4ab5/trove_classifiers-2026.9.21.13-py3-none-any.whl", hash = "sha256:8b1ff4f9c191b1040b71c37f1e445ab99732911e3cd91de52838453a854d7a17", size = 14232, upload-time = "2026-09-21T13:29:06.123Z" },
]
[[package]]
name = "truststore"
version = "0.10.4"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/53/a3/1585216310e344e8102c22482f6060c7a6ea0322b63e026372e6dcefcfd6/truststore-0.10.4.tar.gz", hash = "sha256:9d91bd436463ad5e4ee4aba766628dd6cd7010cf3e2461756b3303710eebc301", size = 26169, upload-time = "2025-08-12T18:49:02.73Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/19/97/56608b2249fe206a67cd573bc93cd9896e1efb9e98bce9c163bcdc704b88/truststore-0.10.4-py3-none-any.whl", hash = "sha256:adaeaecf1cbb5f4de3b1959b42d41f6fab57b2b1666adb59e89cb0b53361d981", size = 18660, upload-time = "2025-08-12T18:49:01.46Z" },
]
[[package]]
name = "typeguard"
version = "4.6.0"
@@ -756,6 +1169,21 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/8f/eb/461d5f167b6f5c7d97696f397c82f82e3480e003fce3f0a1cd1dd26e2eb2/typeguard-4.6.0-py3-none-any.whl", hash = "sha256:79878165bb86f2cf5d41d159a0ff1792a796cf496882d2fe1b1c6c7049b9cdd7", size = 36884, upload-time = "2026-07-26T08:40:21.868Z" },
]
[[package]]
name = "typer"
version = "0.27.3"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-doc" },
{ name = "colorama", marker = "sys_platform == 'win32'" },
{ name = "rich" },
{ name = "shellingham" },
]
sdist = { url = "https://files.pythonhosted.org/packages/03/51/d33db42cc72ffd8c30777547b42d01f0cbf9d95a770457698d0174b3ed71/typer-0.27.3.tar.gz", hash = "sha256:d0396f770a560ab1b0a8504e13b5f254b728cedb05c61cf0359e944e50ce8901", size = 205303, upload-time = "2026-10-06T17:24:16.61Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/07/ea/2e31b67051e91a133189e9c000c222502ddc6969856416de0d095de4c0b0/typer-0.27.3-py3-none-any.whl", hash = "sha256:e50022f28b82a86313e54501317a1db64bf8f8d036ff8cfe5ca7e47675454aff", size = 123312, upload-time = "2026-10-06T17:24:15.054Z" },
]
[[package]]
name = "typing-extensions"
version = "4.16.0"