From 719b8cf60677681911e89c76b7105b0124c56116 Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Wed, 5 Feb 2025 14:30:25 -0500 Subject: [PATCH 1/9] Integrate code on extra args --- .../docker/_docker_code_executor.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index 05924e186643..dbbe754fcf88 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -12,7 +12,7 @@ from hashlib import sha256 from pathlib import Path from types import TracebackType -from typing import Any, Callable, ClassVar, List, Optional, ParamSpec, Type, Union +from typing import Any, Callable, ClassVar, List, Optional, ParamSpec, Type, Union, Dict from autogen_core import CancellationToken from autogen_core.code_executor import ( @@ -88,6 +88,9 @@ class DockerCommandLineCodeExecutor(CodeExecutor): the Python process exits with atext. Defaults to True. functions (List[Union[FunctionWithRequirements[Any, A], Callable[..., Any]]]): A list of functions that are available to the code executor. Default is an empty list. functions_module (str, optional): The name of the module that will be created to store the functions. Defaults to "functions". + extra_volumes (Dict[str, Dict[str, str]], optional): A dictionary of extra volumes (beyond the work_dir) to mount to the container. Defaults to {}. + extra_hosts (Dict[str, str], optional): A dictionary of host mappings to add to the container. Defaults to {}. + init_command (str, optional): A shell command to run before each shell operation execution. Defaults to ":" (which does nothing). """ SUPPORTED_LANGUAGES: ClassVar[List[str]] = [ @@ -126,6 +129,9 @@ def __init__( ] ] = [], functions_module: str = "functions", + extra_volumes: Dict[str, Dict[str, str]] = {}, + extra_hosts: Dict[str, str] = {}, + init_command: str = ":", ): if timeout < 1: raise ValueError("Timeout must be greater than or equal to 1.") @@ -157,6 +163,10 @@ def __init__( self._functions_module = functions_module self._functions = functions + self._extra_volumes = extra_volumes + self._hosts = extra_hosts + self._init_command = init_command + # Setup could take some time so we intentionally wait for the first code block to do it. if len(functions) > 0: self._setup_functions_complete = False @@ -359,11 +369,13 @@ async def start(self) -> None: self._image, name=self.container_name, entrypoint="/bin/sh", + command=f"-c '{self._init_command}; exec /bin/sh'", tty=True, detach=True, auto_remove=self._auto_remove, - volumes={str(self._bind_dir.resolve()): {"bind": "/workspace", "mode": "rw"}}, + volumes={str(self._bind_dir.resolve()): {"bind": "/workspace", "mode": "rw"}, **self._extra_volumes}, working_dir="/workspace", + extra_hosts=self._extra_hosts, ) await asyncio.to_thread(self._container.start) From 0591698d203b4963b3cf69237fa74082a871287f Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Wed, 5 Feb 2025 14:58:52 -0500 Subject: [PATCH 2/9] Fix variable name and clafy docs --- .../autogen_ext/code_executors/docker/_docker_code_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index dbbe754fcf88..190598e768b5 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -164,7 +164,7 @@ def __init__( self._functions_module = functions_module self._functions = functions self._extra_volumes = extra_volumes - self._hosts = extra_hosts + self._extra_hosts = extra_hosts self._init_command = init_command # Setup could take some time so we intentionally wait for the first code block to do it. From ed6356bba6cb7035420475cc3b7f00c38613bfd0 Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Wed, 5 Feb 2025 15:19:32 -0500 Subject: [PATCH 3/9] Fix args lint error and cleaner handling of command --- .../docker/_docker_code_executor.py | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index 190598e768b5..ee84a5c83de3 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -12,7 +12,7 @@ from hashlib import sha256 from pathlib import Path from types import TracebackType -from typing import Any, Callable, ClassVar, List, Optional, ParamSpec, Type, Union, Dict +from typing import Any, Callable, ClassVar, Dict, List, Optional, ParamSpec, Type, Union from autogen_core import CancellationToken from autogen_core.code_executor import ( @@ -88,9 +88,9 @@ class DockerCommandLineCodeExecutor(CodeExecutor): the Python process exits with atext. Defaults to True. functions (List[Union[FunctionWithRequirements[Any, A], Callable[..., Any]]]): A list of functions that are available to the code executor. Default is an empty list. functions_module (str, optional): The name of the module that will be created to store the functions. Defaults to "functions". - extra_volumes (Dict[str, Dict[str, str]], optional): A dictionary of extra volumes (beyond the work_dir) to mount to the container. Defaults to {}. - extra_hosts (Dict[str, str], optional): A dictionary of host mappings to add to the container. Defaults to {}. - init_command (str, optional): A shell command to run before each shell operation execution. Defaults to ":" (which does nothing). + extra_volumes (Optional[Dict[str, Dict[str, str]]], optional): A dictionary of extra volumes (beyond the work_dir) to mount to the container. Defaults to None. + extra_hosts (Optional[Dict[str, str]], optional): A dictionary of host mappings to add to the container. (See Docker docs on extra_hosts) Defaults to None. + init_command (Optional[str], optional): A shell command to run before each shell operation execution. Defaults to None. """ SUPPORTED_LANGUAGES: ClassVar[List[str]] = [ @@ -129,9 +129,9 @@ def __init__( ] ] = [], functions_module: str = "functions", - extra_volumes: Dict[str, Dict[str, str]] = {}, - extra_hosts: Dict[str, str] = {}, - init_command: str = ":", + extra_volumes: Optional[Dict[str, Dict[str, str]]] = None, + extra_hosts: Optional[Dict[str, str]] = None, + init_command: Optional[str] = None, ): if timeout < 1: raise ValueError("Timeout must be greater than or equal to 1.") @@ -163,9 +163,9 @@ def __init__( self._functions_module = functions_module self._functions = functions - self._extra_volumes = extra_volumes - self._extra_hosts = extra_hosts - self._init_command = init_command + self._extra_volumes = extra_volumes if extra_volumes is not None else {} + self._extra_hosts = extra_hosts if extra_hosts is not None else {} + self._init_command = init_command # Setup could take some time so we intentionally wait for the first code block to do it. if len(functions) > 0: @@ -364,12 +364,15 @@ async def start(self) -> None: # Let the docker exception escape if this fails. await asyncio.to_thread(client.images.pull, self._image) + shell_command ="/bin/sh" + command = f"-c '{self._init_command};exec {shell_command}'" if self._init_command else None + self._container = await asyncio.to_thread( client.containers.create, self._image, name=self.container_name, - entrypoint="/bin/sh", - command=f"-c '{self._init_command}; exec /bin/sh'", + entrypoint=shell_command, + command=command, tty=True, detach=True, auto_remove=self._auto_remove, From d8089f5438e023d608e8aae52a09873b83854d3b Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Wed, 5 Feb 2025 15:20:08 -0500 Subject: [PATCH 4/9] Format fix --- .../code_executors/docker/_docker_code_executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index ee84a5c83de3..ba040dafcd20 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -165,7 +165,7 @@ def __init__( self._functions = functions self._extra_volumes = extra_volumes if extra_volumes is not None else {} self._extra_hosts = extra_hosts if extra_hosts is not None else {} - self._init_command = init_command + self._init_command = init_command # Setup could take some time so we intentionally wait for the first code block to do it. if len(functions) > 0: @@ -364,7 +364,7 @@ async def start(self) -> None: # Let the docker exception escape if this fails. await asyncio.to_thread(client.images.pull, self._image) - shell_command ="/bin/sh" + shell_command = "/bin/sh" command = f"-c '{self._init_command};exec {shell_command}'" if self._init_command else None self._container = await asyncio.to_thread( From c0a185adbe548aa803572429253e4485432198c3 Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Wed, 5 Feb 2025 18:19:16 -0500 Subject: [PATCH 5/9] Add test and more robust init_script handling --- .../docker/_docker_code_executor.py | 3 +- .../test_docker_commandline_code_executor.py | 41 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index ba040dafcd20..93e7ecff35f8 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -364,8 +364,9 @@ async def start(self) -> None: # Let the docker exception escape if this fails. await asyncio.to_thread(client.images.pull, self._image) + # Prepare the command (if needed) shell_command = "/bin/sh" - command = f"-c '{self._init_command};exec {shell_command}'" if self._init_command else None + command = ["-c", f"{(self._init_command)};exec {shell_command}"] if self._init_command else None self._container = await asyncio.to_thread( client.containers.create, diff --git a/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py b/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py index ad74236008fa..29dddd3de406 100644 --- a/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py +++ b/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py @@ -164,3 +164,44 @@ async def test_docker_commandline_code_executor_start_stop_context_manager() -> with tempfile.TemporaryDirectory() as temp_dir: async with DockerCommandLineCodeExecutor(work_dir=temp_dir) as _exec: pass + + +@pytest.mark.asyncio +async def test_docker_commandline_code_executor_extra_args() -> None: + if not docker_tests_enabled(): + pytest.skip("Docker tests are disabled") + + with tempfile.TemporaryDirectory() as temp_dir: + # Create a file in temp_dir to mount + host_file_path = Path(temp_dir) / "host_file.txt" + host_file_path.write_text("This is a test file.") + + container_file_path = "/container/host_file.txt" + + extra_volumes = {str(host_file_path): {"bind": container_file_path, "mode": "rw"}} + init_command = "echo 'Initialization command executed' > /workspace/init_command.txt" + extra_hosts = {"example.com": "127.0.0.1"} + + async with DockerCommandLineCodeExecutor( + work_dir=temp_dir, + extra_volumes=extra_volumes, + init_command=init_command, + extra_hosts=extra_hosts, + ) as executor: + cancellation_token = CancellationToken() + + # Verify init_command was executed + init_command_file_path = Path(temp_dir) / "init_command.txt" + assert init_command_file_path.exists() + + # Verify extra_hosts + ns_lookup_code_blocks = [CodeBlock(code="import socket; print(socket.gethostbyname('example.com'))", language="python")] + ns_lookup_result = await executor.execute_code_blocks(ns_lookup_code_blocks, cancellation_token) + assert ns_lookup_result.exit_code == 0 + assert "127.0.0.1" in ns_lookup_result.output + + # Verify the file is accessible in the volume mounted in extra_volumes + code_blocks = [CodeBlock(code=f"with open('{container_file_path}') as f: print(f.read())", language="python")] + code_result = await executor.execute_code_blocks(code_blocks, cancellation_token) + assert code_result.exit_code == 0 + assert "This is a test file." in code_result.output From b002ddf0e16a67899afe8d4907c7b18a4024b8ae Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Thu, 6 Feb 2025 14:41:47 -0500 Subject: [PATCH 6/9] Fix test format --- .../test_docker_commandline_code_executor.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py b/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py index 29dddd3de406..6c65835d183d 100644 --- a/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py +++ b/python/packages/autogen-ext/tests/code_executors/test_docker_commandline_code_executor.py @@ -195,13 +195,17 @@ async def test_docker_commandline_code_executor_extra_args() -> None: assert init_command_file_path.exists() # Verify extra_hosts - ns_lookup_code_blocks = [CodeBlock(code="import socket; print(socket.gethostbyname('example.com'))", language="python")] + ns_lookup_code_blocks = [ + CodeBlock(code="import socket; print(socket.gethostbyname('example.com'))", language="python") + ] ns_lookup_result = await executor.execute_code_blocks(ns_lookup_code_blocks, cancellation_token) assert ns_lookup_result.exit_code == 0 assert "127.0.0.1" in ns_lookup_result.output # Verify the file is accessible in the volume mounted in extra_volumes - code_blocks = [CodeBlock(code=f"with open('{container_file_path}') as f: print(f.read())", language="python")] + code_blocks = [ + CodeBlock(code=f"with open('{container_file_path}') as f: print(f.read())", language="python") + ] code_result = await executor.execute_code_blocks(code_blocks, cancellation_token) assert code_result.exit_code == 0 assert "This is a test file." in code_result.output From e3467fb35b757857577c2ede3a3cd4c130c33188 Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Tue, 11 Feb 2025 12:23:44 -0500 Subject: [PATCH 7/9] Add examples --- .../code_executors/docker/_docker_code_executor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py index 93e7ecff35f8..1ac058a9680f 100644 --- a/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py +++ b/python/packages/autogen-ext/src/autogen_ext/code_executors/docker/_docker_code_executor.py @@ -88,9 +88,13 @@ class DockerCommandLineCodeExecutor(CodeExecutor): the Python process exits with atext. Defaults to True. functions (List[Union[FunctionWithRequirements[Any, A], Callable[..., Any]]]): A list of functions that are available to the code executor. Default is an empty list. functions_module (str, optional): The name of the module that will be created to store the functions. Defaults to "functions". - extra_volumes (Optional[Dict[str, Dict[str, str]]], optional): A dictionary of extra volumes (beyond the work_dir) to mount to the container. Defaults to None. + extra_volumes (Optional[Dict[str, Dict[str, str]]], optional): A dictionary of extra volumes (beyond the work_dir) to mount to the container; + key is host source path and value 'bind' is the container path. See Defaults to None. + Example: extra_volumes = {'/home/user1/': {'bind': '/mnt/vol2', 'mode': 'rw'}, '/var/www': {'bind': '/mnt/vol1', 'mode': 'ro'}} extra_hosts (Optional[Dict[str, str]], optional): A dictionary of host mappings to add to the container. (See Docker docs on extra_hosts) Defaults to None. + Example: extra_hosts = {"kubernetes.docker.internal": "host-gateway"} init_command (Optional[str], optional): A shell command to run before each shell operation execution. Defaults to None. + Example: init_command="kubectl config use-context docker-hub" """ SUPPORTED_LANGUAGES: ClassVar[List[str]] = [ From d6f1dde7bd752dfae4a3b08dfc34f69adb852794 Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Tue, 11 Feb 2025 12:23:52 -0500 Subject: [PATCH 8/9] Merge inbound --- python/uv.lock | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/python/uv.lock b/python/uv.lock index 87c5320f0343..062e2b9bc9c4 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -89,7 +89,6 @@ wheels = [ [[package]] name = "agbench" -version = "0.0.1a1" source = { editable = "packages/agbench" } dependencies = [ { name = "azure-identity" }, @@ -749,7 +748,6 @@ requires-dist = [ [[package]] name = "autogenstudio" -version = "0.4.0" source = { editable = "packages/autogen-studio" } dependencies = [ { name = "aiofiles" }, @@ -4306,7 +4304,6 @@ name = "nvidia-cublas-cu12" version = "12.4.5.8" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7f/7f/7fbae15a3982dc9595e49ce0f19332423b260045d0a6afe93cdbe2f1f624/nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3", size = 363333771 }, { url = "https://files.pythonhosted.org/packages/ae/71/1c91302526c45ab494c23f61c7a84aa568b8c1f9d196efa5993957faf906/nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b", size = 363438805 }, ] @@ -4315,7 +4312,6 @@ name = "nvidia-cuda-cupti-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/93/b5/9fb3d00386d3361b03874246190dfec7b206fd74e6e287b26a8fcb359d95/nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a", size = 12354556 }, { url = "https://files.pythonhosted.org/packages/67/42/f4f60238e8194a3106d06a058d494b18e006c10bb2b915655bd9f6ea4cb1/nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb", size = 13813957 }, ] @@ -4324,7 +4320,6 @@ name = "nvidia-cuda-nvrtc-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/77/aa/083b01c427e963ad0b314040565ea396f914349914c298556484f799e61b/nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198", size = 24133372 }, { url = "https://files.pythonhosted.org/packages/2c/14/91ae57cd4db3f9ef7aa99f4019cfa8d54cb4caa7e00975df6467e9725a9f/nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338", size = 24640306 }, ] @@ -4333,7 +4328,6 @@ name = "nvidia-cuda-runtime-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a1/aa/b656d755f474e2084971e9a297def515938d56b466ab39624012070cb773/nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3", size = 894177 }, { url = "https://files.pythonhosted.org/packages/ea/27/1795d86fe88ef397885f2e580ac37628ed058a92ed2c39dc8eac3adf0619/nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5", size = 883737 }, ] @@ -4356,7 +4350,6 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ - { url = "https://files.pythonhosted.org/packages/7a/8a/0e728f749baca3fbeffad762738276e5df60851958be7783af121a7221e7/nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399", size = 211422548 }, { url = "https://files.pythonhosted.org/packages/27/94/3266821f65b92b3138631e9c8e7fe1fb513804ac934485a8d05776e1dd43/nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9", size = 211459117 }, ] @@ -4365,7 +4358,6 @@ name = "nvidia-curand-cu12" version = "10.3.5.147" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/80/9c/a79180e4d70995fdf030c6946991d0171555c6edf95c265c6b2bf7011112/nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9", size = 56314811 }, { url = "https://files.pythonhosted.org/packages/8a/6d/44ad094874c6f1b9c654f8ed939590bdc408349f137f9b98a3a23ccec411/nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b", size = 56305206 }, ] @@ -4379,7 +4371,6 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ - { url = "https://files.pythonhosted.org/packages/46/6b/a5c33cf16af09166845345275c34ad2190944bcc6026797a39f8e0a282e0/nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e", size = 127634111 }, { url = "https://files.pythonhosted.org/packages/3a/e1/5b9089a4b2a4790dfdea8b3a006052cfecff58139d5a4e34cb1a51df8d6f/nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260", size = 127936057 }, ] @@ -4391,7 +4382,6 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ - { url = "https://files.pythonhosted.org/packages/96/a9/c0d2f83a53d40a4a41be14cea6a0bf9e668ffcf8b004bd65633f433050c0/nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3", size = 207381987 }, { url = "https://files.pythonhosted.org/packages/db/f7/97a9ea26ed4bbbfc2d470994b8b4f338ef663be97b8f677519ac195e113d/nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1", size = 207454763 }, ] @@ -4408,7 +4398,6 @@ name = "nvidia-nvjitlink-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/02/45/239d52c05074898a80a900f49b1615d81c07fceadd5ad6c4f86a987c0bc4/nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4abe7fef64914ccfa909bc2ba39739670ecc9e820c83ccc7a6ed414122599b83", size = 20552510 }, { url = "https://files.pythonhosted.org/packages/ff/ff/847841bacfbefc97a00036e0fce5a0f086b640756dc38caea5e1bb002655/nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57", size = 21066810 }, ] @@ -4417,7 +4406,6 @@ name = "nvidia-nvtx-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/06/39/471f581edbb7804b39e8063d92fc8305bdc7a80ae5c07dbe6ea5c50d14a5/nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3", size = 100417 }, { url = "https://files.pythonhosted.org/packages/87/20/199b8713428322a2f22b722c62b8cc278cc53dffa9705d744484b5035ee9/nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a", size = 99144 }, ] From d2f684038790c9143f1beee1fc6928806e33132c Mon Sep 17 00:00:00 2001 From: Andrej Kyselica Date: Tue, 11 Feb 2025 12:33:14 -0500 Subject: [PATCH 9/9] revert uv.lock changes --- python/uv.lock | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/uv.lock b/python/uv.lock index 062e2b9bc9c4..87c5320f0343 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -89,6 +89,7 @@ wheels = [ [[package]] name = "agbench" +version = "0.0.1a1" source = { editable = "packages/agbench" } dependencies = [ { name = "azure-identity" }, @@ -748,6 +749,7 @@ requires-dist = [ [[package]] name = "autogenstudio" +version = "0.4.0" source = { editable = "packages/autogen-studio" } dependencies = [ { name = "aiofiles" }, @@ -4304,6 +4306,7 @@ name = "nvidia-cublas-cu12" version = "12.4.5.8" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/7f/7fbae15a3982dc9595e49ce0f19332423b260045d0a6afe93cdbe2f1f624/nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3", size = 363333771 }, { url = "https://files.pythonhosted.org/packages/ae/71/1c91302526c45ab494c23f61c7a84aa568b8c1f9d196efa5993957faf906/nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b", size = 363438805 }, ] @@ -4312,6 +4315,7 @@ name = "nvidia-cuda-cupti-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/93/b5/9fb3d00386d3361b03874246190dfec7b206fd74e6e287b26a8fcb359d95/nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a", size = 12354556 }, { url = "https://files.pythonhosted.org/packages/67/42/f4f60238e8194a3106d06a058d494b18e006c10bb2b915655bd9f6ea4cb1/nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb", size = 13813957 }, ] @@ -4320,6 +4324,7 @@ name = "nvidia-cuda-nvrtc-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/77/aa/083b01c427e963ad0b314040565ea396f914349914c298556484f799e61b/nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198", size = 24133372 }, { url = "https://files.pythonhosted.org/packages/2c/14/91ae57cd4db3f9ef7aa99f4019cfa8d54cb4caa7e00975df6467e9725a9f/nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338", size = 24640306 }, ] @@ -4328,6 +4333,7 @@ name = "nvidia-cuda-runtime-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/a1/aa/b656d755f474e2084971e9a297def515938d56b466ab39624012070cb773/nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3", size = 894177 }, { url = "https://files.pythonhosted.org/packages/ea/27/1795d86fe88ef397885f2e580ac37628ed058a92ed2c39dc8eac3adf0619/nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5", size = 883737 }, ] @@ -4350,6 +4356,7 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ + { url = "https://files.pythonhosted.org/packages/7a/8a/0e728f749baca3fbeffad762738276e5df60851958be7783af121a7221e7/nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399", size = 211422548 }, { url = "https://files.pythonhosted.org/packages/27/94/3266821f65b92b3138631e9c8e7fe1fb513804ac934485a8d05776e1dd43/nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9", size = 211459117 }, ] @@ -4358,6 +4365,7 @@ name = "nvidia-curand-cu12" version = "10.3.5.147" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/80/9c/a79180e4d70995fdf030c6946991d0171555c6edf95c265c6b2bf7011112/nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9", size = 56314811 }, { url = "https://files.pythonhosted.org/packages/8a/6d/44ad094874c6f1b9c654f8ed939590bdc408349f137f9b98a3a23ccec411/nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b", size = 56305206 }, ] @@ -4371,6 +4379,7 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ + { url = "https://files.pythonhosted.org/packages/46/6b/a5c33cf16af09166845345275c34ad2190944bcc6026797a39f8e0a282e0/nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e", size = 127634111 }, { url = "https://files.pythonhosted.org/packages/3a/e1/5b9089a4b2a4790dfdea8b3a006052cfecff58139d5a4e34cb1a51df8d6f/nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260", size = 127936057 }, ] @@ -4382,6 +4391,7 @@ dependencies = [ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" }, ] wheels = [ + { url = "https://files.pythonhosted.org/packages/96/a9/c0d2f83a53d40a4a41be14cea6a0bf9e668ffcf8b004bd65633f433050c0/nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3", size = 207381987 }, { url = "https://files.pythonhosted.org/packages/db/f7/97a9ea26ed4bbbfc2d470994b8b4f338ef663be97b8f677519ac195e113d/nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1", size = 207454763 }, ] @@ -4398,6 +4408,7 @@ name = "nvidia-nvjitlink-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/02/45/239d52c05074898a80a900f49b1615d81c07fceadd5ad6c4f86a987c0bc4/nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4abe7fef64914ccfa909bc2ba39739670ecc9e820c83ccc7a6ed414122599b83", size = 20552510 }, { url = "https://files.pythonhosted.org/packages/ff/ff/847841bacfbefc97a00036e0fce5a0f086b640756dc38caea5e1bb002655/nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57", size = 21066810 }, ] @@ -4406,6 +4417,7 @@ name = "nvidia-nvtx-cu12" version = "12.4.127" source = { registry = "https://pypi.org/simple" } wheels = [ + { url = "https://files.pythonhosted.org/packages/06/39/471f581edbb7804b39e8063d92fc8305bdc7a80ae5c07dbe6ea5c50d14a5/nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3", size = 100417 }, { url = "https://files.pythonhosted.org/packages/87/20/199b8713428322a2f22b722c62b8cc278cc53dffa9705d744484b5035ee9/nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a", size = 99144 }, ]