Instructions to use telecomadm1145/test3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use telecomadm1145/test3 with KerasHub:
import keras_hub # Load CausalLM model (optional: use half precision for inference) causal_lm = keras_hub.models.CausalLM.from_preset("hf://telecomadm1145/test3", dtype="bfloat16") causal_lm.compile(sampler="greedy") # (optional) specify a sampler # Generate text causal_lm.generate("Keras: deep learning for", max_length=64)import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://telecomadm1145/test3") - Keras
How to use telecomadm1145/test3 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://telecomadm1145/test3") - Notebooks
- Google Colab
- Kaggle
File size: 1,254 Bytes
4da0f17 | 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 34 35 36 37 38 39 | {
"module": "keras_hub.src.models.qwen3.qwen3_causal_lm_preprocessor",
"class_name": "Qwen3CausalLMPreprocessor",
"config": {
"name": "qwen3_causal_lm_preprocessor",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"tokenizer": {
"module": null,
"class_name": "HFRustTokenizerWrapper",
"config": {
"name": "hf_rust_tokenizer_wrapper",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "float32"
},
"registered_name": null
},
"config_file": "tokenizer.json"
},
"registered_name": "HFRustTokenizerWrapper"
},
"config_file": "preprocessor.json",
"sequence_length": 2048,
"add_start_token": false,
"add_end_token": true
},
"registered_name": "keras_hub>Qwen3CausalLMPreprocessor"
} |