Instructions to use zai-org/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Enable JIT only when cuda is available
#84
by statelesshz - opened
statelesshz changed pull request title from Add support for Ascend NPU to Enable JIT only when cuda is available
statelesshz changed pull request status to closed