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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

advy
/
gemma-2b-hate-classifier

PEFT
Safetensors
Transformers
lora
Model card Files Files and versions
xet
Community

Instructions to use advy/gemma-2b-hate-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use advy/gemma-2b-hate-classifier with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-2b")
    model = PeftModel.from_pretrained(base_model, "advy/gemma-2b-hate-classifier")
  • Transformers

    How to use advy/gemma-2b-hate-classifier with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("advy/gemma-2b-hate-classifier", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
gemma-2b-hate-classifier
46.1 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
advy's picture
advy
End of training
befe7b7 verified 8 months ago
  • .gitattributes
    1.57 kB
    Training in progress, epoch 1 8 months ago
  • README.md
    1.62 kB
    End of training 8 months ago
  • adapter_config.json
    878 Bytes
    Training in progress, epoch 1 8 months ago
  • adapter_model.safetensors
    7.41 MB
    xet
    Training in progress, epoch 5 8 months ago
  • special_tokens_map.json
    636 Bytes
    Training in progress, epoch 1 8 months ago
  • tokenizer.json
    34.4 MB
    xet
    Training in progress, epoch 1 8 months ago
  • tokenizer.model
    4.24 MB
    xet
    Training in progress, epoch 1 8 months ago
  • tokenizer_config.json
    40 kB
    Training in progress, epoch 1 8 months ago
  • training_args.bin
    5.78 kB
    xet
    Training in progress, epoch 1 8 months ago