Views
No views yet
| link | |
|---|---|
| MAGA | https://huggingface.co/datasets/anyangsong/MAGA |
| MAGA-cn | https://huggingface.co/datasets/anyangsong/MAGA-cn |
| MGT-Detector-RB-MAGA | https://huggingface.co/anyangsong/MGT-Detector-RB-MAGA |
| MGT-Detector-RB-MAGA-cn | https://huggingface.co/anyangsong/MGT-Detector-RB-MAGA-cn |
| MGT-Detector-RB-MGB | https://huggingface.co/anyangsong/MGT-Detector-RB-MGB |
| MGT-Detector-RB-MGB-cn | https://huggingface.co/anyangsong/MGT-Detector-RB-MGB-cn |
transformers with pip install transformers. Then,1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
3tokenizer = AutoTokenizer.from_pretrained("anyangsong/MGT-Detector-RB-MAGA-cn")
4model = AutoModelForSequenceClassification.from_pretrained("anyangsong/MGT-Detector-RB-MAGA-cn").to(device)1model.eval()
2texts = [
3 "这是一段人类文本。",
4 "这不是一段机器文本。"
5]
6inputs = tokenizer(texts, padding=True, truncation=True, return_tensors="pt").to(device)
7with torch.no_grad():
8 outputs = model(**inputs)
9 probs = outputs.logits.softmax(dim=-1)
10 human_probs, machine_probs = probs[:, 0], probs[:, 1]is_machine = machine_probs >= 0.51@misc{song2026maga,
2 title={MAGA-Bench: Machine-Augment-Generated Text via Alignment Detection Benchmark},
3 author={Anyang Song and Ying Cheng and Yiqian Xu and Rui Feng},
4 year={2026},
5 eprint={2601.04633},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2601.04633},
9}