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

  • Log In
  • Sign Up

baseten
/
gemma-4-e2b-it-sequence-classification

Text Classification
Transformers
Safetensors
gemma4
sequence-classification
custom_code
Model card Files Files and versions
xet
Community

Instructions to use baseten/gemma-4-e2b-it-sequence-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use baseten/gemma-4-e2b-it-sequence-classification with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="baseten/gemma-4-e2b-it-sequence-classification", trust_remote_code=True)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForSequenceClassification
    
    processor = AutoProcessor.from_pretrained("baseten/gemma-4-e2b-it-sequence-classification", trust_remote_code=True)
    model = AutoModelForSequenceClassification.from_pretrained("baseten/gemma-4-e2b-it-sequence-classification", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
gemma-4-e2b-it-sequence-classification
10.2 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
baseten-admin's picture
baseten-admin
Update config.json
e7457d8 verified 3 days ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 4 days ago
  • README.md
    848 Bytes
    Upload folder using huggingface_hub 4 days ago
  • chat_template.jinja
    17.3 kB
    Upload folder using huggingface_hub 4 days ago
  • config.json
    5.34 kB
    Update config.json 3 days ago
  • model.safetensors
    10.2 GB
    xet
    Upload folder using huggingface_hub 4 days ago
  • modeling_gemma4_sequence.py
    7.92 kB
    Update modeling_gemma4_sequence.py 4 days ago
  • tokenizer.json
    32.2 MB
    xet
    Upload folder using huggingface_hub 4 days ago
  • tokenizer_config.json
    2.74 kB
    Upload folder using huggingface_hub 4 days ago