Instructions to use kerasformers/mit_b1_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/mit_b1_in1k 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/mit_b1_in1k 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/mit_b1_in1k") - Notebooks
- Google Colab
- Kaggle
Upgrade kf_config.json to v2 (nested config + weight_dtype)
Browse files- kf_config.json +19 -15
kf_config.json
CHANGED
|
@@ -1,23 +1,27 @@
|
|
| 1 |
{
|
| 2 |
"library_name": "kerasformers",
|
| 3 |
-
"kerasformers_version": "1.
|
| 4 |
"model_module": "kerasformers.models.mit",
|
| 5 |
"model_class": "MiTImageClassify",
|
| 6 |
"variant": "mit_b1_in1k",
|
| 7 |
"weights": "model.weights.h5",
|
|
|
|
|
|
|
| 8 |
"model_type": "mit",
|
| 9 |
-
"
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.2.1",
|
| 4 |
"model_module": "kerasformers.models.mit",
|
| 5 |
"model_class": "MiTImageClassify",
|
| 6 |
"variant": "mit_b1_in1k",
|
| 7 |
"weights": "model.weights.h5",
|
| 8 |
+
"schema_version": 2,
|
| 9 |
+
"weight_dtype": "float32",
|
| 10 |
"model_type": "mit",
|
| 11 |
+
"vision_config": {
|
| 12 |
+
"embed_dim": [
|
| 13 |
+
64,
|
| 14 |
+
128,
|
| 15 |
+
320,
|
| 16 |
+
512
|
| 17 |
+
],
|
| 18 |
+
"depths": [
|
| 19 |
+
2,
|
| 20 |
+
2,
|
| 21 |
+
2,
|
| 22 |
+
2
|
| 23 |
+
],
|
| 24 |
+
"image_size": 224,
|
| 25 |
+
"num_classes": 1000
|
| 26 |
+
}
|
| 27 |
}
|