Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(deps): drop nvidia-nccl-cu12 from xgboost (#100971)

Arno Hillen6272c7f237eb
diff --git a/pyproject.toml b/pyproject.toml
index 48605d231a38..f5335f2d6f2a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -322,6 +322,13 @@ infi-clickhouse-orm = { git = "https://github.com/PostHog/infi.clickhouse_orm",
# v0.11.0-posthog.N tag, and bump this pin.
pytest-split = { git = "https://github.com/PostHog/pytest-split", tag = "v0.11.0-posthog.6" }
+# xgboost's Linux wheel declares nvidia-nccl-cu12 (322 MB) for multi-GPU training. We use xgboost on
+# CPU, so drop it to keep the wheel out of the image.
+[[tool.uv.dependency-metadata]]
+name = "xgboost"
+version = "3.2.0"
+requires-dist = ["numpy", "scipy"]
+
[tool.isort]
profile = "black"
diff --git a/uv.lock b/uv.lock
index b35ce0117d85..51cd58c59823 100644
--- a/uv.lock
+++ b/uv.lock
@@ -33,6 +33,11 @@ members = [
"posthog-owners",
]
+[[manifest.dependency-metadata]]
+name = "xgboost"
+version = "3.2.0"
+requires-dist = ["numpy", "scipy"]
+
[[package]]
name = "aioboto3"
version = "15.4.0"
@@ -4724,7 +4729,6 @@ name = "nvidia-nccl-cu12"
version = "2.27.3"
source = { registry = "https://pypi.org/simple" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/4b/7b/8354b784cf73b0ba51e566b4baba3ddd44fe8288a3d39ef1e06cd5417226/nvidia_nccl_cu12-2.27.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9ddf1a245abc36c550870f26d537a9b6087fb2e2e3d6e0ef03374c6fd19d984f", size = 322397768, upload-time = "2025-06-03T21:57:30.234Z" },
{ url = "https://files.pythonhosted.org/packages/5c/5b/4e4fff7bad39adf89f735f2bc87248c81db71205b62bcc0d5ca5b606b3c3/nvidia_nccl_cu12-2.27.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:adf27ccf4238253e0b826bce3ff5fa532d65fc42322c8bfdfaf28024c0fbe039", size = 322364134, upload-time = "2025-06-03T21:58:04.013Z" },
]
@@ -9261,7 +9265,6 @@ version = "3.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy" },
- { name = "nvidia-nccl-cu12", marker = "sys_platform == 'linux'" },
{ name = "scipy" },
]
sdist = { url = "https://files.pythonhosted.org/packages/91/bb/1eb0242409d22db725d7a88088e6cfd6556829fb0736f9ff69aa9f1e9455/xgboost-3.2.0.tar.gz", hash = "sha256:99b0e9a2a64896cdaf509c5e46372d336c692406646d20f2af505003c0c5d70d", size = 1263936, upload-time = "2026-02-10T11:03:05.542Z" }