Run this model with HF Jobs

Run kasramojallal/packi-llama32-3b-lora-e on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/kasramojallal/packi-llama32-3b-lora-e. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/kasramojallal/packi-llama32-3b-lora-e on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/kasramojallal/packi-llama32-3b-lora-e. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/kasramojallal/packi-llama32-3b-lora-e. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Packi-Llama-E: LoRA adapter for online 3D bin packing

LoRA adapter for meta-llama/Llama-3.2-3B-Instruct used as the Packi-Llama-E 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.

Training data

24,753 demonstrations from a privileged beam-search expert (width 1000) that sees the whole box sequence, on 1,000 training sequences disjoint from the test sequences. 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.

Training

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 (2,088 optimizer steps, 8.2 h on one RTX 5090); maximum length 2,048 tokens without truncation; bf16, no quantization; seed 42.

Results

Final utilization, mean of five fixed test sequences per benchmark (CURRICULUM-25 / DATA-1 / DATA-2 / DATA-3): 0.789 / 0.709 / 0.791 / 0.750 (mean 0.760). A valid pick and path at the first attempt for every box. For comparison, the greedy corner rule reaches a mean of 0.738.

Use

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:meta-llama/Llama-3.2-3B-Instruct@<path-to-this-adapter> --all

Code and data: llm-robotic-packer (evaluation) and learning-from-demonstration (demonstrations and training).

Limitations

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.

Licence

This adapter is a derivative of Llama 3.2 and is subject to the Llama 3.2 Community License and Acceptable Use Policy. Built with Llama.

Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for kasramojallal/packi-llama32-3b-lora-e

Adapter
(904)
this model