Downloads · 30 days
0
0% of all-time downloads
small-models-for-glam/Qwen3-0.6B-SFT-AAT-Materials
Qwen3-0.6B-SFT-AAT-Materials is a machine learning model from small-models-for-glam. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model is a fine-tuned version of Qwen/Qwen3-0.6B specialized for identifying materials in cultural heritage object descriptions according to Getty Art & Architecture Thesaurus (AAT) standards.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
36
Public
Repo size
5.2 GB
Likes
3
Public
Click a slice to open those files.
.safetensors1.3 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen3-0.6B specialized for identifying materials in cultural heritage object descriptions according to Getty Art & Architecture Thesaurus (AAT) standards.
It has been trained using TRL on synthetic data representing diverse cultural heritage objects from museums, galleries, libraries, archives, and museums (GLAM) collections.
This model excels at:
from transformers import AutoTokenizer, AutoModelForCausalLM
import json
# Load the model
tokenizer = AutoTokenizer.from_pretrained("small-models-for-glam/Qwen3-0.6B-SFT-AAT-Materials")
model = AutoModelForCausalLM.from_pretrained("small-models-for-glam/Qwen3-0.6B-SFT-AAT-Materials")
# Example cultural heritage object description
description = """A bronze sculpture from 1425, standing 150 cm tall. The figure is mounted on a marble base and features intricate details cast in the bronze medium. The sculpture shows traces of original gilding on selected areas."""
# Format the prompt
prompt = f"""Given this cultural heritage object description:
{description}
Identify the materials separate out materials as they would be found in Getty AAT"""
# Generate materials identification
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(inputs.input_ids, max_length=512, temperature=0.3)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
# Extract the materials output
materials = result[len(prompt):].strip()
print(json.loads(materials))
# Expected output: [{"Bronze": ["bronze"]}, {"Marble": ["marble"]}, {"Gold leaf": ["gold", "leaf"]}]
The model outputs materials in JSON format where each material combination is mapped to its constituent AAT terms:
[
{"oil on canvas": ["Oil paint", "Canvas"]},
{"tempera on wood": ["tempera paint", "wood (plant material)"]},
{"bronze": ["bronze"]}
]
This model was trained using Supervised Fine-Tuning (SFT) on the small-models-for-glam/synthetic-aat-materials dataset, which contains thousands of synthetic cultural heritage object descriptions paired with their corresponding AAT material classifications.
The training dataset includes diverse object types:
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}