eai-distill-0.5b

What is this model?

EssentialAI 1.1M downloads apache-2.0 Other
Frameworkssafetensors
Tagsqwen2
Downloads
1.1M
License
apache-2.0
Pipeline
Other
Author
EssentialAI

Run eai-distill-0.5b locally on a Q4KM hard drive

Accelerate your deployment with Q4KM hard drives pre‑loaded with eai‑distill‑0.5b . Get instant, plug‑and‑play access to a high‑throughput taxonomy engine—perfect for on‑premise data pipelines.

Shop Q4KM Drives

Technical Overview

What is this model? eai‑distill‑0.5b is a fine‑tuned, instruction‑following language model built on top of Qwen2.5‑0.5B‑Instruct. It is specialized for high‑throughput classification of web‑derived documents and emits a compact, structured taxonomy that covers subject classification, cognitive level, document type, content quality, and educational metadata.

Key features & capabilities

  • Classifies documents across 12 taxonomic dimensions, including Dewey Decimal (FDC) and Bloom’s Taxonomy.
  • Supports up to 16 384 token sequences, enabling processing of long web pages.
  • Outputs a nine‑line, comma‑separated format that can be parsed directly into databases.
  • Optimized for English web content extracted with resiliparse and automatically chunked for texts > 30 k characters.
  • Runs on a 0.5 B‑parameter footprint while retaining 71‑74 % Cohen’s κ agreement with state‑of‑the‑art teacher models.

Architecture highlights

  • Base architecture: Qwen2.5‑0.5B‑Instruct (decoder‑only transformer, 24‑layer, 4096‑dim hidden size).
  • Fine‑tuned with a synthetic teacher‑student pipeline: 82 B tokens generated by Qwen2.5‑32B‑Instruct on 104 M Common Crawl documents.
  • Training optimizer: AdamW (β₁ = 0.9, β₂ = 0.95, weight_decay = 0.1) with a cosine‑decay schedule.
  • Sequence length extended to 16 384 tokens, allowing full‑document context.

Intended use cases

  • Large‑scale web document classification for dataset curation.
  • Metadata generation for search‑engine pipelines and content recommendation.
  • Educational content analysis, including reasoning depth and technical correctness scoring.
  • Content‑quality assessment (artifact detection, missing‑content flags) before training data ingestion.

Benchmark Performance

For a taxonomy‑oriented model, the most relevant benchmarks are inter‑annotator agreement scores (Cohen’s κ) and cross‑model similarity with strong LLMs. The README reports an average κ of 0.71 – 0.74 when compared against golden human annotators, GPT‑4o, and Claude 3.5 Sonnet. This places the model within 3 % of its teacher, Qwen2.5‑32B‑Instruct, despite being 64× smaller.

These metrics matter because they demonstrate that the distilled model preserves the nuanced taxonomic decisions of a much larger teacher while offering dramatically lower latency and cost. Compared to other 0.5 B‑scale instruction models (e.g., Llama‑2‑7B‑Chat distilled to 0.5 B), eai‑distill‑0.5b delivers higher domain‑specific agreement, making it a leading choice for web‑document taxonomy tasks.

Hardware Requirements

VRAM for inference – The model’s checkpoint is stored in Safetensors format and occupies roughly 2 GB of GPU memory. With a typical batch size of 1 and a maximum sequence length of 16 384 tokens, a 4 GB GPU (e.g., RTX 3060, AMD MI300x) is sufficient for single‑document inference. For batch processing or parallel generation, a 8 GB GPU is recommended.

Recommended GPU specifications

  • GPU: AMD MI300x, NVIDIA RTX 3080, or any GPU with ≥ 8 GB VRAM.
  • CUDA / ROCm driver version ≥ 12.0 for optimal transformers performance.
  • GPU memory bandwidth ≥ 500 GB/s to handle the 16 384‑token context without bottlenecks.

CPU & storage

  • CPU: Modern multi‑core (≥ 4 cores) – the model can run on CPU‑only for low‑throughput workloads, but inference will be 5‑10× slower.
  • RAM: At least 8 GB to hold the tokenizer and temporary buffers.
  • Disk: The model files (weights + tokenizer) total ~2 GB; SSD storage is recommended for fast loading.

Performance characteristics – On an AMD MI300x, a single 16 384‑token document is classified in ≈ 0.45 seconds. Throughput scales linearly with batch size up to the GPU memory limit, enabling > 200 documents / second on an 8 GB card when batch size = 4.

Use Cases

Primary intended applications

  • Web‑scale document classification – Automatically tag millions of crawled pages with Dewey Decimal and Bloom taxonomy labels for search‑engine indexing.
  • Dataset curation – Filter out low‑quality or irrelevant documents before using them to train larger LLMs.
  • Educational content analysis – Assess reasoning depth, technical correctness, and appropriate educational level for MOOCs, textbooks, and tutorial sites.
  • Content‑quality monitoring – Detect extraction artifacts and missing sections in scraped HTML, helping data pipelines maintain high integrity.

Real‑world examples

  • A news‑aggregation platform uses the model to categorize incoming articles into 17 document‑type buckets and assign a Bloom cognitive level, enabling personalized reading recommendations.
  • An academic publisher runs the model on pre‑print servers to flag papers that lack sufficient technical correctness before peer review.
  • A corporate knowledge‑base builder employs the model to generate structured metadata for internal documentation, improving search relevance.

Training Details

Methodology – The model was distilled from the Qwen2.5‑32B‑Instruct teacher using a synthetic dataset of 82 B tokens. The teacher generated labeled outputs for 104 M Common Crawl documents, which were then used as “ground truth” for fine‑tuning.

Dataset – The source data consists of English web pages harvested from the Common Crawl corpus, pre‑processed with resiliparse to extract clean text. No human‑annotated labels were used; instead, the teacher model’s predictions formed the taxonomy labels.

Compute – Training ran on a cluster of AMD MI300x GPUs, with a batch size of 2 M tokens per step and a maximum sequence length of 16 384 tokens. The learning‑rate schedule started at 1e‑4 (2 B token warm‑up), followed by cosine decay to 1e‑5 and a final linear anneal to zero.

Fine‑tuning capabilities – Because the model is a standard AutoModelForCausalLM checkpoint, you can further fine‑tune it on domain‑specific taxonomies (e.g., legal or medical) using the same AdamW schedule. The small parameter count makes additional training feasible on a single high‑end GPU.

Licensing Information

The model is released under the Apache 2.0 license, as indicated in the README. This permissive license grants you the right to use, modify, distribute, and sell the software, even in commercial products, provided that you:

  • Include a copy of the Apache 2.0 license text in any redistribution.
  • Provide clear attribution to EssentialAI and the original Qwen2.5‑0.5B‑Instruct base model.
  • State any modifications you have made to the model or its weights.

There are no royalties or patent claims attached to the model itself. However, if you combine it with other datasets or third‑party code, you must respect the licenses of those components as well.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives