Discover and explore top open-source AI tools and projects—updated daily.
NLP/LLM framework for MindSpore, Hugging Face compatible
Top 40.8% on SourcePulse
MindNLP is an open-source NLP and LLM framework built on MindSpore, designed for researchers and developers. It offers a user-friendly interface and high performance, aiming to simplify the construction and training of NLP models, with compatibility for Hugging Face models and datasets.
How It Works
MindNLP leverages MindSpore's capabilities to provide a unified dynamic and static graph execution environment. This allows for easy switching between modes with a single line of code (mindspore.jit
), enabling rapid performance gains without sacrificing ease of use. It supports advanced features like distributed parallel inference for large models and quantization algorithms (SmoothQuant, int8) for efficient deployment across various hardware, including Ascend and GPU.
Quick Start & Requirements
pip install mindnlp
pip install git+https://github.com/mindspore-lab/mindnlp.git
or clone and build.Highlighted Details
Maintenance & Community
MindSpore NLP SIG is the main development team. Community engagement is encouraged via GitHub Issues.
Licensing & Compatibility
Released under the Apache 2.0 license, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
The dynamic version is still under development. Version compatibility between MindNLP and MindSpore requires careful attention to the provided table.
1 day ago
1 day