Instructions to use katuni4ka/tiny-random-glm4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use katuni4ka/tiny-random-glm4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="katuni4ka/tiny-random-glm4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("katuni4ka/tiny-random-glm4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
fix transformers 4.45 compatibility
3e081f8
-
Update modeling_chatglm.py
Verified signature4435425
-
fix-import (#2)
Verified signature- fix import (81bd4b6031ddce345a18b30a42eef64023a12629) Co-authored-by: Ella Charlaix <echarlaix@users.noreply.huggingface.co>abce7c2
-
fix-generation (#1)
Verified signature- Fix compatibility with transformers v4.42 (2a422ba746d554ce7a07fbc9865b572f5e7aeadb) Co-authored-by: Ella Charlaix <echarlaix@users.noreply.huggingface.co>31d615d
-
Upload 8 files
Verified signaturef3d03c5 -
initial commit
Verified signature0381441