fusion-bench


Namefusion-bench JSON
Version 0.2.7 PyPI version JSON
download
home_pageNone
SummaryA Comprehensive Benchmark of Deep Model Fusion
upload_time2024-12-20 06:06:22
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Anke Tang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords deep learning model fusion benchmark
VCS
bugtrack_url
requirements numpy matplotlib scipy torch lightning transformers datasets peft h5py scipy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align='center'>

# FusionBench: A Comprehensive Benchmark/ToolKit of Deep Model Fusion

[![arXiv](https://img.shields.io/badge/arXiv-2406.03280-b31b1b.svg)](http://arxiv.org/abs/2406.03280)
[![GitHub License](https://img.shields.io/github/license/tanganke/fusion_bench)](https://github.com/tanganke/fusion_bench/blob/main/LICENSE)
[![PyPI - Version](https://img.shields.io/pypi/v/fusion-bench)](https://pypi.org/project/fusion-bench/)
[![Downloads](https://static.pepy.tech/badge/fusion-bench/month)](https://pepy.tech/project/fusion-bench)
[![Static Badge](https://img.shields.io/badge/doc-mkdocs-blue)](https://tanganke.github.io/fusion_bench/)
[![Static Badge](https://img.shields.io/badge/code%20style-black-black)](https://github.com/psf/black)
[![Static Badge](https://img.shields.io/badge/code%20style-yamlfmt-black)](https://github.com/google/yamlfmt)

</div>

> [!TIP]  
> Documentation is available at [tanganke.github.io/fusion_bench/](https://tanganke.github.io/fusion_bench/).

## Overview

FusionBench is a benchmark suite designed to evaluate the performance of various deep model fusion techniques. It aims to provide a comprehensive comparison of different methods on a variety of datasets and tasks.

Projects based on FusionBench and news from the community (descending order of date):

<details>
  <summary>Hongling Zheng, Li Shen, Anke Tang, Yong Luo et al. Learn From Model Beyond Fine-Tuning: A Survey. has been accepted for publication in Nature Machine Intelligence. Nov, 2024. https://arxiv.org/abs/2310.08184</summary>

  > Foundation models (FM) have demonstrated remarkable performance across a wide range of tasks (especially in the fields
  of natural language processing and computer vision), primarily attributed to their ability to comprehend instructions and access
  extensive, high-quality data. This not only showcases their current effectiveness but also sets a promising trajectory towards the
  development of artificial general intelligence. Unfortunately, due to multiple constraints, the raw data of the model used for large model
  training are often inaccessible, so the use of end-to-end models for downstream tasks has become a new research trend, which we call
  Learn From Model (LFM) in this article. LFM focuses on the research, modification, and design of FM based on the model interface,
  so as to better understand the model structure and weights (in a black box environment), and to generalize the model to downstream
  tasks. The study of LFM techniques can be broadly categorized into five major areas: model tuning, model distillation, model reuse,
  meta learning and model editing. Each category encompasses a repertoire of methods and strategies that aim to enhance the
  capabilities and performance of FM. This paper gives a comprehensive review of the current methods based on FM from the
  perspective of LFM, in order to help readers better understand the current research status and ideas. To conclude, we summarize the
  survey by highlighting several critical areas for future exploration and addressing open issues that require further attention from the
  research community. The relevant papers we investigated in this article can be accessed at
  https://github.com/ruthless-man/Awesome-Learn-from-Model.
</details>

<details>
  <summary>Li Shen, Anke Tang, Enneng Yang et al. Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Merging. Oct, 2024. https://github.com/EnnengYang/Efficient-WEMoE</summary>
 
  <img width="1018" alt="image" src="https://github.com/user-attachments/assets/b7e1279e-87fc-4016-8867-1bff7700e271">

</details>
<details>
  <summary>Jinluan Yang et al. Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace. Oct, 2024. http://arxiv.org/abs/2410.13910</summary>

  <img width="1018" alt="image" src="https://github.com/user-attachments/assets/679aaa7e-0506-4e09-a12a-345c12cf529f">

</details>
<details>
  <summary>Anke Tang et al. SMILE: Zero-Shot Sparse Mixture of Low-Rank Experts Construction From Pre-Trained Foundation Models. Aug, 2024. http://arxiv.org/abs/2408.10174</summary>

  Example notebooks can be found at [examples/smile_upscaling](examples/smile_upscaling).  
  ![](examples/smile_upscaling/SMILE.png)

</details>

## Installation

install from PyPI:

```bash
pip install fusion-bench
```

or install the latest version in development from github repository

```bash
git clone https://github.com/tanganke/fusion_bench.git
cd fusion_bench

pip install -e . # install the package in editable mode
```

## Introduction to Deep Model Fusion

Deep model fusion is a technique that merges, ensemble, or fuse multiple deep neural networks to obtain a unified model.
It can be used to improve the performance and robustness of model or to combine the strengths of different models, such as fuse multiple task-specific models to create a multi-task model.
For a more detailed introduction to deep model fusion, you can refer to [W. Li, 2023, 'Deep Model Fusion: A Survey'](https://arxiv.org/abs/2309.15698). We also provide a brief overview of deep model fusion in [our documentation](https://tanganke.github.io/fusion_bench/).
In this benchmark, we evaluate the performance of different fusion methods on a variety of datasets and tasks.

## Project Structure

The project is structured as follows:

- `fusion_bench/`: the main package of the benchmark.
  - `method`: contains the implementation of the fusion methods.
    > **naming convention**: `fusion_bench/method/{method_name}/{variant}.py` contains the implementation of the specific method or its variants.
      For example, `fusion_bench/method/regmean/clip_regmean.py` contains the implementation of the RegMean algorithm for CLIP vision models.
  - `modelpool`: contains the implementation of the model pool, responsible for managing the models and dataset to be loaded.
  - `taskpool`: contains the implementation of the task pool, responsible for evaluating the performance of models returned by the algorithm.
- `config/`: configuration files for the benchmark. We use [Hydra](https://hydra.cc/) to manage the configurations.
  - `method`: configuration files for the fusion methods.
    > **naming convention**: `config/method/{method_name}/{variant}.yaml` contains the configuration for the specific method or its variants.
  - `modelpool`: configuration files for the model pool.
  - `taskpool`: configuration files for the task pool.
  - `model`: configuration files for the models.
  - `dataset`: configuration files for the datasets.
- `docs/`: documentation for the benchmark. We use [mkdocs](https://www.mkdocs.org/) to generate the documentation. Start the documentation server locally with `mkdocs serve`. The required packages can be installed with `pip install -r mkdocs-requirements.txt`.
- `examples/`: example scripts for running some of the experiments.
  > **naming convention**: `examples/{method_name}/` contains the files such as bash scripts and jupyter notebooks for the specific method.
- `tests/`: unit tests for the benchmark.

## A Unified Command Line Interface

The `fusion_bench` command-line interface is a powerful tool for researchers and practitioners in the field of model fusion. It provides a streamlined way to experiment with various fusion algorithms, model combinations, and evaluation tasks. 
By leveraging Hydra's configuration management, fusion_bench offers flexibility in setting up experiments and reproducibility in results. 
The CLI's design allows for easy extension to new fusion methods, model types, and tasks, making it a versatile platform for advancing research in model fusion techniques.

Read the [CLI documentation](https://tanganke.github.io/fusion_bench/cli/fusion_bench/) for more information.

## Implement your own model fusion algorithm

First, create a new Python file for the algorithm in the `fusion_bench/method` directory.
Following the naming convention, the file should be named `{method_name_or_class}/{variant}.py`.

```python
from fusion_bench import BaseModelFusionAlgorithm, BaseModelPool

class DerivedModelFusionAlgorithm(BaseModelFusionAlgorithm):
    """
    An example of a derived model fusion algorithm.
    """

    # _config_mapping maps the attribution to the corresponding key in the configuration file.
    # this is optional and can be used to serialize the object to a configuration file.
    # `self.config.hyperparam_1` will be mapped to the attribute `hyperparam_attr_1`.
    _config_mapping = BaseModelFusionAlgorithm._config_mapping | {
        "hyperparam_attr_1": "hyperparam_1",
        "hyperparam_attr_2": "hyperparam_2",
    }

    def __init__(self, hyperparam_1, hyperparam_2, **kwargs):
        self.hyperparam_attr_1 = hyperparam_1
        self.hyperparam_attr_2 = hyperparam_2
        super().__init__(**kwargs)

    def run(self, modelpool: BaseModelPool):
        # modelpool is an object that responsible for managing the models and dataset to be loaded.
        # implement the fusion algorithm here.
        raise NotImplementedError(
            "DerivedModelFusionAlgorithm.run() is not implemented."
        )
```

A corresponding configuration file should be created to specify the class and hyperparameters of the algorithm. 
Here we assume the configuration file is placed at `config/method/your_algorithm_config.yaml`.

> [!NOTE]
> In fact, you can place your implementation anywhere you like, as long as the `_target_` in the configuration file points to the correct class.

```yaml
_target_: path_to_the_module.DerivedModelFusionAlgorithm

hyperparam_1: some_value
hyperparam_2: another_value
```

Use the algorithm in the FusionBench:

```bash
fusion_bench \
  method=your_algorithm_config \
  method.hyperparam_1=you_can_override_this \
  method.hyperparam_2=and_this \
  ... # other configurations
```

### :rocket: Quick Start for Experienced Users

We provide a project template for quickly starting a new fusion algorithm implementation here: [FusionBench Project Template](https://github.com/fusion-bench/fusion-bench-project-template).

<div align='center'>

Click on [<kbd>Use this template</kbd>](https://github.com/fusion-bench/fusion-bench-project-template/generate) to initialize new repository.

</div>

### FusionBench Command Generator WebUI (for v0.1.x)

FusionBench Command Generator is a user-friendly web interface for generating FusionBench commands based on configuration files. 
It provides an interactive way to select and customize FusionBench configurations, making it easier to run experiments with different settings.
[Read more here](https://tanganke.github.io/fusion_bench/cli/fusion_bench_webui/).

![FusionBench Command Generator Web Interface](docs/cli/images/fusion_bench_webui.png)

## Citation

If you find this benchmark useful, please consider citing our work:

```bibtex
@misc{tangFusionBenchComprehensiveBenchmark2024,
  title = {{{FusionBench}}: {{A Comprehensive Benchmark}} of {{Deep Model Fusion}}},
  shorttitle = {{{FusionBench}}},
  author = {Tang, Anke and Shen, Li and Luo, Yong and Hu, Han and Du, Bo and Tao, Dacheng},
  year = {2024},
  month = jun,
  number = {arXiv:2406.03280},
  eprint = {2406.03280},
  publisher = {arXiv},
  url = {http://arxiv.org/abs/2406.03280},
  archiveprefix = {arxiv},
  langid = {english},
  keywords = {Computer Science - Artificial Intelligence,Computer Science - Computation and Language,Computer Science - Machine Learning}
}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fusion-bench",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "deep learning, model fusion, benchmark",
    "author": null,
    "author_email": "Anke Tang <tang.anke@foxmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e8/e7/8f6a7b49054ff2e1ecbe310fe461ae105ccab586444f6e787e8f4903a582/fusion_bench-0.2.7.tar.gz",
    "platform": null,
    "description": "<div align='center'>\n\n# FusionBench: A Comprehensive Benchmark/ToolKit of Deep Model Fusion\n\n[![arXiv](https://img.shields.io/badge/arXiv-2406.03280-b31b1b.svg)](http://arxiv.org/abs/2406.03280)\n[![GitHub License](https://img.shields.io/github/license/tanganke/fusion_bench)](https://github.com/tanganke/fusion_bench/blob/main/LICENSE)\n[![PyPI - Version](https://img.shields.io/pypi/v/fusion-bench)](https://pypi.org/project/fusion-bench/)\n[![Downloads](https://static.pepy.tech/badge/fusion-bench/month)](https://pepy.tech/project/fusion-bench)\n[![Static Badge](https://img.shields.io/badge/doc-mkdocs-blue)](https://tanganke.github.io/fusion_bench/)\n[![Static Badge](https://img.shields.io/badge/code%20style-black-black)](https://github.com/psf/black)\n[![Static Badge](https://img.shields.io/badge/code%20style-yamlfmt-black)](https://github.com/google/yamlfmt)\n\n</div>\n\n> [!TIP]  \n> Documentation is available at [tanganke.github.io/fusion_bench/](https://tanganke.github.io/fusion_bench/).\n\n## Overview\n\nFusionBench is a benchmark suite designed to evaluate the performance of various deep model fusion techniques. It aims to provide a comprehensive comparison of different methods on a variety of datasets and tasks.\n\nProjects based on FusionBench and news from the community (descending order of date):\n\n<details>\n  <summary>Hongling Zheng, Li Shen, Anke Tang, Yong Luo et al. Learn From Model Beyond Fine-Tuning: A Survey. has been accepted for publication in Nature Machine Intelligence. Nov, 2024. https://arxiv.org/abs/2310.08184</summary>\n\n  > Foundation models (FM) have demonstrated remarkable performance across a wide range of tasks (especially in the fields\n  of natural language processing and computer vision), primarily attributed to their ability to comprehend instructions and access\n  extensive, high-quality data. This not only showcases their current effectiveness but also sets a promising trajectory towards the\n  development of artificial general intelligence. Unfortunately, due to multiple constraints, the raw data of the model used for large model\n  training are often inaccessible, so the use of end-to-end models for downstream tasks has become a new research trend, which we call\n  Learn From Model (LFM) in this article. LFM focuses on the research, modification, and design of FM based on the model interface,\n  so as to better understand the model structure and weights (in a black box environment), and to generalize the model to downstream\n  tasks. The study of LFM techniques can be broadly categorized into five major areas: model tuning, model distillation, model reuse,\n  meta learning and model editing. Each category encompasses a repertoire of methods and strategies that aim to enhance the\n  capabilities and performance of FM. This paper gives a comprehensive review of the current methods based on FM from the\n  perspective of LFM, in order to help readers better understand the current research status and ideas. To conclude, we summarize the\n  survey by highlighting several critical areas for future exploration and addressing open issues that require further attention from the\n  research community. The relevant papers we investigated in this article can be accessed at\n  https://github.com/ruthless-man/Awesome-Learn-from-Model.\n</details>\n\n<details>\n  <summary>Li Shen, Anke Tang, Enneng Yang et al. Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Merging. Oct, 2024. https://github.com/EnnengYang/Efficient-WEMoE</summary>\n \n  <img width=\"1018\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b7e1279e-87fc-4016-8867-1bff7700e271\">\n\n</details>\n<details>\n  <summary>Jinluan Yang et al. Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace. Oct, 2024. http://arxiv.org/abs/2410.13910</summary>\n\n  <img width=\"1018\" alt=\"image\" src=\"https://github.com/user-attachments/assets/679aaa7e-0506-4e09-a12a-345c12cf529f\">\n\n</details>\n<details>\n  <summary>Anke Tang et al. SMILE: Zero-Shot Sparse Mixture of Low-Rank Experts Construction From Pre-Trained Foundation Models. Aug, 2024. http://arxiv.org/abs/2408.10174</summary>\n\n  Example notebooks can be found at [examples/smile_upscaling](examples/smile_upscaling).  \n  ![](examples/smile_upscaling/SMILE.png)\n\n</details>\n\n## Installation\n\ninstall from PyPI:\n\n```bash\npip install fusion-bench\n```\n\nor install the latest version in development from github repository\n\n```bash\ngit clone https://github.com/tanganke/fusion_bench.git\ncd fusion_bench\n\npip install -e . # install the package in editable mode\n```\n\n## Introduction to Deep Model Fusion\n\nDeep model fusion is a technique that merges, ensemble, or fuse multiple deep neural networks to obtain a unified model.\nIt can be used to improve the performance and robustness of model or to combine the strengths of different models, such as fuse multiple task-specific models to create a multi-task model.\nFor a more detailed introduction to deep model fusion, you can refer to [W. Li, 2023, 'Deep Model Fusion: A Survey'](https://arxiv.org/abs/2309.15698). We also provide a brief overview of deep model fusion in [our documentation](https://tanganke.github.io/fusion_bench/).\nIn this benchmark, we evaluate the performance of different fusion methods on a variety of datasets and tasks.\n\n## Project Structure\n\nThe project is structured as follows:\n\n- `fusion_bench/`: the main package of the benchmark.\n  - `method`: contains the implementation of the fusion methods.\n    > **naming convention**: `fusion_bench/method/{method_name}/{variant}.py` contains the implementation of the specific method or its variants.\n      For example, `fusion_bench/method/regmean/clip_regmean.py` contains the implementation of the RegMean algorithm for CLIP vision models.\n  - `modelpool`: contains the implementation of the model pool, responsible for managing the models and dataset to be loaded.\n  - `taskpool`: contains the implementation of the task pool, responsible for evaluating the performance of models returned by the algorithm.\n- `config/`: configuration files for the benchmark. We use [Hydra](https://hydra.cc/) to manage the configurations.\n  - `method`: configuration files for the fusion methods.\n    > **naming convention**: `config/method/{method_name}/{variant}.yaml` contains the configuration for the specific method or its variants.\n  - `modelpool`: configuration files for the model pool.\n  - `taskpool`: configuration files for the task pool.\n  - `model`: configuration files for the models.\n  - `dataset`: configuration files for the datasets.\n- `docs/`: documentation for the benchmark. We use [mkdocs](https://www.mkdocs.org/) to generate the documentation. Start the documentation server locally with `mkdocs serve`. The required packages can be installed with `pip install -r mkdocs-requirements.txt`.\n- `examples/`: example scripts for running some of the experiments.\n  > **naming convention**: `examples/{method_name}/` contains the files such as bash scripts and jupyter notebooks for the specific method.\n- `tests/`: unit tests for the benchmark.\n\n## A Unified Command Line Interface\n\nThe `fusion_bench` command-line interface is a powerful tool for researchers and practitioners in the field of model fusion. It provides a streamlined way to experiment with various fusion algorithms, model combinations, and evaluation tasks. \nBy leveraging Hydra's configuration management, fusion_bench offers flexibility in setting up experiments and reproducibility in results. \nThe CLI's design allows for easy extension to new fusion methods, model types, and tasks, making it a versatile platform for advancing research in model fusion techniques.\n\nRead the [CLI documentation](https://tanganke.github.io/fusion_bench/cli/fusion_bench/) for more information.\n\n## Implement your own model fusion algorithm\n\nFirst, create a new Python file for the algorithm in the `fusion_bench/method` directory.\nFollowing the naming convention, the file should be named `{method_name_or_class}/{variant}.py`.\n\n```python\nfrom fusion_bench import BaseModelFusionAlgorithm, BaseModelPool\n\nclass DerivedModelFusionAlgorithm(BaseModelFusionAlgorithm):\n    \"\"\"\n    An example of a derived model fusion algorithm.\n    \"\"\"\n\n    # _config_mapping maps the attribution to the corresponding key in the configuration file.\n    # this is optional and can be used to serialize the object to a configuration file.\n    # `self.config.hyperparam_1` will be mapped to the attribute `hyperparam_attr_1`.\n    _config_mapping = BaseModelFusionAlgorithm._config_mapping | {\n        \"hyperparam_attr_1\": \"hyperparam_1\",\n        \"hyperparam_attr_2\": \"hyperparam_2\",\n    }\n\n    def __init__(self, hyperparam_1, hyperparam_2, **kwargs):\n        self.hyperparam_attr_1 = hyperparam_1\n        self.hyperparam_attr_2 = hyperparam_2\n        super().__init__(**kwargs)\n\n    def run(self, modelpool: BaseModelPool):\n        # modelpool is an object that responsible for managing the models and dataset to be loaded.\n        # implement the fusion algorithm here.\n        raise NotImplementedError(\n            \"DerivedModelFusionAlgorithm.run() is not implemented.\"\n        )\n```\n\nA corresponding configuration file should be created to specify the class and hyperparameters of the algorithm. \nHere we assume the configuration file is placed at `config/method/your_algorithm_config.yaml`.\n\n> [!NOTE]\n> In fact, you can place your implementation anywhere you like, as long as the `_target_` in the configuration file points to the correct class.\n\n```yaml\n_target_: path_to_the_module.DerivedModelFusionAlgorithm\n\nhyperparam_1: some_value\nhyperparam_2: another_value\n```\n\nUse the algorithm in the FusionBench:\n\n```bash\nfusion_bench \\\n  method=your_algorithm_config \\\n  method.hyperparam_1=you_can_override_this \\\n  method.hyperparam_2=and_this \\\n  ... # other configurations\n```\n\n### :rocket: Quick Start for Experienced Users\n\nWe provide a project template for quickly starting a new fusion algorithm implementation here: [FusionBench Project Template](https://github.com/fusion-bench/fusion-bench-project-template).\n\n<div align='center'>\n\nClick on [<kbd>Use this template</kbd>](https://github.com/fusion-bench/fusion-bench-project-template/generate) to initialize new repository.\n\n</div>\n\n### FusionBench Command Generator WebUI (for v0.1.x)\n\nFusionBench Command Generator is a user-friendly web interface for generating FusionBench commands based on configuration files. \nIt provides an interactive way to select and customize FusionBench configurations, making it easier to run experiments with different settings.\n[Read more here](https://tanganke.github.io/fusion_bench/cli/fusion_bench_webui/).\n\n![FusionBench Command Generator Web Interface](docs/cli/images/fusion_bench_webui.png)\n\n## Citation\n\nIf you find this benchmark useful, please consider citing our work:\n\n```bibtex\n@misc{tangFusionBenchComprehensiveBenchmark2024,\n  title = {{{FusionBench}}: {{A Comprehensive Benchmark}} of {{Deep Model Fusion}}},\n  shorttitle = {{{FusionBench}}},\n  author = {Tang, Anke and Shen, Li and Luo, Yong and Hu, Han and Du, Bo and Tao, Dacheng},\n  year = {2024},\n  month = jun,\n  number = {arXiv:2406.03280},\n  eprint = {2406.03280},\n  publisher = {arXiv},\n  url = {http://arxiv.org/abs/2406.03280},\n  archiveprefix = {arxiv},\n  langid = {english},\n  keywords = {Computer Science - Artificial Intelligence,Computer Science - Computation and Language,Computer Science - Machine Learning}\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Anke Tang  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Comprehensive Benchmark of Deep Model Fusion",
    "version": "0.2.7",
    "project_urls": {
        "Homepage": "https://github.com/tanganke/fusion_bench",
        "Issues": "https://github.com/tanganke/fusion_bench/issues",
        "Repository": "https://github.com/tanganke/fusion_bench"
    },
    "split_keywords": [
        "deep learning",
        " model fusion",
        " benchmark"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5c63c4b7bbff2aa65320b67128dbca79a358efe974f99a7d192ccde4a5afc55",
                "md5": "9c8a527aed1fcff19fd0f363607771fa",
                "sha256": "a985522d8fbdc9c63e2ad481b68c08184b518e055e664b787f1fa875f0444335"
            },
            "downloads": -1,
            "filename": "fusion_bench-0.2.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c8a527aed1fcff19fd0f363607771fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 603459,
            "upload_time": "2024-12-20T06:06:17",
            "upload_time_iso_8601": "2024-12-20T06:06:17.715150Z",
            "url": "https://files.pythonhosted.org/packages/c5/c6/3c4b7bbff2aa65320b67128dbca79a358efe974f99a7d192ccde4a5afc55/fusion_bench-0.2.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8e78f6a7b49054ff2e1ecbe310fe461ae105ccab586444f6e787e8f4903a582",
                "md5": "a1ac53f50d4d9a15f4661f5098b1d35b",
                "sha256": "4058d71c9a95569d51dab78072561ef0b0c33e231ffd45d6fdb141aa80f78bde"
            },
            "downloads": -1,
            "filename": "fusion_bench-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "a1ac53f50d4d9a15f4661f5098b1d35b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 377435,
            "upload_time": "2024-12-20T06:06:22",
            "upload_time_iso_8601": "2024-12-20T06:06:22.206015Z",
            "url": "https://files.pythonhosted.org/packages/e8/e7/8f6a7b49054ff2e1ecbe310fe461ae105ccab586444f6e787e8f4903a582/fusion_bench-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-20 06:06:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tanganke",
    "github_project": "fusion_bench",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "torch",
            "specs": []
        },
        {
            "name": "lightning",
            "specs": []
        },
        {
            "name": "transformers",
            "specs": []
        },
        {
            "name": "datasets",
            "specs": []
        },
        {
            "name": "peft",
            "specs": []
        },
        {
            "name": "h5py",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        }
    ],
    "lcname": "fusion-bench"
}
        
Elapsed time: 0.39331s