zshsh98 / mmd-mp Goto Github PK
View Code? Open in Web Editor NEWThis is the source code for Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancy (ICLR2024).
License: MIT License
This is the source code for Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancy (ICLR2024).
License: MIT License
The default of the original parser's of the argument "text_generated_model_name" is "gpt2", and it would have error when we try to traversal it, like key 'g' is not exist. So I assume it should be as an element, like alter to : default = ['gpt2'] ?
Token indices sequence length is longer than the specified maximum sequence length for this model (749 > 512). Running this sequence through the model will result in indexing errors
Traceback (most recent call last):
File "run_meta_mmd_trans.py", line 925, in
base_model, base_tokenizer = load_base_model_and_tokenizer(args.base_model_name)
File "run_meta_mmd_trans.py", line 531, in load_base_model_and_tokenizer
base_model = transformers.AutoModelForCausalLM.from_pretrained(model_path_dit[name])
File "/root/miniconda3/envs/detectGPT/lib/python3.7/site-packages/transformers/models/auto/auto_factory.py", line 485, in from_pretrained
pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs
File "/root/miniconda3/envs/detectGPT/lib/python3.7/site-packages/transformers/modeling_utils.py", line 2604, in from_pretrained
state_dict = load_state_dict(resolved_archive_file)
File "/root/miniconda3/envs/detectGPT/lib/python3.7/site-packages/transformers/modeling_utils.py", line 450, in load_state_dict
with safe_open(checkpoint_file, framework="pt") as f:
OSError: No such device (os error 19)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.