diff --git a/CHANGELOG.md b/CHANGELOG.md index c8eac06e..bafdf23a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,10 +37,13 @@ All notable changes to ForgeLM are documented here. ### Changed -- Admit newer majors of four optional or dev dependencies: `pypdf` 6 and `xxhash` 4 (the `ingestion` extra), `datasketch` 2 (the +- Admit newer majors of five dependencies: `huggingface_hub` 2, `pypdf` 6 and `xxhash` 4 (the `ingestion` extra), `datasketch` 2 (the `ingestion-scale` extra) and `pytest-randomly` 4 and 5 (the `dev` extra). The ingestion, data-audit and doctor test modules pass on pypdf 6.21.1, xxhash 4.0.1 and datasketch 2.0.0 with the same results as on the previous majors; CI installs datasketch 2.0.0 and - pytest-randomly 5.0.0 for the full suite. `huggingface_hub` stays below 2: ForgeLM has not been tested with it. + pytest-randomly 5.0.0 for the full suite. With `huggingface_hub>=1.5.0,<3.0.0` CI resolves `huggingface_hub` 2.2.0 (with transformers + 5.20.1) and the full suite passes on Python 3.10 to 3.13; every `huggingface_hub` symbol ForgeLM imports exists in 2.2.0. Hub 2 uses a + different HTTP stack (`httpx2`), so an environment sees new transitive packages. The tests mock the network, so real Hub calls on 2.x are + not covered, and transformers 5.10 to 5.17 still keep pip on `huggingface_hub` 1.x (5.18 and later allow 2.x). - Raise the `transformers` floor from `>=5.3.0` to `>=5.10.1` (and `huggingface_hub` from `>=1.3.0` to `>=1.5.0`, which transformers 5.10 requires). `5.3.0` was described as the CVE fix floor but still admitted CVE-2026-5241 (a LightGlue `config.json` overrides `trust_remote_code: false`, fixed in 5.5.0) and CVE-2026-9856 (a `chat_template` name in diff --git a/pyproject.toml b/pyproject.toml index 95a3092a..2bdd3ddf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ dependencies = [ "pydantic>=2.0.0,<3.0.0", "trl>=1.0.0,<2.0.0", "tensorboard>=2.15.0,<3.0.0", - "huggingface_hub>=1.5.0,<2.0.0", + "huggingface_hub>=1.5.0,<3.0.0", "requests>=2.32.2,<3.0.0", # requests-toolbelt is required by forgelm._http for the HostHeaderSSLAdapter # used to close the DNS-rebinding TOCTOU window in safe_post / safe_get