Instructions to use microsoft/unihanlm-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
9db8593 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:da6d48b3711b418b1d8cbc3ca5de252bfa24c5a423d3354561e2051afd3cfc54
size 705255051
|