Instructions to use Kemsekov/gemma-2b-ru-spellfix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use Kemsekov/gemma-2b-ru-spellfix with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://Kemsekov/gemma-2b-ru-spellfix") - Keras
How to use Kemsekov/gemma-2b-ru-spellfix with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://Kemsekov/gemma-2b-ru-spellfix") - Notebooks
- Google Colab
- Kaggle
| { | |
| "module": "keras_nlp.src.models.gemma.gemma_tokenizer", | |
| "class_name": "GemmaTokenizer", | |
| "config": { | |
| "name": "gemma_tokenizer", | |
| "trainable": true, | |
| "dtype": { | |
| "module": "keras", | |
| "class_name": "DTypePolicy", | |
| "config": { | |
| "name": "int32" | |
| }, | |
| "registered_name": null | |
| }, | |
| "proto": null, | |
| "sequence_length": null | |
| }, | |
| "registered_name": "keras_nlp>GemmaTokenizer" | |
| } |