Run this model with HF Jobs

Run small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Model Card for Qwen3.5-4B-SFT-name-parser-yaml

This model is a fine-tuned version of Qwen 3.5 (4B parameters) designed to parse unstructured, highly varied historical person names into a strict, structured YAML format. It was developed to process millions of records for cultural heritage platforms efficiently and cost-effectively.

Model Details

Model Description

This model addresses a specific entity extraction problem in the Galleries, Libraries, Archives, and Museums (GLAM) sector. Large frontier models proved too expensive and struggled with strict JSON syntax and component isolation when parsing messy historical names (achieving only ~70% accuracy).

By fine-tuning a small open-source model (4B parameters) on high-quality synthetic data and changing the target output format from JSON to YAML, this model achieves 94% to 96% accuracy while remaining small enough to run highly efficiently on local hardware. It extracts components such as first names, last names, middle names, life dates, flourished dates, titles, and extra information.

  • Developed by: Yale University LUX Platform Team / small-models-for-glam
  • Model type: Causal Language Model (Fine-tuned for specific entity extraction)
  • Language(s) (NLP): English (en), with multi-lingual naming conventions included (e.g., French, German, Italian, Arabic, Chinese).
  • License: Apache 4.0 (Inherited from Qwen base model)
  • Finetuned from model: Qwen 3.5 4B

Model Sources

Uses

Direct Use

The model is intended to be used directly for extracting structured data from raw text strings of historical names.

Given an input string like "Cynthia Ponce'Hayes (born 1633), born 1633", the model will output syntactically valid YAML identifying the parsed components:

first_name: Cynthia
last_name: Ponce'Hayes
middle_names: []
temporal:
- start: 1633
  end: null
  type: life_span
titles: []
extra_info: []
Downloads last month
24
Safetensors
Model size
5B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train small-models-for-glam/Qwen3.5-4B-SFT-name-parser-yaml