Run this model with HF Jobs

Run VincentHancoder/RAP-Qwen3.8-27B-RL 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/VincentHancoder/RAP-Qwen3.8-27B-RL. 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/VincentHancoder/RAP-Qwen3.8-27B-RL 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/VincentHancoder/RAP-Qwen3.8-27B-RL. 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/VincentHancoder/RAP-Qwen3.8-27B-RL. 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.

RAP-Qwen3.8-27B-RL

Paper Project Page Code Dataset Demo

RAP post-training pipeline: paper information extraction, instruction construction, SFT and GRPO

The paper-to-poster model of RAP (Reconstruct A Poster). Starting from Qwen3.8-27B, the model is post-trained on RAP-25K paper–poster–markup triplets (paper) in two stages, both full-parameter (language model and vision–language aligner updated, vision encoder frozen; no LoRA, no quantization):

  1. Supervised fine-tuning on paper β†’ poster-HTML pairs derendered from human-crafted posters.
  2. Reinforcement learning with GRPO, rewarding rendered posters with verifiable rule-based checks and a VLM judge.

Given the paper text, its figure/table/formula assets and a design instruction, the model writes the poster as a single self-contained HTML page. Weights are BF16 (Qwen3_5ForConditionalGeneration, 16K context).

Training

Supervised fine-tuning β€” training/validation loss, next-token accuracy and learning-rate schedule.

SFT training curves

GRPO reinforcement learning β€” total reward, its rule-based and VLM-judge components, and completion length.

RL training curves

Usage

The demo Space and the code repository contain the full pipeline (PDF parsing, asset extraction, prompt construction and HTML rendering). The weights load with Transformers like any Qwen3.5-family vision-language model:

import torch
from transformers import AutoModelForImageTextToText, AutoProcessor

repo = "VincentHancoder/RAP-Qwen3.8-27B-RL"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(repo, dtype=torch.bfloat16, device_map="cuda")

messages = [{"role": "user", "content": [
    {"type": "image", "image": "figure_1.png"},                  # extracted paper figures/tables, referenced by id in the prompt
    {"type": "text", "text": "<paper text, asset list and poster instruction>"},
]}]
inputs = processor.apply_chat_template(messages, tokenize=True, add_generation_prompt=True,
                                       enable_thinking=False, return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=8192, do_sample=False, use_cache=True)
html = processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True)

License

Apache-2.0, following the base model. The training data is released separately as RAP-25K.

Citation

If you find RAP useful or interesting for your research, please consider liking this model, starring the code repository and citing our paper.

@misc{han2026rapdatasetpapertopostergeneration,
      title={RAP: A Dataset for Paper-to-Poster Generation via Declarative Markup from Human-Crafted Exemplars},
      author={Haonan Han and Yukang Lin and Minliang Lin and Haoxian Tan and Jun-Yan He and Rui Yang and Zhi-Qi Cheng and Jie Hu and Guanglu Wan and Xiu Li},
      year={2026},
      eprint={2610.23230},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2610.23230},
}
Downloads last month
48
Safetensors
Model size
3.05M params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for VincentHancoder/RAP-Qwen3.8-27B-RL

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,156)
this model

Dataset used to train VincentHancoder/RAP-Qwen3.8-27B-RL

Space using VincentHancoder/RAP-Qwen3.8-27B-RL 1

Paper for VincentHancoder/RAP-Qwen3.8-27B-RL