Instructions to use zai-org/codegeex2-6b-int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/codegeex2-6b-int4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="zai-org/codegeex2-6b-int4", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/codegeex2-6b-int4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download resources/join_wechat.png from zai-org/codegeex2-6b-int4: direct link, hf CLI and curl.
- Browser
- Download file 206 kB
-
https://huggingface.co/zai-org/codegeex2-6b-int4/resolve/main/resources/join_wechat.png
- Command line
-
hf download hf://zai-org/codegeex2-6b-int4/resources/join_wechat.png
-
curl -L -o join_wechat.png https://huggingface.co/zai-org/codegeex2-6b-int4/resolve/main/resources/join_wechat.png
206 kB
