Run this model with HF Jobs

Run Mikezcy/ASPECT-8B 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/Mikezcy/ASPECT-8B. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/Mikezcy/ASPECT-8B 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/Mikezcy/ASPECT-8B. Ask me which benchmark to run, then save the scores and the per-example results to a new private 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/Mikezcy/ASPECT-8B. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

ASPECT-8B is released for non-commercial research use under CC BY-NC-SA 4.0. It is not a medical device and must not be used for diagnosis or clinical decision-making. Access requests are reviewed manually.

Log in or Sign Up to review the conditions and access this model content.

ASPECT-8B

ASPECT is a pathology vision-language model that reports the nucleus counts behind its answers. It is built on Qwen3-VL-8B-Instruct with 8 pathology-feature tokens and 6 cell tokens, trained with three-stage supervised fine-tuning (Perceive, Generate, Reason) and GRPO with an answerโ€“observation consistency reward.

Responses follow the format

<think> the patch feature of the image is <|anchor_start|>...<|anchor_end|>, and the cell composition of the image is <|anchor_start|>...<|anchor_end|>. </think>
<observe> description {"<count name>": <count>, ...}</observe>
<answer> reasoning
FINAL: <option> </answer>

Paper: https://arxiv.org/abs/2609.34277 Code: https://github.com/ChyaZhang/ASPECT

Files

The repository root holds the supervised model (Qwen3-VL-8B with the visual-token embeddings and the SFT LoRA merged in); rl_adapter/ holds the LoRA adapter from reinforcement learning. Load both, as below; this is the configuration evaluated on PathoVernier.

Usage

import torch
from peft import PeftModel
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "Mikezcy/ASPECT-8B"
processor = AutoProcessor.from_pretrained(model_id, max_pixels=1360 * 28 * 28)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(model, model_id, subfolder="rl_adapter")

image = Image.open("example.png").convert("RGB").resize((512, 512))
question = "..."
messages = [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": question}]}]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(processor.tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False))

Images are resized to 512x512. No system prompt is used; the question should list the answer options.

Citation

@article{zhang2026see,
  title   = {See, Measure, and Reason: Learning Visually Grounded Reasoning in Pathology},
  author  = {Zhang, Chengyang and Zhang, Wenchuan and Li, Bo and Li, Mengran and Liu, Xinyu and Yang, Jiaming and Chen, Jie and Zhang, Zhang and Yi, Yuhao and Bu, Hong and Lv, Jiancheng},
  journal = {arXiv preprint arXiv:2609.34277},
  year    = {2026}
}
Downloads last month
7
Safetensors
Model size
9B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Mikezcy/ASPECT-8B

Finetuned
(790)
this model

Paper for Mikezcy/ASPECT-8B