AI SeedbankHelp preserve open and free AI for humanity's future

← All models

google_electra-base-discriminator

google · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language: en thumbnail: https://huggingface.co/front/thumbnails/google.png

license: apache-2.0

ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators

ELECTRA is a new method for self-supervised language representation learning. It can be used to pre-train transformer networks using relatively little compute. ELECTRA models are trained to distinguish "real" input tokens vs "fake" input tokens generated by another neural network, similar to the discriminator of a GAN. At small scale, ELECTRA achieves strong results even when trained on a single GPU. At large scale, ELECTRA achieves state-of-the-art results on the SQuAD 2.0 dataset.

For a detailed description and experimental results, please refer to our paper ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators.

This repository contains code to pre-train ELECTRA, including small ELECTRA models on a single GPU. It also supports fine-tuning ELECTRA on downstream tasks including classification tasks (e.g,. GLUE), QA tasks (e.g., SQuAD), and sequence tagging tasks (e.g., text chunking).

How to use the discriminator in transformers

from transformers import ElectraForPreTraining, ElectraTokenizerFast
import torch

discriminator = ElectraForPreTraining.from_pretrained("google/electra-base-discriminator")
tokenizer = ElectraTokenizerFast.from_pretrained("google/electra-base-discriminator")

sentence = "The quick brown fox jumps over the lazy dog"
fake_sentence = "The quick brown fox fake over the lazy dog"

fake_tokens = tokenizer.tokenize(fake_sentence)
fake_inputs = tokenizer.encode(fake_sentence, return_tensors="pt")
discriminator_outputs = discriminator(fake_inputs)
predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2)

[print("%7s" % token, end="") for token in fake_tokens]

[print("%7s" % int(prediction), end="") for prediction in predictions.tolist()]

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:06114ed4883b019ad792008eba5abd833b46ecc7&dn=google_electra-base-discriminator

Open magnet in torrent client · infohash 06114ed4883b019ad792008eba5abd833b46ecc7

Files & hashes

PathSizesha1sha256
README.md2.1 KB (2,199 B)b24ddfef7c687d46e3ce99d03f4c6fbafcd3128a79e214f65add1bc2c67e60b790731ca3fb2b53dc5dc284c6f08e7c92ec934d6b
config.json666 B (666 B)81a25b7112ad00a9fa08d6c6baaefe7bd3f6bb3a0a2f56f315dfa0c24d29126fc645031dedb65789c8ac73df486404501c4cdabb
pytorch_model.bin419.9 MB (440,343,552 B)d0a25f9c735dc8796bcdb4b235a9518547bebd75ff381b988006468d184eb8c1c090be15553155daa960587e8d86465969f1a0c1
rust_model.ot419.9 MB (440,345,064 B)5f7e89671136a26279b5ebcb1f2385c5ca642c9772b22ccb8e2b6cb79411731e0851559bf491c7299f36a18ac1677143c0738b4e
tokenizer.json455.1 KB (466,062 B)949a6f013d67eb8a5b4b5b46026217b888021b88ce64fce797c24f68df90b40a3f74f579b336a493db14bd583fd520ea0d8c9a98
tokenizer_config.json48 B (48 B)e5c73d8a50df1f56fb5b0b8002d7cf4010afdccba025160ef0431f1a392f6f050c1310f4c5d9fb6f275932dbccba73c4d214bf10
vocab.txt226.1 KB (231,508 B)fb140275c155a9c7c5a3b3e0e77a9e839594a93807eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3

Cite this release

Canonical URL
https://aiseedbank.org/models/google_electra-base-discriminator/
Slug
google_electra-base-discriminator
Infohash
06114ed4883b019ad792008eba5abd833b46ecc7
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: google_electra-base-discriminator.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorygoogle/electra-base-discriminator
Revision (pinned)1ae76a97c7e84a4e640876a07453fccd636f0667
Fetched at2026-09-03T23:10:18Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T23:10:28Z

apache-2.0840.6 MB (881,389,099 bytes)transformerspytorchjaxrustelectrapretrainingendpoints_compatible2 languages (tf, en)paper: 1406.2661