anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Tells whether English text is human-written, AI-written or AI-edited and labels each sentence. For editors, teachers and researchers who want a signal, not proof, about how a text was made.
Mesmer AI Detector 4B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install torch numpy tokenizers safetensors emoji huggingface_hub pip install fla-core # optional: faster GPU kernels (otherwise pure PyTorch; CPU works too, but slowly) hf download mesmertech/mesmer-ai-detector-4b mesmer_detector.py --local-dir .
Mesmer AI Detector 4B checks English text and says whether it looks human-written, AI-written or AI-edited, meaning human writing that an AI polished. It also labels each sentence. It is fine-tuned from Qwen3.5-4B-Base, and a bigger 9B sibling exists for higher accuracy.
It suits editors, teachers and researchers who want a signal about how a piece of English text was produced.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Publishing | Editors | Screen submissions for machine-written passages | Checking a freelance article sentence by sentence |
| Education | Teachers | Look at essays alongside other evidence | Reviewing a student essay for AI-edited passages |
| Research | Detection researchers | Compare detectors on public benchmarks | Re-running tests on Epoch-style imitation texts |
You can skip it if your text is not in English, or if you need a verdict you can treat as proof, since it does flag some human writing.
It runs as a Python script or library on your own machine, with a GPU preferred. The card says CPU works but slowly, and it points to a hosted Space for trying it without a GPU.
| Use case | Who | What they get back |
|---|---|---|
| Whole-text check | Editors | A human, AI-written or AI-edited verdict with probabilities |
| Sentence labelling | Teachers | Each sentence marked and shaded by the model |
| Benchmark testing | Researchers | Scores to compare against other detectors |
You need Python and the libraries listed in the quickstart. An optional package adds faster GPU kernels, and without it the code falls back to plain PyTorch. Hugging Face lists about 8.4 GB in BF16.
pip install torch numpy tokenizers safetensors emoji huggingface_hub pip install fla-core # optional: faster GPU kernels (otherwise pure PyTorch; CPU works too, but slowly) hf download mesmertech/mesmer-ai-detector-4b mesmer_detector.py --local-dir . python mesmer_detector.py --model mesmertech/mesmer-ai-detector-4b "Paste the text to check here."
Run the script with your text, or load the Detector class in Python. Passing int8=True loads 8-bit weights that take about half the memory.
from mesmer_detector import Detector
det = Detector.from_pretrained("mesmertech/mesmer-ai-detector-4b") # int8=True: 8-bit weights, about half the memory| Tool | What it does |
|---|---|
| mesmer_detector.py | Command line script that scores the text you pass in |
| Detector | Python class that loads the model for your own code |
You paste a paragraph into the command line script. It returns whether the text reads as human-written, AI-written or AI-edited, with a label for every sentence.
If you are new, treat the result as a hint, not proof. Try it on a paragraph you wrote yourself and one from a chatbot to see how it labels each.
If you know the field, it is a 4.2B model with a three-way output. On the Open Pangram in-domain set it scores 0.918 ternary accuracy, close to the closed Pangram 3.2 at 0.920. The card says it flags more human writing than Pangram, for example 0.044 false positives on non-native English essays.
The card ranks it above every other open-weight detector it compared, and concedes a higher false-flag rate on human text.
Tells whether English text is human-written, AI-written or AI-edited and labels each sentence. For editors, teachers and researchers who want a signal, not proof, about how a text was made.
Made by mesmertech on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Mesmer AI Detector 4B checks English text and says whether it looks human-written, AI-written or AI-edited, meaning human writing that an AI polished. It also labels each sentence. It is fine-tuned from Qwen3.5-4B-Base, and a bigger 9B sibling exists for higher accuracy.
Who it suits: It suits editors, teachers and researchers who want a signal about how a piece of English text was produced.
Industry | Who uses it | How they use it | Example
Publishing | Editors | Screen submissions for machine-written passages | Checking a freelance article sentence by sentence
Education | Teachers | Look at essays alongside other evidence | Reviewing a student essay for AI-edited passages
Research | Detection researchers | Compare detectors on public benchmarks | Re-running tests on Epoch-style imitation texts
You can skip it if your text is not in English, or if you need a verdict you can treat as proof, since it does flag some human writing.
Where to use it: It runs as a Python script or library on your own machine, with a GPU preferred. The card says CPU works but slowly, and it points to a hosted Space for trying it without a GPU.
Use case | Who | What they get back
Whole-text check | Editors | A human, AI-written or AI-edited verdict with probabilities
Sentence labelling | Teachers | Each sentence marked and shaded by the model
Benchmark testing | Researchers | Scores to compare against other detectors
How to set it up: You need Python and the libraries listed in the quickstart. An optional package adds faster GPU kernels, and without it the code falls back to plain PyTorch. Hugging Face lists about 8.4 GB in BF16.
pip install torch numpy tokenizers safetensors emoji huggingface_hub
pip install fla-core # optional: faster GPU kernels (otherwise pure PyTorch; CPU works too, but slowly)
hf download mesmertech/mesmer-ai-detector-4b mesmer_detector.py --local-dir .
python mesmer_detector.py --model mesmertech/mesmer-ai-detector-4b "Paste the text to check here."
How to use it: Run the script with your text, or load the Detector class in Python. Passing int8=True loads 8-bit weights that take about half the memory.
from mesmer_detector import Detector
det = Detector.from_pretrained("mesmertech/mesmer-ai-detector-4b") # int8=True: 8-bit weights, about half the memory
Tool | What it does
mesmer_detector.py | Command line script that scores the text you pass in
Detector | Python class that loads the model for your own code
Example: You paste a paragraph into the command line script. It returns whether the text reads as human-written, AI-written or AI-edited, with a label for every sentence.
For newcomers and experts: If you are new, treat the result as a hint, not proof. Try it on a paragraph you wrote yourself and one from a chatbot to see how it labels each.
If you know the field, it is a 4.2B model with a three-way output. On the Open Pangram in-domain set it scores 0.918 ternary accuracy, close to the closed Pangram 3.2 at 0.920. The card says it flags more human writing than Pangram, for example 0.044 false positives on non-native English essays.
English text goes in
Model scores the whole text
Three-way label with probabilities
Each sentence labelled and shaded
Good to know: The card ranks it above every other open-weight detector it compared, and concedes a higher false-flag rate on human text.
Title: In-domain ternary accuracy
Open Pangram: 0.895
Mesmer 4B: 0.918
Pangram 3.2 closed: 0.920
Mesmer 9B: 0.923
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download mesmertech/mesmer-ai-detector-4b
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Mesmer AI Detector 4B This page | 68 | 3 | 4.2B | cc-by-nc-sa-4.0 | |
| bge-reranker-v2-m3Shares text-classification · safetensors | 14,685,230 | 1,301 | 568M | apache-2.0 | |
| deberta-v3-base-prompt-injection-v2Shares text-classification · safetensors | 476,298 | 129 | 184M | apache-2.0 | |
| GLiNER2.5-DecideShares text-classification · safetensors | 89,759 | 457 | 486M | apache-2.0 | |
| Kev-4BShares text-classification · safetensors | 12,499 | 175 | — | apache-2.0 | |
| pplx-decider-flash-v1.2Shares text-classification · safetensors | 7,052 | 78 | 4.5B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.