Instructions to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("zai-org/GLM-5.3-Flash") model = PeftModel.from_pretrained(base_model, "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10") - Transformers
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10
- SGLang
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10 with Docker Model Runner:
docker model run hf.co/HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10
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
Model tree for HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step10
Base model
zai-org/GLM-5.3-Flash