{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/electra-pre-training-text-encoders-as-1","title":"ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators","arxiv_id":"2003.10555","date":"2020-03-23","proceeding":"ICLR 2020 1","authors":["Kevin Clark","Minh-Thang Luong","Quoc V. Le","Christopher D. Manning"],"abstract":"Masked language modeling (MLM) pre-training methods such as BERT corrupt the input by replacing some tokens with [MASK] and then train a model to reconstruct the original tokens. While they produce good results when transferred to downstream NLP tasks, they generally require large amounts of compute to be effective. As an alternative, we propose a more sample-efficient pre-training task called replaced token detection. Instead of masking the input, our approach corrupts it by replacing some tokens with plausible alternatives sampled from a small generator network. Then, instead of training a model that predicts the original identities of the corrupted tokens, we train a discriminative model that predicts whether each token in the corrupted input was replaced by a generator sample or not. Thorough experiments demonstrate this new pre-training task is more efficient than MLM because the task is defined over all input tokens rather than just the small subset that was masked out. As a result, the contextual representations learned by our approach substantially outperform the ones learned by BERT given the same model size, data, and compute. The gains are particularly strong for small models; for example, we train a model on one GPU for 4 days that outperforms GPT (trained using 30x more compute) on the GLUE natural language understanding benchmark. Our approach also works well at scale, where it performs comparably to RoBERTa and XLNet while using less than 1/4 of their compute and outperforms them when using the same amount of compute.","url_abs":"https://arxiv.org/abs/2003.10555v1","url_pdf":"https://arxiv.org/pdf/2003.10555v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/google-research/electra","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"unanswered"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/MalteHB/-l-ctra","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/YChen1993/ELECRec","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/bcaitech1/p2-klue-Heeseok-Jeong","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/facebookresearch/multihop_dense_retrieval","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/gregdurrett/nlp-qa-finalproj","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/huggingface/transformers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/jbeno/sentiment","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/lucidrains/electra-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/richarddwang/electra_pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/rwbfd/OpenCompetitionV2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-3.0"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/smallbenchnlp/ELECTRA-DeBERTa","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/stefan-it/europeana-bert","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/2024-MindSpore-1/Code2/tree/main/model-1/electra","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/electra","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/ThilinaRajapakse/simpletransformers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"electra-pre-training-text-encoders-as-1","repo_url":"https://github.com/tensorflow/models/blob/master/official/nlp/tasks/electra_task.py","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"tf","reach":null}],"tasks":[{"task_slug":null,"task_name":"GPU"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"masked-language-modeling","task_name":"Masked Language Modeling"},{"task_slug":"natural-language-understanding","task_name":"Natural Language Understanding"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"sentiment-analysis","task_name":"Sentiment Analysis"}],"methods":[{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bert","method_name":"BERT"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"discriminative-fine-tuning","method_name":"Discriminative Fine-Tuning"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"electra","method_name":"ELECTRA"},{"method_slug":"gpt","method_name":"GPT"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-cosine-annealing","method_name":"Linear Warmup With Cosine Annealing"},{"method_slug":"linear-warmup-with-linear-decay","method_name":"Linear Warmup With Linear Decay"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"roberta","method_name":"RoBERTa"},{"method_slug":"sentencepiece","method_name":"SentencePiece"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"weight-decay","method_name":"Weight Decay"},{"method_slug":"wordpiece","method_name":"WordPiece"},{"method_slug":"xlnet","method_name":"XLNet"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/question-answering-on-quora-question-pairs","task":"Question Answering","dataset":"Quora Question Pairs","model":"ELECTRA","rank_in_archive_order":8,"of":19,"metrics":{"Accuracy":"90.1%"},"uses_additional_data":false},{"leaderboard":"/sota/sentiment-analysis-on-sst-2-binary","task":"Sentiment Analysis","dataset":"SST-2 Binary classification","model":"ELECTRA","rank_in_archive_order":8,"of":87,"metrics":{"Accuracy":"96.9"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2003.10555","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.10555"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/huggingface/transformers","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stefan-it/europeana-bert","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rwbfd/OpenCompetitionV2","reach":{"status":"ok","spdx":"GPL-3.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gregdurrett/nlp-qa-finalproj","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/electra","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucidrains/electra-pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jbeno/sentiment","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/richarddwang/electra_pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/bcaitech1/p2-klue-Heeseok-Jeong","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tensorflow/models/blob/master/official/nlp/tasks/electra_task.py","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ThilinaRajapakse/simpletransformers","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/YChen1993/ELECRec","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/2024-MindSpore-1/Code2/tree/main/model-1/electra","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/facebookresearch/multihop_dense_retrieval","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/smallbenchnlp/ELECTRA-DeBERTa","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MalteHB/-l-ctra","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/electra","reach":null}],"summary":{"ran_draft_wrong":11,"ran":9,"ran_violates":2,"ran_fixture":2,"ran_honours":2,"unverified":14},"by_repo_kind":{"listed":{"samples":36,"ran":22,"repositories":9}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":10,"samples":[{"code_sha256_prefix":"3f0491e137c5b556","entry":"gumbel_noise","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0491e137c5b556"}},{"code_sha256_prefix":"fe88c97941ebd49b","entry":"Classifier","repo":"jbeno/sentiment","repo_kind":"listed","path":"classifier.py","file_url":"https://github.com/jbeno/sentiment/blob/HEAD/classifier.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"fe88c97941ebd49b"}},{"code_sha256_prefix":"31adaef1bf068638","entry":"CustomElectraClassifier","repo":"jbeno/sentiment","repo_kind":"listed","path":"classifier.py","file_url":"https://github.com/jbeno/sentiment/blob/HEAD/classifier.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"31adaef1bf068638"}},{"code_sha256_prefix":"746db01cb1933bb5","entry":"ELECITY","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"746db01cb1933bb5"}},{"code_sha256_prefix":"05b426304336430b","entry":"Electra","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05b426304336430b"}},{"code_sha256_prefix":"eeccb8777414a81a","entry":"Electra","repo":"smallbenchnlp/ELECTRA-DeBERTa","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/smallbenchnlp/ELECTRA-DeBERTa/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eeccb8777414a81a"}},{"code_sha256_prefix":"0e623ffa58c046a7","entry":"HiddenLayerExtractor","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0e623ffa58c046a7"}},{"code_sha256_prefix":"7b1e3bc29ddcc47d","entry":"PoolingLayer","repo":"jbeno/sentiment","repo_kind":"listed","path":"classifier.py","file_url":"https://github.com/jbeno/sentiment/blob/HEAD/classifier.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"7b1e3bc29ddcc47d"}},{"code_sha256_prefix":"476517c90ed9ae4c","entry":"SwishGLU","repo":"jbeno/sentiment","repo_kind":"listed","path":"classifier.py","file_url":"https://github.com/jbeno/sentiment/blob/HEAD/classifier.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"476517c90ed9ae4c"}},{"code_sha256_prefix":"0e085ca2f3d4bb62","entry":"Trainer","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"0e085ca2f3d4bb62"}},{"code_sha256_prefix":"759bed040fc319f3","entry":"get_exp_id","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"pretraining/openwebtext/pretrain.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/pretraining/openwebtext/pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"759bed040fc319f3"}},{"code_sha256_prefix":"e33ada12822bb56c","entry":"get_mask_subset_with_prob","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e33ada12822bb56c"}},{"code_sha256_prefix":"ac6da27d75f60e2b","entry":"get_metric","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ac6da27d75f60e2b"}},{"code_sha256_prefix":"626e63a150cc746f","entry":"get_output_dir","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"pretraining/openwebtext/pretrain.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/pretraining/openwebtext/pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"626e63a150cc746f"}},{"code_sha256_prefix":"983767b34d11c495","entry":"gumbel_noise","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"983767b34d11c495"}},{"code_sha256_prefix":"00982897fc3374b0","entry":"gumbel_sample","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"00982897fc3374b0"}},{"code_sha256_prefix":"340d3b3d2515a22b","entry":"gumbel_sample","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"340d3b3d2515a22b"}},{"code_sha256_prefix":"20b7c6470df6e0be","entry":"idcg_k","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"20b7c6470df6e0be"}},{"code_sha256_prefix":"de0fde92ce293206","entry":"list_parameters","repo":"richarddwang/electra_pytorch","repo_kind":"listed","path":"finetune.py","file_url":"https://github.com/richarddwang/electra_pytorch/blob/HEAD/finetune.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"de0fde92ce293206"}},{"code_sha256_prefix":"c01e5c8df433613c","entry":"log","repo":"lucidrains/electra-pytorch","repo_kind":"listed","path":"electra_pytorch/electra_pytorch.py","file_url":"https://github.com/lucidrains/electra-pytorch/blob/HEAD/electra_pytorch/electra_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c01e5c8df433613c"}},{"code_sha256_prefix":"6269424d608eba34","entry":"log","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"6269424d608eba34"}},{"code_sha256_prefix":"b195c0bc58a304ad","entry":"mask_tokens","repo":"richarddwang/electra_pytorch","repo_kind":"listed","path":"pretrain.py","file_url":"https://github.com/richarddwang/electra_pytorch/blob/HEAD/pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b195c0bc58a304ad"}},{"code_sha256_prefix":"5573a79bdc0a0a09","entry":"mask_with_tokens","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"5573a79bdc0a0a09"}},{"code_sha256_prefix":"8667036db81df043","entry":"ndcg_k","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8667036db81df043"}},{"code_sha256_prefix":"0a27e49623646a01","entry":"prob_mask_like","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"0a27e49623646a01"}},{"code_sha256_prefix":"a7d3c6223f6b59ea","entry":"recall_at_k","repo":"YChen1993/ELECRec","repo_kind":"listed","path":"src/trainers.py","file_url":"https://github.com/YChen1993/ELECRec/blob/HEAD/src/trainers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a7d3c6223f6b59ea"}},{"code_sha256_prefix":"290ce73f2b0467c1","entry":"CheckChangeOnCommit","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"290ce73f2b0467c1"}},{"code_sha256_prefix":"3a45861a4eafa4d4","entry":"CheckChangeOnUpload","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3a45861a4eafa4d4"}},{"code_sha256_prefix":"9a9a0f483cc08e79","entry":"ConvertToMSBuildSettings","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a9a0f483cc08e79"}},{"code_sha256_prefix":"b38ac6cb5ce30811","entry":"ConvertVCMacrosToMSBuild","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b38ac6cb5ce30811"}},{"code_sha256_prefix":"3cc9d01eacec4925","entry":"ElectraForSequenceClassification","repo":"ThilinaRajapakse/simpletransformers","repo_kind":"listed","path":"simpletransformers/classification/transformer_models/electra_model.py","file_url":"https://github.com/ThilinaRajapakse/simpletransformers/blob/HEAD/simpletransformers/classification/transformer_models/electra_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3cc9d01eacec4925"}},{"code_sha256_prefix":"f8d14e7b22f1d071","entry":"ElectraQAService","repo":"okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset","repo_kind":"listed","path":"web/backend/app/services/ElectraService.py","file_url":"https://github.com/okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset/blob/HEAD/web/backend/app/services/ElectraService.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8d14e7b22f1d071"}},{"code_sha256_prefix":"fe0cfcdd4f533d4a","entry":"FixVCMacroSlashes","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe0cfcdd4f533d4a"}},{"code_sha256_prefix":"8b5c77d9bafa4f74","entry":"GetPreferredTryMasters","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/PRESUBMIT.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b5c77d9bafa4f74"}},{"code_sha256_prefix":"3942a8afb86f96db","entry":"InsertLargePdbShims","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3942a8afb86f96db"}},{"code_sha256_prefix":"b9dd04206384eff8","entry":"MakeGuid","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b9dd04206384eff8"}},{"code_sha256_prefix":"24796fea5f721e97","entry":"SelectVisualStudioVersion","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24796fea5f721e97"}},{"code_sha256_prefix":"dbc5cf3cd537a793","entry":"ShardTargets","repo":"okanvk/ENELPI---Soru-Cevap-Sistemi","repo_kind":"listed","path":"web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py","file_url":"https://github.com/okanvk/ENELPI---Soru-Cevap-Sistemi/blob/HEAD/web/frontend/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dbc5cf3cd537a793"}},{"code_sha256_prefix":"b03d45af664a39e3","entry":"create_int_feature","repo":"MalteHB/-l-ctra","repo_kind":"listed","path":"electra_google/build_pretraining_dataset.py","file_url":"https://github.com/MalteHB/-l-ctra/blob/HEAD/electra_google/build_pretraining_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b03d45af664a39e3"}},{"code_sha256_prefix":"c8b43ae9d1268761","entry":"get_electra_train_flops","repo":"MalteHB/-l-ctra","repo_kind":"listed","path":"electra_google/flops_computation.py","file_url":"https://github.com/MalteHB/-l-ctra/blob/HEAD/electra_google/flops_computation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8b43ae9d1268761"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}