Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
v0.1 was trained entirely on
synthetic data
. v0.2 is trained on
real-world code and text
— and the results speak for themselves:
v0.1 baseline
: trained on template-generated synthetic code/text — essentially a placeholder model. v0.2 trained on 8,709 real GitHub code samples and 5,000 real Wikipedia articles. The real-world improvements are dramatic because semantic understanding (is this Python or Rust code? what language is this Spanish text?) cannot be captured by templates alone.
Note on format heads
: coarse, modality, subtype, file_mime, and risk remain at 100% because they classify
structural byte patterns
(magic numbers, file signatures, syntax markers, secret formats). These are deterministic and exhaustively covered by synthetic templates. Real data would not improve them — this is by design, not a limitation. See the
Trust section
for details.
Inference Performance
Metric
Value
CPU inference (base tier, 1024 bytes)
~10ms
CPU inference (tiny tier, 1024 bytes)
~6ms
GPU inference
<1ms
Model load time (ONNX)
~20ms
Peak memory usage
~15MB
🧠 Architecture
pico-type operates
directly on raw UTF-8 bytes
— no tokenizer, no vocabulary files, no subword embeddings. Just pure bytes.
Key Design Decisions
Decision
Why
No tokenizer
Eliminates dependency on vocabulary files, supports ALL languages/scripts, works on raw binary data
Byte-level
Operates on UTF-8 bytes directly — handles 256 possible values, no OOV
Japanese, Russian, Thai, Korean, Ukrainian, Serbian
100%
•
Chinese
98%
•
Romanian
98%
•
Croatian
98%
•
Danish
98%
•
Norwegian
92%
•
Indonesian
92%
•
Malay
70%
27 of 30 languages ≥92% accuracy.
Malay (70%) needs more diverse training data.
🎯 Use Cases
🔐 Clipboard Security & PII Detection
Detect API keys, passwords, SSH keys, JWTs, and other secrets in clipboard content before pasting into untrusted environments. Integrates with macOS, Linux, and clipboard managers.
📂 File Type & MIME Classification
Identify file types from content alone — no filename or extension needed. Works on raw bytes from any source: uploads, downloads, streams, network traffic.
💻 IDE & Code Editor Integration
Automatic language detection for syntax highlighting, code formatting, and linter selection. No file extension required — works on code snippets from any source.
🌐 Content Moderation & Filtering
Classify content type in chat systems, forums, and social media. Detect code injection, secret leakage, and inappropriate content.
🏢 Enterprise Document Pipeline
Route documents by type, detect PII/credentials, classify content modality — all in a single forward pass. Suitable for serverless deployment (Cloudflare Workers, AWS Lambda).
🤖 LLM Tool Use & MCP
MCP server
built-in. LLMs can call pico-type to classify clipboard content, detect code languages, check for secrets. Zero dependencies beyond ONNX Runtime.
🚀 Quick Start
Installation
pip install picotype
# Or with ONNX Runtime for hardware-accelerated inference:
pip install 'picotype[onnx]'
CLI Usage
# Classify a code snippetecho"def hello():\n return 42" | picotype --pretty
# Classify a file
picotype --file document.txt --tier base
# Classify clipboard content (macOS)
picotype --clip
# Use tiny tier for maximum speed
picotype --tier tiny
# Output as JSON for scriptingecho"print('hello')" | picotype --json
Python API
from model.pico_type.cli import load_onnx_model, run_onnx
# Load model (downloads ONNX automatically if not cached)
session = load_onnx_model("base", "checkpoints")
# Classify content
result = run_onnx(session, "def hello(): pass")
print(result["coarse"]) # {'label': 'code', 'confidence': 0.99}print(result["code_lang"]) # {'label': 'python', 'confidence': 0.87}print(result["text_lang"]) # {'label': None, 'confidence': 0} (not text)print(result["risk"]) # {} (no secrets detected)
Adding real data to these heads would risk
noise injection and accuracy regression
without any benefit. The 100% scores are correct and expected — they reflect comprehensive synthetic coverage, not a benchmark limitation.
📈 v0.1 vs v0.2 Comparison
Aspect
v0.1
v0.2
Training data
100% synthetic
50% real + 50% synthetic
Code samples
Template-generated
8,709 GitHub code samples
Text samples
Template-generated
5,000 Wikipedia articles
Training steps
1,700
6,700 (continued from v0.1)
Code language accuracy
3.0%
60.3%
Text language accuracy
19.0%
98.3%
Code languages
62
62 (52 real + 10 synthetic)
Text languages
30
30
Evaluation
Synthetic holdout
Real-world (The Heap + Wikipedia)
ONNX size
~200KB
~200KB (same architecture)
Inference speed
<12ms
<12ms
⚔️ Benchmarks vs Alternative Approaches
Code Language Detection
Model
Type
Size
Languages
Accuracy¹
Inference
pico-type v0.2
🔥
Byte-level neural
~200 KB
62
60.3%
<12ms
GitHub Linguist
Regex + heuristics
~15 MB
600+
~85%²
~50ms
Pygments
Lexer-based
~10 MB
500+
~90%²
~100ms
fastText (lid.176)
n-gram linear
~1 MB
176
~25%³
~5ms
pico-type v0.1
Byte-level neural
~200 KB
62
3.0%
<12ms
¹ Evaluated on The Heap (24 languages, 50 samples each) — real-world code, not synthetic.
² Linguist and Pygments use file extensions + full content parsing, giving them an advantage on code they've seen before. They are not directly comparable as they are full parsers, not lightweight classifiers.
³ fastText was not designed for code language detection; included for size reference.
Key insight
: pico-type is
50× smaller
than Linguist and
70× faster
than Pygments, while being the only model in this comparison that runs in
under 200KB
and requires
no file extensions or grammar files
. It classifies code from raw bytes alone.
Text Language Detection
Model
Type
Size
Languages
Accuracy¹
Inference
pico-type v0.2
🌟
Byte-level neural
~200 KB
30
98.3%
<12ms
fastText (lid.176)
n-gram linear
~1 MB
176
~95%
~5ms
CLD2
Rule-based
~1.2 MB
83
~90%
~3ms
langdetect
Character n-gram
~500 KB
55
~85%
~50ms
Lingua (Rust)
N-gram + rules
~2 MB
75
~91%
~20ms
pico-type v0.1
Byte-level neural
~200 KB
30
19.0%
<12ms
¹ Evaluated on Wikipedia (30 languages, 50 samples each) — real-world text, not synthetic.
Key insight
: pico-type v0.2 achieves
98.3% accuracy
— comparable to fastText — while being
5× smaller (200KB vs 1MB)
. Unlike CLD2 and langdetect, it requires
no language-specific heuristics or rules
. Everything is learned from data.
Why No One Model Does What pico-type Does
Capability
pico-type
fastText
Linguist
CLD2
Code language detection
✅ 62 langs
❌
✅ 600+
❌
Text language detection
✅ 30 langs
✅ 176
❌
✅ 83
Content type (coarse)
✅ 12 classes
❌
❌
❌
File format (MIME)
✅ 90 types
❌
✅ via filename
❌
Secret / PII detection
✅ 6 classes
❌
❌
❌
Modality detection
✅ 8 classes
❌
❌
❌
Subtype detection
✅ 24 classes
❌
❌
❌
Model size
~200 KB
~1 MB
~15 MB
~1.2 MB
No tokenizer
✅
✅
✅
✅
Single forward pass
✅ 7 heads
❌ per task
❌ per task
❌ per task
ONNX portable
✅
❌
❌
❌
MCP server included
✅
❌
❌
❌
pico-type is unique
: it's the only model that performs
7 classification tasks in a single forward pass
from raw bytes, in under
200KB
and
12ms
— and the only one that detects both code language AND text language AND file type AND secrets simultaneously.
pico-type-v02 huggingface.co is an AI model on huggingface.co that provides pico-type-v02's model effect (), which can be used instantly with this eulogik pico-type-v02 model. huggingface.co supports a free trial of the pico-type-v02 model, and also provides paid use of the pico-type-v02. Support call pico-type-v02 model through api, including Node.js, Python, http.
pico-type-v02 huggingface.co is an online trial and call api platform, which integrates pico-type-v02's modeling effects, including api services, and provides a free online trial of pico-type-v02, you can try pico-type-v02 online for free by clicking the link below.
eulogik pico-type-v02 online free url in huggingface.co:
pico-type-v02 is an open source model from GitHub that offers a free installation service, and any user can find pico-type-v02 on GitHub to install. At the same time, huggingface.co provides the effect of pico-type-v02 install, users can directly use pico-type-v02 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.