Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to the AVP Python SDK are documented in this file.

Format follows [Keep a Changelog](https://keepachangelog.com/). Versions follow [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Changed

- **Engine dependency floors** — `avp[hf]` now requires `transformers>=5.10.4` and `avp[vllm]` requires `vllm>=0.29.0` (with `huggingface-hub>=1.5,<2`). vLLM dropped its `transformers<5` cap in 0.24.0, so the `hf`, `vllm`, and `all` extras now resolve together on the current transformers 5.x line instead of forcing the old 4.x stack.

### Fixed

- **Protobuf gencode/runtime mismatch** — `src/avp/avp_pb2.py` was generated with protoc 6.31.1, whose `ValidateProtobufRuntimeVersion` guard requires a protobuf runtime `>=6.31.1`, while `autogen-core` (pulled in by the `autogen` extra and therefore by `all`) caps protobuf at the 5.29 line — so `import avp` raised `VersionError` in any environment containing that extra. The module is now regenerated with protoc 5.29 (gencode 5.29.0), the `protobuf` floor is raised to `>=5.29`, and `grpcio-tools` is pinned to `>=1.71.2,<1.72` so `make proto` cannot silently raise the runtime requirement again.

## [0.6.2] - 2026-04-26

### Added
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.PHONY: proto test lint clean install

# Regenerate avp_pb2.py. Keep grpcio-tools on the 5.29 gencode line
# (>=1.71.2,<1.72): the autogen extra pins protobuf to 5.29.x, so a
# newer protoc would emit gencode the runtime refuses to load.
proto:
python -m grpc_tools.protoc \
-I proto \
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [

dependencies = [
"numpy>=1.24",
"protobuf>=4.21",
"protobuf>=5.29",
"zstandard>=0.21",
]

Expand All @@ -36,9 +36,9 @@ Changelog = "https://github.com/VectorArc/avp-python/blob/main/CHANGELOG.md"

[project.optional-dependencies]
# Engine connectors (pick one or more)
hf = ["torch>=2.0", "transformers>=5.0"]
hf = ["torch>=2.0", "transformers>=5.10.4"]
huggingface = ["avp[hf]"]
vllm = ["vllm>=0.17.0,<0.19.0", "safetensors>=0.4", "huggingface-hub>=1.0"]
vllm = ["vllm>=0.29.0", "safetensors>=0.4", "huggingface-hub>=1.5,<2"]
llamacpp = ["llama-cpp-python>=0.3", "gguf>=0.6"]
ollama = ["llama-cpp-python>=0.3", "gguf>=0.6"]
# Framework integrations (each requires HF engine)
Expand All @@ -57,7 +57,7 @@ dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"ruff>=0.1",
"grpcio-tools>=1.59",
"grpcio-tools>=1.71.2,<1.72",
]

[project.entry-points."vllm.general_plugins"]
Expand Down
20 changes: 10 additions & 10 deletions src/avp/avp_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.