Instructions to use blackWizard/phi_3_game with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use blackWizard/phi_3_game with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://blackWizard/phi_3_game") - Keras
How to use blackWizard/phi_3_game with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://blackWizard/phi_3_game") - Notebooks
- Google Colab
- Kaggle
File size: 717 Bytes
ae7a022 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"module": "keras_nlp.src.models.phi3.phi3_backbone",
"class_name": "Phi3Backbone",
"config": {
"name": "phi3_backbone_1",
"trainable": true,
"vocabulary_size": 32064,
"num_layers": 32,
"num_query_heads": 32,
"hidden_dim": 3072,
"intermediate_dim": 8192,
"num_key_value_heads": 32,
"layer_norm_epsilon": 1e-05,
"dropout": 0.0,
"max_sequence_length": 4096,
"pretraining_sequence_length": 4096,
"rope_max_wavelength": 10000.0,
"rope_scaling_type": null,
"rope_scaling_short_factor": null,
"rope_scaling_long_factor": null
},
"registered_name": "keras_nlp>Phi3Backbone"
} |