From e8112b31abab462f2e8e66ed0c8ab90e1e63e178 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Thu, 14 Nov 2024 22:41:19 -0500 Subject: [PATCH] move hf addapter->remote (#459) # What does this PR do? - move folder ## Test Plan **Unit Test** ``` pytest -v -s -m "huggingface" datasetio/test_datasetio.py ``` **E2E** ``` llama stack run ``` ``` llama-stack-client eval run_benchmark meta-reference-mmlu --num-examples 5 --output-dir ./ --eval-task-config ~/eval_task_config.json --visualize ``` image ## Before submitting - [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case). - [ ] Ran pre-commit to handle lint / formatting issues. - [ ] Read the [contributor guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md), Pull Request section? - [ ] Updated relevant documentation. - [ ] Wrote necessary unit or integration tests. --- llama_stack/providers/registry/datasetio.py | 4 ++-- .../{adapters => remote}/datasetio/huggingface/__init__.py | 0 .../{adapters => remote}/datasetio/huggingface/config.py | 0 .../{adapters => remote}/datasetio/huggingface/huggingface.py | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename llama_stack/providers/{adapters => remote}/datasetio/huggingface/__init__.py (100%) rename llama_stack/providers/{adapters => remote}/datasetio/huggingface/config.py (100%) rename llama_stack/providers/{adapters => remote}/datasetio/huggingface/huggingface.py (100%) diff --git a/llama_stack/providers/registry/datasetio.py b/llama_stack/providers/registry/datasetio.py index 7893bcde4..403c41111 100644 --- a/llama_stack/providers/registry/datasetio.py +++ b/llama_stack/providers/registry/datasetio.py @@ -26,8 +26,8 @@ def available_providers() -> List[ProviderSpec]: pip_packages=[ "datasets", ], - module="llama_stack.providers.adapters.datasetio.huggingface", - config_class="llama_stack.providers.adapters.datasetio.huggingface.HuggingfaceDatasetIOConfig", + module="llama_stack.providers.remote.datasetio.huggingface", + config_class="llama_stack.providers.remote.datasetio.huggingface.HuggingfaceDatasetIOConfig", ), ), ] diff --git a/llama_stack/providers/adapters/datasetio/huggingface/__init__.py b/llama_stack/providers/remote/datasetio/huggingface/__init__.py similarity index 100% rename from llama_stack/providers/adapters/datasetio/huggingface/__init__.py rename to llama_stack/providers/remote/datasetio/huggingface/__init__.py diff --git a/llama_stack/providers/adapters/datasetio/huggingface/config.py b/llama_stack/providers/remote/datasetio/huggingface/config.py similarity index 100% rename from llama_stack/providers/adapters/datasetio/huggingface/config.py rename to llama_stack/providers/remote/datasetio/huggingface/config.py diff --git a/llama_stack/providers/adapters/datasetio/huggingface/huggingface.py b/llama_stack/providers/remote/datasetio/huggingface/huggingface.py similarity index 100% rename from llama_stack/providers/adapters/datasetio/huggingface/huggingface.py rename to llama_stack/providers/remote/datasetio/huggingface/huggingface.py