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)# pip install -U transformers accelerate # 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/codegeex_logo.png from zai-org/codegeex2-6b-int4: direct link, hf CLI and curl.
- Browser
- Download file 425 kB
-
https://huggingface.co/zai-org/codegeex2-6b-int4/resolve/main/resources/codegeex_logo.png
- Command line
-
hf download hf://zai-org/codegeex2-6b-int4/resources/codegeex_logo.png
-
curl -L -o codegeex_logo.png https://huggingface.co/zai-org/codegeex2-6b-int4/resolve/main/resources/codegeex_logo.png
425 kB
