Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<div align="center">
|
| 2 |
|
| 3 |
# pico-type ๐
|
| 4 |
|
| 5 |
-
**A tiny byte-level multi-head content classifier** โ ~1.5M params, ~
|
| 6 |
|
| 7 |
Classifies any content into **7 categories** from raw bytes: coarse type, modality, subtype, code language, text language, file MIME, and risk flags.
|
| 8 |
|
|
@@ -31,13 +49,13 @@ Classifies any content into **7 categories** from raw bytes: coarse type, modali
|
|
| 31 |
|------|---------|----------|
|
| 32 |
| coarse | 12 | **100%** |
|
| 33 |
| modality | 8 | **100%** |
|
| 34 |
-
| subtype | 24 | **
|
| 35 |
-
| code_lang | 62 | **
|
| 36 |
-
| text_lang | 30 | **
|
| 37 |
| file_mime | 90 | **100%** |
|
| 38 |
| risk (mAP) | 6 | **100%** |
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
## ๐ Quick Start
|
| 43 |
|
|
@@ -82,10 +100,10 @@ Total parameters: **1.43M** (tiny) / **1.45M** (small) / **1.48M** (base) / **1.
|
|
| 82 |
|
| 83 |
| Tier | Dim | Params | ONNX Size |
|
| 84 |
|------|-----|--------|-----------|
|
| 85 |
-
| tiny | 16 | 1.43M |
|
| 86 |
-
| small | 64 | 1.45M |
|
| 87 |
-
| base | 192 | 1.48M |
|
| 88 |
-
| pro | 576 | 1.56M |
|
| 89 |
|
| 90 |
All tiers share the same trunk; only the final linear layers differ.
|
| 91 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- multilingual
|
| 6 |
+
tags:
|
| 7 |
+
- byte-level
|
| 8 |
+
- content-classification
|
| 9 |
+
- onnx
|
| 10 |
+
- edge-ai
|
| 11 |
+
- matryoshka
|
| 12 |
+
pipeline_tag: text-classification
|
| 13 |
+
library_name: generic
|
| 14 |
+
inference:
|
| 15 |
+
parameters:
|
| 16 |
+
provider: CPUExecutionProvider
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
<div align="center">
|
| 20 |
|
| 21 |
# pico-type ๐
|
| 22 |
|
| 23 |
+
**A tiny byte-level multi-head content classifier** โ ~1.5M params, ~209KB ONNX, <6ms inference.
|
| 24 |
|
| 25 |
Classifies any content into **7 categories** from raw bytes: coarse type, modality, subtype, code language, text language, file MIME, and risk flags.
|
| 26 |
|
|
|
|
| 49 |
|------|---------|----------|
|
| 50 |
| coarse | 12 | **100%** |
|
| 51 |
| modality | 8 | **100%** |
|
| 52 |
+
| subtype | 24 | **98.4%** |
|
| 53 |
+
| code_lang | 62 | **53.9%** |
|
| 54 |
+
| text_lang | 30 | **100%** |
|
| 55 |
| file_mime | 90 | **100%** |
|
| 56 |
| risk (mAP) | 6 | **100%** |
|
| 57 |
|
| 58 |
+
_1000 evaluation samples, 9000 training steps (5000 synthetic + 4000 real-code fine-tune), base tier, ~5.6ms inference._
|
| 59 |
|
| 60 |
## ๐ Quick Start
|
| 61 |
|
|
|
|
| 100 |
|
| 101 |
| Tier | Dim | Params | ONNX Size |
|
| 102 |
|------|-----|--------|-----------|
|
| 103 |
+
| tiny | 16 | 1.43M | 207 KB |
|
| 104 |
+
| small | 64 | 1.45M | 207 KB |
|
| 105 |
+
| base | 192 | 1.48M | 209 KB |
|
| 106 |
+
| pro | 576 | 1.56M | 206 KB |
|
| 107 |
|
| 108 |
All tiers share the same trunk; only the final linear layers differ.
|
| 109 |
|