Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: scholar.google -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.2%) to scientific vocabulary
Repository
Official PyTorch implementation of CD-MOE
Basic Info
Statistics
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
CONDENSE, DON’T JUST PRUNE: ENHANCING EFFICIENCY AND PERFORMANCE IN MOE LAYER PRUNING
Official PyTorch implementation of CD-MOE, as presented in our paper: CONDENSE, DON’T JUST PRUNE: ENHANCING EFFICIENCY AND PERFORMANCE IN MOE LAYER PRUNING
Mingyu Cao, Gen Li, Jie Ji, Jiaqi Zhang, Xiaolong Ma, Shiwei Liu, Lu Yin
Shopee, Clemson University, Meituan, University of Oxford, University of Surrey
Abstract
Mixture-of-Experts (MoE) has garnered significant attention for their ability to scale up neural networks while utilizing the same or even fewer active parameters. However, MoE does not relieve the massive memory requirements of networks, which limits their practicality in real-world applications, especially in the era of large language models (LLMs). While recent work explores the possibility of removing entire layers of MoE to reduce memory, the performance degradation is still notable. In this paper, we propose ConDense-MoE (CD-MoE) that, instead of dropping the entire MoE layer, condenses the large, sparse MoE layer into a smaller, denser layer with only a few experts activated for all tokens, while maintaining hardware friendliness. Our approach is specifically designed for fine-grained MoE with shared experts, where Feed-Forward Networks are split into many small experts, with certain experts isolated to serve as shared experts that are always activated, such as DeepSeekMoE and QwenMoE. We demonstrate the effectiveness of our method. Specifically, for the \textit{DeepSeekMoE-16B} model, our approach maintains 90\% of the average accuracy while reducing memory usage by 27.5% and increasing inference speed to 1.26 times. Moreover, we show that by applying lightweight expert fine-tuning---only to the condensed layers---and using 5 hours on a single 80G A100 GPU, we can successfully recover 98% of the original performance.
Results
CD-MoE against baselines on zero-shot tasks w/o fine-tuning. Left: Average accuracy with varying Memory Ratio against the original model. Right: Average accuracy with varying SpeedUp against the original model. The Gray dotted line is the original model result. CD-MoE-S represents the shared experts and no routing experts, and CD-MoE-SR represents shared with routing experts. Baseline indicated performance of the dense model.
CD-MoE with lightweight fine-tuning. Left: SFT results on CD-MoE-S with increasing number of condensed layers. Right: SFT results on CD-MoE-SR with increasing number of condensed layers. Baseline indicated performance of the dense model.
Setup
bash
cd CD-MoE
pip install -e .
pip install -r requirements.txt
Usage
The process mainly consists of three steps: (1) obtaining the average weights of the experts, (2) selecting experts and layers through greedy search, and (3) fine-tuning the experts. The first two steps are mandatory, while the last step is optional. First, you need to download the official deepseek16B-MOE model to the local directory $model_path.
1. Expert Weight
bash
cp cd-moe/get_weight/modeling_deepseek.py $model_path
python cd-moe/get_weight/get_weight.py \
--input $calibration_data_file \
--output $expert_weight_file \
--model $model_path
2. Greedy Search
The greedy search expert must be done before the greedy search layer.
Greedy Search Expert
bash
cp cd-moe/greedy_search/modeling_deepseek.py $model_path
python cd-moe/greedy_search/greedy_search_expert.py \
--input $calibration_data_file \
--model $model_path \
--dynamic-weight-file $expert_weight_file \
--output $greedy_search_expert_result_file
Greedy Search Layer
bash
prune_num_expert=6
prune_num_layer=9
python cd-moe/greedy_search/greedy_search_layer.py \
--input $calibration_data_file \
--model $model_path \
--dynamic-weight-file $expert_weight_file \
--greedy-expert-file $greedy_search_expert_result_file \
--output $greedy_search_layer_result_file \
--prune-num-expert $prune_num_expert \
--prune-num-layer $prune_num_layer
3. Fine-tune (Optional)
The prune experts and layers in cd-moe/exp_hyper.py need to match the options in cd-moe/finetune/finetune.py, and replace the file paths in cd-moe/modeling_deepseek.py with real paths. You can use the --no-c4 option to skip lm fine-tuning and directly fine-tune for downstream tasks.
bash
echo "num_route_experts=${prune_num_expert};prune_layer_num=${prune_num_layer}" > cd-moe/exp_hyper.py
cp cd-moe/modeling_deepseek.py cd-moe/exp_hyper.py $model_path
python cd-moe/finetune/finetune.py \
--input $sft_data \
--c4-input $lm_data \
--model $model_path \
--dynamic-weight-file $expert_weight_file \
--greedy-expert-file $greedy_search_expert_result_file \
--greedy-layer-file $greedy_search_layer_result_file \
--output-dir $sft_model_path \
--prune-num-expert $prune_num_expert \
--prune-num-layer $prune_num_layer
For some intermediate variables, we provide some already generated results:
- calibrationdatafile(100 c4 texts): cd-moe/data/calibration_data.json
- expertweightfile: cd-moe/data/dynamic_weight.json
- greedysearchexpertresultfile: cd-moe/data/layer_idx_to_expert_idx.greedy_jl.json
- greedysearchlayerresultfile: cd-moe/data/layer_idx_order.e6.json and cd-moe/data/layer_idx_order.e0.json
The open-source model and C4 training data need to be downloaded locally: - DeepseekMoE-16B - C4 dataset
Evaluation
Install lm-evaluation-harness
Evaluate the pruned model or the finetuned model:
```bash
cp $expertweightfile $greedysearchexpertresultfile $greedysearchlayerresultfile $modelpath
lmeval --model hf \
--modelargs pretrained=$modelpath,dtype="bfloat16",trustremotecode=True \
--tasks arcchallenge,boolq,piqa,rte,openbookqa,winogrande,mmlu,hellaswag \
--device cuda:0 \
--batchsize 32
batch_size cannot be set to auto because of the model implement
```
Acknowledgement
This repository is build upon the Transformers repositories.
Owner
- Name: Caomingyu
- Login: duterscmy
- Kind: user
- Location: Dalian
- Repositories: 1
- Profile: https://github.com/duterscmy
KBQA; Machine Translation
Citation (CITATION.cff)
cff-version: "1.2.0"
date-released: 2020-10
message: "If you use this software, please cite it using these metadata."
title: "Transformers: State-of-the-Art Natural Language Processing"
url: "https://github.com/huggingface/transformers"
authors:
- family-names: Wolf
given-names: Thomas
- family-names: Debut
given-names: Lysandre
- family-names: Sanh
given-names: Victor
- family-names: Chaumond
given-names: Julien
- family-names: Delangue
given-names: Clement
- family-names: Moi
given-names: Anthony
- family-names: Cistac
given-names: Perric
- family-names: Ma
given-names: Clara
- family-names: Jernite
given-names: Yacine
- family-names: Plu
given-names: Julien
- family-names: Xu
given-names: Canwen
- family-names: "Le Scao"
given-names: Teven
- family-names: Gugger
given-names: Sylvain
- family-names: Drame
given-names: Mariama
- family-names: Lhoest
given-names: Quentin
- family-names: Rush
given-names: "Alexander M."
preferred-citation:
type: conference-paper
authors:
- family-names: Wolf
given-names: Thomas
- family-names: Debut
given-names: Lysandre
- family-names: Sanh
given-names: Victor
- family-names: Chaumond
given-names: Julien
- family-names: Delangue
given-names: Clement
- family-names: Moi
given-names: Anthony
- family-names: Cistac
given-names: Perric
- family-names: Ma
given-names: Clara
- family-names: Jernite
given-names: Yacine
- family-names: Plu
given-names: Julien
- family-names: Xu
given-names: Canwen
- family-names: "Le Scao"
given-names: Teven
- family-names: Gugger
given-names: Sylvain
- family-names: Drame
given-names: Mariama
- family-names: Lhoest
given-names: Quentin
- family-names: Rush
given-names: "Alexander M."
booktitle: "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations"
month: 10
start: 38
end: 45
title: "Transformers: State-of-the-Art Natural Language Processing"
year: 2020
publisher: "Association for Computational Linguistics"
url: "https://www.aclweb.org/anthology/2020.emnlp-demos.6"
address: "Online"
GitHub Events
Total
- Issues event: 1
- Watch event: 12
- Push event: 53
- Pull request event: 2
- Create event: 4
Last Year
- Issues event: 1
- Watch event: 12
- Push event: 53
- Pull request event: 2
- Create event: 4
Dependencies
- actions/cache v2 composite
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- docker/build-push-action v5 composite
- docker/login-action v3 composite
- docker/setup-buildx-action v3 composite
- actions/checkout v4 composite
- docker/build-push-action v5 composite
- docker/login-action v3 composite
- docker/setup-buildx-action v3 composite
- huggingface/hf-workflows/.github/actions/post-slack main composite
- actions/checkout v4 composite
- docker/build-push-action v3 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v2 composite
- actions/checkout v4 composite
- docker/build-push-action v3 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v2 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/upload-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- huggingface/hf-workflows/.github/actions/post-slack main composite
- huggingface/tailscale-action v1 composite
- tj-actions/changed-files 3f54ebb830831fc121d3263c1857cfbdc310cdb9 composite
- actions/checkout v1 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- geekyeggo/delete-artifact v2 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- geekyeggo/delete-artifact v2 composite
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- tj-actions/changed-files v41 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact v4 composite
- huggingface/tailscale-action main composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- nvidia/cuda 12.1.0-cudnn8-devel-ubuntu20.04 build
- python 3.10 build
- nvidia/cuda 10.2-cudnn7-devel-ubuntu18.04 build
- $BASE_DOCKER_IMAGE latest build
- rocm/dev-ubuntu-22.04 6.0.2 build
- rocm/dev-ubuntu-22.04 5.6 build
- nvcr.io/nvidia/pytorch 23.04-py3 build
- nvcr.io/nvidia/pytorch 23.11-py3 build
- nvidia/cuda 12.1.0-cudnn8-devel-ubuntu20.04 build
- google/cloud-sdk slim build
- nvidia/cuda 11.8.0-cudnn8-devel-ubuntu20.04 build
- nvidia/cuda 12.1.0-cudnn8-devel-ubuntu20.04 build
- nvcr.io/nvidia/pytorch 22.02-py3 build
- accelerate * test
- conllu * test
- datasets >=1.1.3 test
- evaluate >=0.2.0 test
- nltk * test
- pytest <8.0.1 test
- rouge-score * test
- seqeval * test
- tensorboard * test
- torch * test
- datasets >=1.1.3
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.9
- datasets >=1.8.0
- flax >=0.3.5
- jax >=0.2.17
- jaxlib >=0.1.68
- optax >=0.0.8
- datasets >=2.14.0
- evaluate *
- flax >=0.4.1
- jax >=0.3.6
- jaxlib >=0.3.6
- jiwer *
- optax >=0.0.8
- torch >=1.9.0
- datasets >=1.1.3
- evaluate >=0.2.0
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.8
- datasets >=1.1.3
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.8
- datasets >=1.8.0
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.8
- seqeval *
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.8
- torch ==1.13.1
- torchvision ==0.12.0
- torch >=1.3
- conllu *
- datasets >=1.1.3
- elasticsearch *
- faiss-cpu *
- fire *
- git-python ==1.0.3
- matplotlib *
- nltk *
- pandas *
- protobuf *
- psutil *
- pytest <8.0.1
- ray *
- rouge-score *
- sacrebleu *
- scikit-learn *
- sentencepiece *
- seqeval *
- streamlit *
- tensorboard *
- tensorflow_datasets *
- conllu *
- datasets >=1.1.3
- elasticsearch *
- faiss-cpu *
- fire *
- git-python ==1.0.3
- matplotlib *
- nltk *
- pandas *
- protobuf *
- psutil *
- pytest <8.0.1
- rouge-score *
- sacrebleu *
- scikit-learn *
- sentencepiece *
- seqeval *
- streamlit *
- tensorboard *
- tensorflow_datasets *
- accelerate main test
- albumentations >=1.4.5 test
- conllu * test
- datasets >=1.13.3 test
- elasticsearch * test
- evaluate >=0.2.0 test
- faiss-cpu * test
- fire * test
- git-python ==1.0.3 test
- jiwer * test
- librosa * test
- matplotlib * test
- nltk * test
- pandas * test
- protobuf * test
- psutil * test
- pycocotools * test
- pytest <8.0.1 test
- rouge-score * test
- sacrebleu >=1.4.12 test
- scikit-learn * test
- sentencepiece * test
- seqeval * test
- streamlit * test
- tensorboard * test
- tensorflow_datasets * test
- timm * test
- torch * test
- torchaudio * test
- torchmetrics * test
- torchvision * test
- datasets >=1.14.0
- evaluate *
- librosa *
- torch >=1.6
- torchaudio *
- datasets >=1.8.0
- torch >=1.5.0
- torchvision >=0.6.0
- accelerate >=0.12.0
- datasets >=2.14.0
- evaluate *
- torch >=1.5.0
- torchvision >=0.6.0
- datasets >=1.8.0
- torch >=1.5.0
- torchvision >=0.6.0
- albumentations >=1.4.5
- datasets *
- pycocotools *
- timm *
- torchmetrics *
- accelerate >=0.12.0
- datasets >=2.14.0
- evaluate *
- protobuf *
- scikit-learn *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- evaluate *
- protobuf *
- sentencepiece *
- torch >=1.3
- albumentations >=1.4.5
- datasets *
- pycocotools *
- timm *
- torchmetrics *
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- torch >=1.3.0
- Pillow *
- accelerate *
- albumentations *
- datasets >=2.0.0
- evaluate *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.12.0
- librosa *
- torch >=1.5
- torchaudio *
- datasets >=1.18.0
- evaluate *
- jiwer *
- librosa *
- torch >=1.5
- torchaudio *
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- nltk *
- protobuf *
- py7zr *
- rouge-score *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- protobuf *
- scikit-learn *
- scipy *
- sentencepiece *
- torch >=1.3
- accelerate >=0.21.0
- protobuf *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- seqeval *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- protobuf *
- py7zr *
- sacrebleu >=1.4.12
- sentencepiece *
- torch >=1.3
- transformers ==4.38.0
- transformers ==4.38.0
- nltk *
- py-rouge *
- transformers ==4.38.0
- transformers ==4.38.0
- datasets ==2.3.2
- evaluate ==0.2.2
- scikit-learn ==1.1.2
- transformers ==4.38.0
- wandb ==0.13.1
- datasets ==1.16.0
- datasketch ==1.5.7
- dpu_utils *
- huggingface-hub ==0.1.0
- tensorboard ==2.6.0
- torch ==1.13.1
- transformers ==4.38.0
- wandb ==0.12.0
- APScheduler ==3.9.1
- Brotli ==1.0.9
- Cython ==0.29.28
- Deprecated ==1.2.13
- Flask ==2.3.2
- Flask-Compress ==1.11
- GitPython ==3.1.41
- Jinja2 ==3.1.4
- Keras-Preprocessing ==1.1.2
- Mako ==1.2.2
- Markdown ==3.3.6
- MarkupSafe ==1.1.1
- Pillow ==10.3.0
- Pint ==0.16.1
- PyYAML ==6.0
- Pygments ==2.15.0
- SQLAlchemy ==1.4.32
- SoundFile ==0.10.3.post1
- Werkzeug ==3.0.3
- absl-py ==1.0.0
- aiohttp ==3.9.4
- aiosignal ==1.2.0
- alembic ==1.7.7
- appdirs ==1.4.4
- arrow ==1.2.2
- asttokens ==2.0.5
- astunparse ==1.6.3
- async-timeout ==4.0.2
- attrs ==21.4.0
- audioread ==2.1.9
- autopage ==0.5.0
- backcall ==0.2.0
- backoff ==1.11.1
- backports.zoneinfo ==0.2.1
- binaryornot ==0.4.4
- black ==24.3.0
- boto3 ==1.16.34
- botocore ==1.19.63
- cachetools ==5.0.0
- certifi ==2023.7.22
- cffi ==1.15.0
- chardet ==4.0.0
- charset-normalizer ==2.0.12
- chex ==0.1.1
- click ==8.0.4
- cliff ==3.10.1
- clldutils ==3.11.1
- cloudpickle ==2.0.0
- cmaes ==0.8.2
- cmd2 ==2.4.0
- codecarbon ==1.2.0
- colorlog ==6.6.0
- cookiecutter ==2.1.1
- cryptography ==42.0.0
- csvw ==2.0.0
- cycler ==0.11.0
- dash ==2.15.0
- dash-bootstrap-components ==1.0.3
- dash-core-components ==2.0.0
- dash-html-components ==2.0.0
- dash-table ==5.0.0
- datasets ==2.0.0
- decorator ==5.1.1
- dill ==0.3.4
- dlinfo ==1.2.1
- dm-tree ==0.1.6
- docker ==4.4.4
- execnet ==1.9.0
- executing ==0.8.3
- faiss-cpu ==1.7.2
- fasteners ==0.17.3
- filelock ==3.6.0
- fire ==0.4.0
- flake8 ==4.0.1
- flatbuffers ==2.0
- flax ==0.4.0
- fonttools ==4.43.0
- frozenlist ==1.3.0
- fsspec ==2022.2.0
- fugashi ==1.1.2
- gast ==0.5.3
- gitdb ==4.0.9
- glfw ==2.5.1
- google-auth ==2.6.2
- google-auth-oauthlib ==0.4.6
- google-pasta ==0.2.0
- greenlet ==1.1.2
- grpcio ==1.53.2
- gym ==0.23.1
- gym-notices ==0.0.6
- h5py ==3.6.0
- huggingface-hub ==0.4.0
- hypothesis ==6.39.4
- idna ==3.3
- imageio ==2.16.1
- importlib-metadata ==4.11.3
- importlib-resources ==5.4.0
- iniconfig ==1.1.1
- ipadic ==1.0.0
- ipython ==8.10.0
- isodate ==0.6.1
- isort ==5.10.1
- itsdangerous ==2.1.1
- jax ==0.3.4
- jaxlib ==0.3.2
- jedi ==0.18.1
- jinja2-time ==0.2.0
- jmespath ==0.10.0
- joblib ==1.2.0
- jsonschema ==4.4.0
- keras ==2.8.0
- kiwisolver ==1.4.0
- kubernetes ==12.0.1
- libclang ==13.0.0
- librosa ==0.9.1
- llvmlite ==0.38.0
- matplotlib ==3.5.1
- matplotlib-inline ==0.1.3
- mccabe ==0.6.1
- msgpack ==1.0.3
- mujoco-py ==2.1.2.14
- multidict ==6.0.2
- multiprocess ==0.70.12.2
- mypy-extensions ==0.4.3
- nltk ==3.7
- numba ==0.55.1
- numpy ==1.22.3
- oauthlib ==3.2.2
- onnx >=1.15.0
- onnxconverter-common ==1.9.0
- opt-einsum ==3.3.0
- optax ==0.1.1
- optuna ==2.10.0
- packaging ==21.3
- pandas ==1.4.1
- parameterized ==0.8.1
- parso ==0.8.3
- pathspec ==0.9.0
- pbr ==5.8.1
- pexpect ==4.8.0
- phonemizer ==3.0.1
- pickleshare ==0.7.5
- plac ==1.3.4
- platformdirs ==2.5.1
- plotly ==5.6.0
- pluggy ==1.0.0
- pooch ==1.6.0
- portalocker ==2.0.0
- poyo ==0.5.0
- prettytable ==3.2.0
- prompt-toolkit ==3.0.28
- protobuf ==3.19.5
- psutil ==5.9.0
- ptyprocess ==0.7.0
- pure-eval ==0.2.2
- py ==1.11.0
- py-cpuinfo ==8.0.0
- pyOpenSSL ==22.0.0
- pyarrow ==15.0.0
- pyasn1 ==0.4.8
- pyasn1-modules ==0.2.8
- pycodestyle ==2.8.0
- pycparser ==2.21
- pyctcdecode ==0.3.0
- pyflakes ==2.4.0
- pygtrie ==2.4.2
- pynvml ==11.4.1
- pyparsing ==3.0.7
- pyperclip ==1.8.2
- pypng ==0.0.21
- pyrsistent ==0.18.1
- pytest ==7.1.1
- pytest-forked ==1.4.0
- pytest-timeout ==2.1.0
- pytest-xdist ==2.5.0
- python-dateutil ==2.8.2
- python-slugify ==6.1.1
- pytz ==2022.1
- pytz-deprecation-shim ==0.1.0.post0
- ray >2.6.3
- redis ==4.5.4
- regex ==2022.3.15
- requests ==2.32.0
- requests-oauthlib ==1.3.1
- resampy ==0.2.2
- responses ==0.18.0
- rfc3986 ==1.5.0
- rouge-score ==0.0.4
- rsa ==4.8
- s3transfer ==0.3.7
- sacrebleu ==1.5.1
- sacremoses ==0.0.49
- scikit-learn ==1.0.2
- scipy ==1.8.0
- segments ==2.2.0
- sentencepiece ==0.1.96
- sigopt ==8.2.0
- six ==1.16.0
- smmap ==5.0.0
- sortedcontainers ==2.4.0
- stack-data ==0.2.0
- stevedore ==3.5.0
- tabulate ==0.8.9
- tenacity ==8.0.1
- tensorboard ==2.8.0
- tensorboard-data-server ==0.6.1
- tensorboard-plugin-wit ==1.8.1
- tensorboardX ==2.5
- tensorflow ==2.11.1
- tensorflow-io-gcs-filesystem ==0.24.0
- termcolor ==1.1.0
- text-unidecode ==1.3
- tf-estimator-nightly ==2.8.0.dev2021122109
- tf2onnx ==1.9.3
- threadpoolctl ==3.1.0
- timeout-decorator ==0.5.0
- timm ==0.5.4
- tokenizers ==0.11.6
- tomli ==2.0.1
- toolz ==0.11.2
- torch ==1.13.1
- torchaudio ==0.11.0
- torchvision ==0.12.0
- tqdm ==4.66.3
- traitlets ==5.1.1
- typing-extensions ==4.1.1
- tzdata ==2022.1
- tzlocal ==4.1
- unidic ==1.1.0
- unidic-lite ==1.0.8
- uritemplate ==4.1.1
- urllib3 ==1.26.18
- wasabi ==0.9.0
- wcwidth ==0.2.5
- websocket-client ==1.3.1
- wrapt ==1.14.0
- xxhash ==3.0.0
- yarl ==1.7.2
- zipp ==3.7.0
- transformers ==4.38.0
- gitpython ==3.1.41
- psutil ==5.6.6
- scipy >=1.4.1
- tensorboard >=1.14.0
- tensorboardX ==1.8
- transformers *
- transformers >=4.9.2
- torch >=1.9.0
- joblib >=0.13.2
- matplotlib *
- numpy >=1.17.2
- scipy *
- torch >=1.10.1
- transformers >=3.5
- datasets *
- flax *
- jsonlines *
- sentencepiece *
- wandb *
- flax >=0.3.5
- jax >=0.2.8
- jaxlib >=0.1.59
- optax >=0.0.8
- torch ==1.13.1
- torchvision ==0.10.0
- datasets *
- pillow *
- seqeval *
- datasets >=1.1.3
- elasticsearch *
- faiss-cpu *
- streamlit *
- CacheControl ==0.12.6
- Jinja2 >=2.11.3
- MarkupSafe ==1.1.1
- Pillow >=8.1.1
- PyYAML >=5.4
- Pygments >=2.7.4
- QtPy ==1.9.0
- Send2Trash ==1.5.0
- appdirs ==1.4.3
- argon2-cffi ==20.1.0
- async-generator ==1.10
- attrs ==20.2.0
- backcall ==0.2.0
- certifi ==2023.7.22
- cffi ==1.14.2
- chardet ==3.0.4
- click ==7.1.2
- colorama ==0.4.3
- contextlib2 ==0.6.0
- cycler ==0.10.0
- datasets ==1.0.0
- decorator ==4.4.2
- defusedxml ==0.6.0
- dill ==0.3.2
- distlib ==0.3.0
- distro ==1.4.0
- entrypoints ==0.3
- filelock ==3.0.12
- future ==0.18.3
- html5lib ==1.0.1
- idna ==2.8
- ipaddr ==2.2.0
- ipykernel ==5.3.4
- ipython *
- ipython-genutils ==0.2.0
- ipywidgets ==7.5.1
- jedi ==0.17.2
- joblib ==1.2.0
- jsonschema ==3.2.0
- jupyter ==1.0.0
- jupyter-client ==6.1.7
- jupyter-console ==6.2.0
- jupyter-core ==4.6.3
- jupyterlab-pygments ==0.1.1
- kiwisolver ==1.2.0
- lockfile ==0.12.2
- matplotlib ==3.3.1
- mistune ==2.0.3
- msgpack ==0.6.2
- nbclient ==0.5.0
- nbconvert ==6.5.1
- nbformat ==5.0.7
- nest-asyncio ==1.4.0
- notebook ==6.4.12
- numpy ==1.22.0
- opencv-python ==4.4.0.42
- packaging ==20.3
- pandas ==1.1.2
- pandocfilters ==1.4.2
- parso ==0.7.1
- pep517 ==0.8.2
- pexpect ==4.8.0
- pickleshare ==0.7.5
- progress ==1.5
- prometheus-client ==0.8.0
- prompt-toolkit ==3.0.7
- ptyprocess ==0.6.0
- pyaml ==20.4.0
- pyarrow ==15.0.0
- pycparser ==2.20
- pyparsing ==2.4.6
- pyrsistent ==0.16.0
- python-dateutil ==2.8.1
- pytoml ==0.1.21
- pytz ==2020.1
- pyzmq ==19.0.2
- qtconsole ==4.7.7
- regex ==2020.7.14
- requests ==2.32.2
- retrying ==1.3.3
- sacremoses ==0.0.43
- sentencepiece ==0.1.91
- six ==1.14.0
- terminado ==0.8.3
- testpath ==0.4.4
- tokenizers ==0.8.1rc2
- torch ==1.13.1
- torchvision ==0.7.0
- tornado ==6.4.1
- tqdm ==4.66.3
- traitlets *
- urllib3 ==1.26.18
- wcwidth ==0.2.5
- webencodings ==0.5.1
- wget ==3.2
- widgetsnbextension ==3.5.1
- xxhash ==2.0.0
- datasets >=1.1.3
- ltp *
- protobuf *
- sentencepiece *
- h5py >=2.10.0
- knockknock >=0.1.8.1
- numpy >=1.18.2
- scipy >=1.4.1
- torch >=1.4.0
- torch >=1.10
- conllu *
- datasets >=1.1.3
- elasticsearch *
- faiss-cpu *
- fire *
- git-python ==1.0.3
- matplotlib *
- nltk *
- pandas *
- protobuf *
- psutil *
- pytest *
- pytorch-lightning *
- rouge-score *
- sacrebleu *
- scikit-learn *
- sentencepiece *
- seqeval *
- streamlit *
- tensorboard *
- tensorflow_datasets *
- transformers ==4.38.0