Giter Site home page Giter Site logo

stuprosur / mindnlp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindspore-lab/mindnlp

0.0 0.0 0.0 4.48 MB

An opensource NLP library based on MindSpore.

License: Apache License 2.0

Shell 0.15% Python 98.99% Cuda 0.14% Jupyter Notebook 0.71%

mindnlp's Introduction

MindNLP

docs GitHub PRs Welcome open issues ci

Installation | Introduction | Quick Links |

News ๐Ÿ“ข

  • ๐Ÿ”ฅ Latest Features

    • ๐Ÿค— Hugging huggingface ecosystem, we use datasets lib as default dataset loader to support mounts of useful datasets.
    • ๐Ÿ“ MindNLP supports NLP tasks such as language model, machine translation, question answering, sentiment analysis, sequence labeling, summarization, etc. You can access them through examples.
    • ๐Ÿš€ MindNLP currently supports industry-leading Large Language Models (LLMs), including Llama, GLM, RWKV, etc. For support related to large language models, including pre-training, fine-tuning, and inference demo examples, you can find them in the "llm" directory.
    • ๐Ÿค— Pretrained models support huggingface transformers-like apis, including 28+ models like BERT, Roberta, GPT2, T5, etc. You can use them easily by following code snippet:
      from mindnlp.models import BertModel
      
      model = BertModel.from_pretrained('bert-base-cased')

Installation

Version Compatibility:

MindNLP version MindSpore version Supported Python version
master daily build >=3.7.5, <=3.9
0.1.1 >=1.8.1, <=2.0.0 >=3.7.5, <=3.9
0.2.0 >=2.1.0 >=3.7.5, <=3.9

Daily build

You can download MindNLP daily wheel from here.

Install from source

To install MindNLP from source, please run:

pip install git+https://github.com/mindspore-lab/mindnlp.git
# or
git clone https://github.com/mindspore-lab/mindnlp.git
cd mindnlp
bash scripts/build_and_reinstall.sh

Introduction

MindNLP is an open source NLP library based on MindSpore. It supports a platform for solving natural language processing tasks, containing many common approaches in NLP. It can help researchers and developers to construct and train models more conveniently and rapidly.

The master branch works with MindSpore master.

Major Features

  • Comprehensive data processing: Several classical NLP datasets are packaged into friendly module for easy use, such as Multi30k, SQuAD, CoNLL, etc.
  • Friendly NLP model toolset: MindNLP provides various configurable components. It is friendly to customize models using MindNLP.
  • Easy-to-use engine: MindNLP simplified complicated training process in MindSpore. It supports Trainer and Evaluator interfaces to train and evaluate models easily.

Quick Links

Supported models

The table below represents the current support in the library for each of those models, whether they have support in Pynative mode or Graph mode.

Model Pynative support Graph Support
ALBERT โœ… โœ…
Autoformer TODO โŒ
Bark TODO โŒ
BART โœ… โŒ
BERT โœ… โœ…
BLOOM โœ… โŒ
CLIP โœ… โŒ
CodeGen โœ… โŒ
CodeLlama โœ… โŒ
ConvBERT TODO โŒ
CPM โœ… โŒ
CPM-Ant โœ… โŒ
CPM-Bee โœ… โŒ
EnCodec TODO โŒ
ERNIE โœ… โŒ
Falcon TODO โŒ
GLM โœ… โŒ
GPT Neo โœ… โŒ
GPT NeoX TODO โŒ
GPTBigCode โœ… โŒ
Graphormer TODO โŒ
LLaMA โœ… โŒ
Llama2 TODO โŒ
Longformer โœ… โŒ
LongT5 TODO โŒ
LUKE โœ… โŒ
MaskFormer โœ… โŒ
mBART-50 โœ… โŒ
Megatron-BERT โœ… โŒ
Megatron-GPT2 โœ… โŒ
MobileBERT โœ… โŒ
Moss โœ… โŒ
OpenAI GPT โœ… โŒ
OpenAI GPT-2 โœ… โœ…
OPT โœ… โŒ
Pangu โœ… โŒ
RoBERTa โœ… โœ…
RWKV โœ… โŒ
T5 โœ… โŒ
TimeSformer TODO โŒ
Whisper โœ… โŒ
XLM โœ… โŒ
XLM-RoBERTa โœ… โŒ

License

This project is released under the Apache 2.0 license.

Feedbacks and Contact

The dynamic version is still under development, if you find any issue or have an idea on new features, please don't hesitate to contact us via Github Issues.

Acknowledgement

MindSpore is an open source project that welcome any contribution and feedback.
We wish that the toolbox and benchmark could serve the growing research
community by providing a flexible as well as standardized toolkit to reimplement existing methods
and develop their own new semantic segmentation methods.

Citation

If you find this project useful in your research, please consider citing:

@misc{mindnlp2022,
    title={{MindNLP}: a MindSpore NLP library},
    author={MindNLP Contributors},
    howpublished = {\url{https://github.com/mindlab-ai/mindnlp}},
    year={2022}
}

mindnlp's People

Contributors

1114120549 avatar baolanchen avatar braveseeker avatar cjl99 avatar daiyuxin0511 avatar eyrechan avatar floutione avatar gaojinpeng8 avatar geaming-chn avatar heaodong0 avatar iron-boyy avatar it-is-a-robot avatar joy-swang avatar khoray avatar kuoyee avatar laixinyi823 avatar lvyufeng avatar mihaw99 avatar neoming avatar purrigin avatar stuprosur avatar sugarfreeliuyuxuan avatar suprecyk avatar tianyuzhou avatar ttyee avatar wangxingran222 avatar warruzuendo avatar yicorner avatar zeithaum avatar zzhangyutong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.