Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

keras
/
parseq

Text Generation
KerasHub
Model card Files Files and versions
xet
Community

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

  • Libraries
  • KerasHub

    How to use keras/parseq with KerasHub:

    import keras_hub
    
    # Load CausalLM model (optional: use half precision for inference)
    causal_lm = keras_hub.models.CausalLM.from_preset("hf://keras/parseq", 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://keras/parseq")
    
  • Keras

    How to use keras/parseq with Keras:

    # Available backend options are: "jax", "torch", "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    import keras
    
    model = keras.saving.load_model("hf://keras/parseq")
    
  • Notebooks
  • Google Colab
  • Kaggle
parseq
95.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits

This model has 5 files scanned as unsafe.

prasadsachin's picture
prasadsachin
Update README.md with new model card content
ba590ca verified 2 months ago
  • assets
    Upload folder using huggingface_hub 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    1.59 kB
    Update README.md with new model card content 2 months ago
  • config.json
    1.92 kB
    Upload folder using huggingface_hub 6 months ago
  • image_converter.json
    780 Bytes
    Upload folder using huggingface_hub 6 months ago
  • metadata.json
    188 Bytes
    Upload folder using huggingface_hub 6 months ago
  • model.weights.h5
    95.9 MB
    xet
    Upload folder using huggingface_hub 6 months ago
  • preprocessor.json
    2.31 kB
    Upload folder using huggingface_hub 6 months ago
  • task.json
    5.65 kB
    Upload folder using huggingface_hub 6 months ago
  • tokenizer.json
    489 Bytes
    Upload folder using huggingface_hub 6 months ago