CoolFace
Modelpublic

ambrosfitz/llama-3.2-1b-book-triage-gguf

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes109downloads
Model Card

Llama 3.2 1B Book Triage - GGUF Quantized

GGUF quantized versions of the Llama 3.2 1B Book Triage model for efficient CPU inference.

Model Description

This repository contains GGUF quantized versions of the fine-tuned Llama 3.2 1B model for rare book triage classification.

Source Model: ambrosfitz/llama-3.2-1b-book-triage

Available Quantizations

FileSizeDescriptionUse Case
model-q4_k_m.gguf770 MBRecommended - Best balanceGeneral CPU inference
model-q5_k_m.gguf869 MBBetter qualityWhen quality matters more
model-q8_0.gguf1260 MBHighest qualityMaximum accuracy
model-f16.gguf2365 MBFull precisionBenchmarking

Usage

With llama.cpp

bash
# Download a quantized model
wget https://huggingface.co/ambrosfitz/llama-3.2-1b-book-triage-gguf/resolve/main/model-q4_k_m.gguf

# Run inference
./llama-cli -m model-q4_k_m.gguf -p "Your prompt here"

With Python (llama-cpp-python)

python
from llama_cpp import Llama

# Load model
llm = Llama(
    model_path="model-q4_k_m.gguf",
    n_ctx=2048,
    n_threads=8
)

# Generate
output = llm("Your prompt here", max_tokens=200)
print(output['choices'][0]['text'])

With Python (ctransformers)

python
from ctransformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "ambrosfitz/llama-3.2-1b-book-triage-gguf",
    model_file="model-q4_k_m.gguf",
    model_type="llama"
)

response = model("Your prompt here")

Performance

Approximate inference speeds on CPU (AMD Ryzen 5/Intel i5):

QuantizationTokens/secRAM Usage
Q4KM15-25~1.5 GB
Q5KM12-20~2 GB
Q8_08-15~3 GB

Model Task

This model triages rare books into 4 categories:

  • ELIMINATE: Not worth preserving
  • LOW_INTEREST: Low priority
  • PROMISING: Worth investigating
  • HIGH_INTEREST: Top preservation priority

Prompt Format

Triage this book (FAST decision):

Title: [Book Title]
Author: [Author Name]
Publisher: [Publisher]
Year: [Year]
Holdings: [N] libraries
Tier: [1-3]

Quick triage decision (JSON only):

Expected Output

json
{
  "category": "PROMISING",
  "score": 70,
  "is_thesis": false,
  "is_gov_doc": false,
  "reason": "Older book with limited holdings, potentially rare and unique."
}

Citation

bibtex
@misc{book-triage-gguf,
  author = {ambrosfitz},
  title = {Llama 3.2 1B Book Triage - GGUF Quantized},
  year = {2025},
  publisher = {HuggingFace},
  url = {https://huggingface.co/ambrosfitz/llama-3.2-1b-book-triage-gguf}
}

Original Model

Fine-tuned from: unsloth/Llama-3.2-1B-Instruct

Merged 16-bit version: ambrosfitz/llama-3.2-1b-book-triage

License

Apache 2.0 (same as base Llama 3.2 model)

Quantization Details

  • Tool: llama.cpp
  • Source: 16-bit merged model
  • Formats: Q4KM, Q5KM, Q8_0, F16
  • Date: 2025-01-13