Image-Text-to-Text
KerasFormers
Keras
PyTorch
JAX
TensorFlow
English
Chinese
glm
glm4v_moe
multimodal
vision
mixture-of-experts
Instructions to use kerasformers/glm-4.6v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/glm-4.6v with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use kerasformers/glm-4.6v with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/glm-4.6v") - Notebooks
- Google Colab
- Kaggle
Add converted Keras weights + kf_config + card
Browse files- kf_preprocessor.json +22 -0
kf_preprocessor.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.2.4",
|
| 4 |
+
"preprocessor_module": "kerasformers.models.glm4v",
|
| 5 |
+
"preprocessor_class": "Glm4vImageProcessor",
|
| 6 |
+
"variant": "glm-4.6v",
|
| 7 |
+
"patch_size": 14,
|
| 8 |
+
"spatial_merge_size": 2,
|
| 9 |
+
"temporal_patch_size": 2,
|
| 10 |
+
"min_pixels": 12544,
|
| 11 |
+
"max_pixels": 9633792,
|
| 12 |
+
"image_mean": [
|
| 13 |
+
0.48145467042922974,
|
| 14 |
+
0.45782750844955444,
|
| 15 |
+
0.40821072459220886
|
| 16 |
+
],
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.2686295509338379,
|
| 19 |
+
0.2613025903701782,
|
| 20 |
+
0.27577710151672363
|
| 21 |
+
]
|
| 22 |
+
}
|