Instructions to use RUCAIBox/Erya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RUCAIBox/Erya with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="RUCAIBox/Erya")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("RUCAIBox/Erya") model = AutoModelForSeq2SeqLM.from_pretrained("RUCAIBox/Erya") - Notebooks
- Google Colab
- Kaggle
关于CPTForConditionalGeneration导入报错的问题
#1
by asmzsthl - opened
为什么我的提示没有CPTForConditionalGeneration,是transformers的版本问题吗,之后我去找了这个包的相关信息,看到说要使用from modeling_cpt import CPTForConditionalGeneration,然后我下载了 modeling_cpt .py 之后提示TypeError: add_code_sample_docstrings() got an unexpected keyword argument 'tokenizer_class',想问问怎么回事呢
StevenTang changed discussion status to closed