GLM-5.3-Flash Geo3K RL LoRA (Step 10)

Model Summary

This repository contains a PEFT LoRA adapter for zai-org/GLM-5.3-Flash, trained with GRPO reinforcement learning on the Geometry3K dataset.

This is the checkpoint at step 10 of a 30-step RL training run.

Model Details

  • Developed by: HollowMan6
  • Model type: PEFT LoRA adapter checkpoint
  • Base model: zai-org/GLM-5.3-Flash (FP8 quantized)
  • Language(s): Same as base model
  • License: Same as base model license (MIT)
  • Framework: PEFT + verl + Megatron-LM

Adapter Construction

This adapter was trained with GRPO RL, targeting 22 modules:

  • Attention: q_proj, k_proj, v_proj, o_proj, q_a_proj, q_b_proj, kv_a_proj_with_mqa, kv_b_proj, wq_b, wk
  • KDA (Kimi Delta Attention): b_proj, f_a_proj, f_b_proj, g_a_proj, g_b_proj
  • DSA indexer: weights_proj
  • MoE experts: gate_proj, up_proj, down_proj, gate
  • Other: proj, qkv

Training Details

  • Method: GRPO (Group Relative Policy Optimization)
  • Framework: verl + Megatron-LM + Megatron-Bridge
  • Dataset: Geometry3K (geometry math problems with images, 2101 train rows)
  • LoRA rank: 16, alpha: 32
  • Precision: BF16
  • Hardware: 2 nodes x 8 H20 GPUs (16 GPUs total)
  • Rollout: vLLM TP=16/DP=1/EP=16, enable_thinking=True
  • Actor: TP=8/EP=16/CP=2
  • Steps: 30 total, adapter saved every 5 steps
  • Key techniques: resync_base=True (prevent train-rollout drift), R3 router replay (train-rollout consistency)

Evaluation

Generation accuracy on Geometry3K test set (601 rows), greedy decoding, max_new_tokens=2048:

Checkpoint Accuracy Score (0.9acc + 0.1format)
Base model 0.6622 0.5960
Step 5 0.7088 0.6379
Step 10 0.7787 0.7008
Step 15 0.8203 0.7383
Step 20 0.8735 0.7862
Step 25 0.8719 0.7847
Step 30 0.8403 0.7562

This checkpoint (step 10): accuracy = 0.7787 (base: 0.6622, delta = +0.1165)

Scoring uses mathruler extract_boxed_content + grade_answer, consistent with the RL reward function.

Intended Use

  • Geometry math problem solving with vision input
  • LoRA RL research and ablation studies
  • GLM-5.3-Flash fine-tuning reference

Usage

vLLM

from vllm import LLM, SamplingParams
from vllm.lora.request import LoRARequest

llm = LLM(
    model="zai-org/GLM-5.3-Flash",
    trust_remote_code=True,
    enable_lora=True,
    max_loras=1,
    max_lora_rank=16,
    tensor_parallel_size=8,
    enforce_eager=True,
    max_model_len=4096,
    limit_mm_per_prompt={"image": 4},
)

outputs = llm.chat(
    [{"role": "user", "content": [
        {"type": "text", "text": "Your geometry question here"},
        {"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
    ]}],
    SamplingParams(temperature=0.0, max_tokens=2048),
    lora_request=LoRARequest("geo3k", 1, "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10"),
)
print(outputs[0].outputs[0].text)

Transformers + PEFT

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "zai-org/GLM-5.3-Flash"
adapter = "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10"

tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base, trust_remote_code=True)
model = PeftModel.from_pretrained(model, adapter)

Framework Versions

  • PEFT
  • verl
  • Megatron-LM
  • vLLM 0.33.0rc1
Downloads last month
33
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10

Adapter
(15)
this model