The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    FileNotFoundError
Message:      Couldn't find a dataset script at /src/services/worker/muellerzr/RAG-accelerate/RAG-accelerate.py or any data file in the same directory. Couldn't find 'muellerzr/RAG-accelerate' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in muellerzr/RAG-accelerate. 
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 64, in compute_config_names_response
                  for config in sorted(get_dataset_config_names(path=dataset, token=hf_token))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1507, in dataset_module_factory
                  raise FileNotFoundError(
              FileNotFoundError: Couldn't find a dataset script at /src/services/worker/muellerzr/RAG-accelerate/RAG-accelerate.py or any data file in the same directory. Couldn't find 'muellerzr/RAG-accelerate' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in muellerzr/RAG-accelerate.

Need help to make the dataset viewer work? Open a discussion for direct support.

Preparing the dataset

NOTICE:

All code is owned by Hugging Face and uses the Apache 2.0 Licence. While I clean and strip the dataset for processing, do note that this dataset is under the same scruteny as the original Apache 2.0 License.

Clone Repo

Data souce used is the accelerate repository. I'm using the latest version, v0.25.0

git clone https://github.com/huggingface/accelerate
cd accelerate
git checkout v0.25.0
cd ..
mkdir docs src
mv accelerate/src/accelerate/* src
mv accelerate/docs/* docs
cd src
rm __init__.py commands/__init__.py test_utils/__init__.py utils/__init__.py

Cleaning the dataset

Using regex in VSCODE, use the following replacement:

# Copyright(.*\n)+# limitations under the license.
<!--Copyright(.*\n)+-->

In the source:

    """

    

To:

    """
    

Then remove all import statements (as we only care about the content).

Strip all blank spaces/whitespace:

^(?:[\t ]*(?:\r?\n|\r))+

WARNING: It is known that this will seperate out the _inner() in the source code and use it as a seperate function losing the context. Trying out with this issue for now.

Downloads last month
0
Edit dataset card