CoolFace
Modelpublic

Jaymerry/mistral-7b-itis-taxonomy-slm-v3

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes41downloads
Model Card

<img src="https://cdn-uploads.huggingface.co/production/uploads/67c8730f98b8e1b9850bb24e/S6v6QzWqr5dvY-KS6V9Mf.png" width="400">

ITIS Taxonomy SLM (Mistral 7B Fine-Tuned)

A lightweight Small Language Model (SLM) fine-tuned for taxonomy classification, based on Mistral-7B and optimized for local inference (GGUF). ๐Ÿ‘‰ Use this model as:

  • โ€”an assistant
  • โ€”a formatter
  • โ€”a lightweight offline tool

๐Ÿ‘‰ Do NOT use it as:

  • โ€”a replacement for ITIS
  • โ€”a source of scientific truth without verification

<img src="https://cdn-uploads.huggingface.co/production/uploads/67c8730f98b8e1b9850bb24e/S_yqEGRhpoWKTVwI-bwsZ.png" width="800">


โš ๏ธ Disclaimer

This model is not an authoritative source for full taxonomic lineage.

While it often produces well-structured outputs, individual lineage relationships may be incorrect.


Overview

This model is a domain-specific Small Language Model (SML) fine-tuned on structured data derived from the Integrated Taxonomic Information System (ITIS).

It explores how a relatively small model (~7B parameters) can perform on:

  • โ€”structured tasks
  • โ€”stable datasets
  • โ€”domain-specific reasoning

The goal is not to replace large models, but to demonstrate a lightweight, offline-capable alternative for constrained use cases.


Key Characteristics

  • โ€”Base model: Mistral 7B Instruct
  • โ€”Fine-tuning: QLoRA (4-bit)
  • โ€”Dataset: ~35K ITIS-derived samples
  • โ€”Quantization: GGUF (Q5_K_M)
  • โ€”Domain: Biological taxonomy
  • โ€”Designed for: offline / controlled environments

What This Model Does Well

This model performs best on short, structured outputs:

  • โ€”โœ… Taxonomic rank identification
  • โ€”โœ… Parent taxon identification
  • โ€”โœ… Scientific โ†” common name mapping
  • โ€”โœ… Basic validity checks
  • โ€”โœ… Unknown taxon detection

๐Ÿ‘‰ These tasks are highly reliable in practice


What Requires Caution

โš ๏ธ Full Lineage Generation

Even when:

  • โ€”JSON is valid
  • โ€”structure looks correct

โžก๏ธ the taxonomy itself may be partially incorrect

Example risk:

  • โ€”correct genus
  • โ€”incorrect family

Benchmark (Strict Evaluation)

TaskKnown AccuracyUnknown AccuracyHallucination
Lineage0.871.000.00
Parent1.001.000.00
Rank0.860.870.12
Validity0.930.86โš ๏ธ Not measured

Key takeaway:

๐Ÿ‘‰ Short tasks are reliable ๐Ÿ‘‰ Long structured outputs require verification


Recommended Usage

High-confidence use cases

  • โ€”rank queries
  • โ€”parent queries
  • โ€”structured QA on known taxa
  • โ€”offline taxonomy assistants

How to Use

Option 1 โ€” LM Studio

Download the .gguf file Load into LM Studio Use with prompt example below

Option 2 โ€” llama.cpp

./main -m mistral-7b-itis-taxonomy-sml-v3.gguf -p "What is the lineage of Panthera leo?"

Option 3 โ€” Python (recommended for tracking)

from huggingface_hub import hf_hub_download

model_path = hf_hub_download( repo_id="Jaymerry/mistral-7b-itis-taxonomy-slm-v3", filename="mistral-7b-itis-taxonomy-sml-v3.gguf" )

Example Prompt

โžค Taxonomic rank Input:

  • โ€”What taxonomic rank is Panthera leo?
  • โ€”Output:
  • โ€”Species

<img src="https://cdn-uploads.huggingface.co/production/uploads/67c8730f98b8e1b9850bb24e/RVCApHUHWASZS3tCCIn5N.png" width="400">


Small Language Model (SML) Perspective

This project demonstrates that:

Small models can be effective when trained on structured, stable data.

Benefits:

  • โ€”low compute cost
  • โ€”*offline usage*
  • โ€”reproducibility
  • โ€”controlled knowledge scope

This is particularly relevant for:

  • โ€”enterprise use cases
  • โ€”scientific tooling
  • โ€”embedded / local AI

Dataset

Source: Integrated Taxonomic Information System (ITIS) https://www.itis.gov/

Properties:

  • โ€”public domain
  • โ€”structured
  • โ€”relatively stable over time

Legal Notice

  • โ€”ITIS data is public domain
  • โ€”this model is a statistical transformation, not a database
  • โ€”outputs may be incorrect or incomplete
  • โ€”verification is required for critical use

Limitations

  • โ€”domain-restricted
  • โ€”English-only
  • โ€”not general-purpose
  • โ€”lineage may contain factual errors
  • โ€”imperfect refusal on validity

Notes on Downloads

For accurate download tracking, prefer using: hf_hub_download(...) Downloads via direct links or external tools may not be counted.

Author

Jeremy Banchet (Jaymerry)