Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zeromodels
/
granite_speech_4_1_2b_plus

Automatic Speech Recognition
ZeroModels
Keras
PyTorch
JAX
google-tensorflow TensorFlow
granite-speech-plus
speech-llm
audio
Model card Files Files and versions
xet
Community

Instructions to use zeromodels/granite_speech_4_1_2b_plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • ZeroModels

    How to use zeromodels/granite_speech_4_1_2b_plus with ZeroModels:

    # pip install -U zeromodels
    # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    from zeromodels import AutoZModel
    
    # AutoZModel reads the repo's model_type and loads the matching class.
    # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect /
    # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto).
    model = AutoZModel.from_weights("zeromodels/granite_speech_4_1_2b_plus")
    
  • Keras

    How to use zeromodels/granite_speech_4_1_2b_plus with Keras:

    # !pip install -U keras tensorflow huggingface_hub
    # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
    # "jax" and "torch" also work for computation once TensorFlow is installed.
    import os
    os.environ["KERAS_BACKEND"] = "tensorflow"
    
    import keras
    
    model = keras.saving.load_model("hf://zeromodels/granite_speech_4_1_2b_plus")
    
  • Notebooks
  • Google Colab
  • Kaggle
granite_speech_4_1_2b_plus
4.23 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
IMvision12's picture
IMvision12
Fix HUB-02: correct declared weights filename
3821b9c verified 29 days ago
  • .gitattributes
    1.52 kB
    Super-squash branch 'main' using huggingface_hub 2 months ago
  • README.md
    4.26 kB
    Fix Collection badge link to the current zeromodels collection slug 2 months ago
  • model.weights.h5
    4.23 GB
    xet
    Super-squash branch 'main' using huggingface_hub 2 months ago
  • tokenizer.json
    7.15 MB
    Super-squash branch 'main' using huggingface_hub 2 months ago
  • zm_config.json
    1.42 kB
    Fix HUB-02: correct declared weights filename 29 days ago
  • zm_preprocessor.json
    393 Bytes
    Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge) 2 months ago