Text Generation
ZeroModels
Keras
PyTorch
JAX
TensorFlow
English
Chinese
glm
glm4_moe_lite
glm-4.7
mixture-of-experts
Instructions to use zeromodels/glm-4.7-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/glm-4.7-flash with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/glm-4.7-flash") - Keras
How to use zeromodels/glm-4.7-flash with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zeromodels/glm-4.7-flash") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from zeromodels/glm-4.7-flash: direct link, hf CLI and curl.
- Browser
- Download file 20.2 MB
-
https://huggingface.co/zeromodels/glm-4.7-flash/resolve/main/tokenizer.json
- Command line
-
hf download hf://zeromodels/glm-4.7-flash/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/zeromodels/glm-4.7-flash/resolve/main/tokenizer.json
20.2 MB
- Xet hash:
- 961c851c73a3e1f213cece750e312f56f35412b14dd461536a2b2b9abc19aa33
- Size of remote file:
- 20.2 MB
- SHA256:
- 19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.