LoRA adapter for Qwen/Qwen3-4B-Instruct-2507 used as the Packi-Qwen-H policy in the paper Packi: Robotic 3D Bin Packing With Large Language Models Fine-Tuned by Learning From Demonstration (under revision, Journal of Robotics).
For each incoming box the evaluation harness offers up to eight pre-validated anchor positions per orientation. The model answers two calls: it picks an orientation and an anchor ({"rotation_index": ..., "anchor_id": ...}), then writes a waypoint path to that position ({"path": [[x,y,z], ...]}). Rejected answers are returned to the model as a feedback history.
646 human demonstrations (52 episodes), recorded by the first author in an interactive recorder. Each placement gives two chat examples (pick and path), serialized by the same code the harness uses at test time, with candidate order and identifiers randomly permuted. Split 90/10 by episode.
LoRA rank 16, alpha 32, dropout 0.05, on q, k, v, o, gate, up and down projections; loss on the assistant tokens only; AdamW, learning rate 2e-4, cosine schedule with 3% warm-up, batch 2 x 32, 3 epochs (57 optimizer steps, 0.3 h on one RTX PRO 4500); maximum length 2,048 tokens without truncation; bf16, no quantization; seed 42.
Final utilization, mean of five fixed test sequences per benchmark (CURRICULUM-25 / DATA-1 / DATA-2 / DATA-3): 0.720 / 0.698 / 0.751 / 0.701 (mean 0.717). A valid pick and path at the first attempt for every box. For comparison, the greedy corner rule reaches a mean of 0.738.
The adapter is meant to be run inside the evaluation harness, which builds the exact prompts it was trained on:
git clone https://github.com/kasramojallal1/llm-robotic-packer && cd llm-robotic-packer
python evaluate.py --method local:Qwen/Qwen3-4B-Instruct-2507@<path-to-this-adapter> --all
Code and data: llm-robotic-packer (evaluation) and learning-from-demonstration (demonstrations and training).
Trained only on a 10 x 10 x 10 bin with box sides 2 to 5. The model does not see the bin contents directly, only the offered anchors. The path step does not transfer to bins taller than those seen in training. All checks are object-level (the box itself); robot-level execution has not been tested.
Released under the Apache License 2.0, the licence of the base model.
adapter_model.safetensors 132 MBtraining_args.bin 5.2 kBQwen/Qwen3-4B-Instruct-2507