No project description provided
Project description
SPOT
Spot spots LLM-based texts
Use this repo
conda create -n spot python=3.8 --y
conda activate spot
poetry install
Installation
poetry add spot
Usage
from spot import MistralSpotter
s = MistralSpotter("YourHuggingfaceToken")
s.is_human("""The wide acceptance of large language models (LLMs) has unlocked new applica-
tions and social risks. Popular countermeasures aim at detecting misinformation,
usually involve domain specific models trained to recognize the relevance of any
information. Instead of evaluating the validity of the information, we propose to
investigate LLM generated text from the perspective of trust. In this study, we
define trust as the ability to know if an input text was generated by a LLM or a
human. To do so, we design SPOT, an efficient method, that classifies the source
of any, standalone, text input based on originality score. This score is derived from
the prediction of a given LLM to detect other LLMs. We empirically demonstrate
the robustness of the method to the architecture, training data, evaluation data, task
and compression of modern LLMs.""") # => true
from spot import Opt125Spotter
s = Opt125Spotter()
s.is_human("""The wide acceptance of large language models (LLMs) has unlocked new applica-
tions and social risks. Popular countermeasures aim at detecting misinformation,
usually involve domain specific models trained to recognize the relevance of any
information. Instead of evaluating the validity of the information, we propose to
investigate LLM generated text from the perspective of trust. In this study, we
define trust as the ability to know if an input text was generated by a LLM or a
human. To do so, we design SPOT, an efficient method, that classifies the source
of any, standalone, text input based on originality score. This score is derived from
the prediction of a given LLM to detect other LLMs. We empirically demonstrate
the robustness of the method to the architecture, training data, evaluation data, task
and compression of modern LLMs.""") # => true
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spot_llm-0.4.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file spot_llm-0.4.0.tar.gz
.
File metadata
- Download URL: spot_llm-0.4.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.19 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f361d9d1b8824e8016737505fe839c1fcaee47cc2fc55a6954598881fe35c3 |
|
MD5 | c4010f54f0708186d963855f4969da5b |
|
BLAKE2b-256 | 6eee3d09dc95f5edb7762a94c40793a99b33c08afdb193e303aa5618aeecbda9 |
File details
Details for the file spot_llm-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: spot_llm-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.19 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830ddd9e6f3a478fe847f33f4c71c4a5a51795d9492d8d8aec830ef413c8bdd0 |
|
MD5 | 435900731af5a0ff5d4b08ccaa113a73 |
|
BLAKE2b-256 | 5746d4b5753aaf57c48b5e705b7845f2fcf9551ac32a43fff94f34d71df2f818 |