Instructions to use zeromodels/janus_pro_7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/janus_pro_7b 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 zeromodels/janus_pro_7b with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/janus_pro_7b") - Notebooks
- Google Colab
- Kaggle
File size: 760 Bytes
63b82ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.janus",
"model_class": "JanusModel",
"variant": "janus_pro_7b",
"weights": "model.weights.json",
"schema_version": 2,
"weight_dtype": "bfloat16",
"model_type": "janus",
"text_config": {
"vocab_size": 102400,
"embed_dim": 4096,
"mlp_dim": 11008,
"num_layers": 30,
"num_heads": 32,
"num_kv_heads": 32,
"head_dim": 128,
"norm_eps": 1e-06,
"rope_theta": 10000.0,
"tie_embeddings": false
},
"vision_config": {
"embed_dim": 1024,
"mlp_dim": 4096,
"num_layers": 24,
"num_heads": 16,
"norm_eps": 1e-06,
"image_size": 384,
"patch_size": 16
},
"image_token_id": 100594
} |