Instructions to use katuni4ka/tiny-random-chatglm2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use katuni4ka/tiny-random-chatglm2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="katuni4ka/tiny-random-chatglm2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("katuni4ka/tiny-random-chatglm2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update modeling_chatglm.py
Verified signature44385a0 -
Update modeling_chatglm.py
Verified signature1578ff5
-
Update modeling_chatglm.py
Verified signaturede19195
-
fix pkv update for new transformers compatibility
Verified signature71090c6
-
Update modeling_chatglm.py
Verified signaturef86aa57
-
Upload 9 files
Verified signature54e583d