Instructions to use OpenMOSS-Team/bart-base-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/bart-base-chinese with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("OpenMOSS-Team/bart-base-chinese") model = AutoModelForSeq2SeqLM.from_pretrained("OpenMOSS-Team/bart-base-chinese") - Notebooks
- Google Colab
- Kaggle
space between words
#4
by indiejoseph - opened
The output has spaces between words, anyway to fix it?
A simple solution is to replace the space in the outputs with nothing by .replace(' ', '')