Instructions to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20 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-step20 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-step20") - Transformers
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20 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-step20")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20 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-step20" # 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-step20", "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-step20
- SGLang
How to use HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20 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-step20" \ --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-step20", "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-step20" \ --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-step20", "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-step20 with Docker Model Runner:
docker model run hf.co/HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20
GLM-5.3-Flash Geo3K RL LoRA (step 20)
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 checkpoint at step 20 of a 30-step RL training run.
Training Details
- Base model:
zai-org/GLM-5.3-Flash(FP8 quantized) - Method: GRPO (Group Relative Policy Optimization) via verl + Megatron
- Dataset: Geometry3K (geometry math problems with images)
- LoRA rank: 16, alpha: 32
- Target modules: 22 modules (q_proj, k_proj, v_proj, o_proj, kv_a/b_proj, q_a/b_proj, gate_proj, up_proj, down_proj, weights_proj, wk, wq_b, b_proj, f_a/b_proj, g_a/b_proj, gate, proj, qkv)
- Training: BF16, 2-node (16 GPU), resync_base=True, R3 router replay
- Steps: 30 total, adapter saved every 5 steps
Evaluation Results (Geometry3K test, 601 rows)
| Metric | Value |
|---|---|
| Accuracy | 0.8735 |
| Score (0.9acc + 0.1format) | 0.7862 |
For reference, base model accuracy: 0.6622
Usage
from vllm import LLM, SamplingParams
from vllm.lora.request import LoRARequest
llm = LLM(model="zai-org/GLM-5.3-Flash", enable_lora=True, max_lora_rank=16,
trust_remote_code=True, tensor_parallel_size=8, enforce_eager=True)
lora_req = LoRARequest(lora_name="geo3k", lora_int_id=1,
lora_path="HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20")
# Generate with lora_request=lora_req
Framework
- verl + Megatron-LM + Megatron-Bridge
- Downloads last month
- 38
Model tree for HollowMan6/GLM-5.3-Flash-Geo3K-RL-LoRA-step20
Base model
zai-org/GLM-5.3-Flash