This is an RL4TG checkpoint for Java unit-test generation.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "tomhu/RL4TG-Qwen2.5-3B-GRPO-2-Epochs"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(
6 model_id,
7 torch_dtype="auto",
8 device_map="auto",
9)
The model is intended for research on Java unit-test generation. Generated tests
must still be compiled and executed in the target project's own build environment.
The 10-step trajectory checkpoints are available as Git revisions in this repo.
The main revision is the final step-98 model.