How to use microsoft/unihanlm-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="microsoft/unihanlm-base")
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/unihanlm-base") model = AutoModel.from_pretrained("microsoft/unihanlm-base")