Views
No views yet
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
5model = PeftModel.from_pretrained(base_model, "JasonShiii/step-llm-llama3b-no_rag")
6tokenizer = AutoTokenizer.from_pretrained("JasonShiii/step-llm-llama3b-no_rag")1python generate_step.py \
2 --ckpt_path JasonShiii/step-llm-llama3b-no_rag \
3 --caption "A cylindrical bolt with a hexagonal head"--use_rag when using it. For RAG inference, use JasonShiii/step-llm-llama3b instead.| Parameter | Value |
|---|---|
| Base model | Llama-3.2-3B-Instruct |
| LoRA rank (r) | 16 |
| lora_alpha | 16 |
| Learning rate | 5e-5 |
| Batch size | 2 (x4 grad accum = effective 8) |
| max_seq_length | 16384 |
| Training data | ~20k STEP files, 0-500 entities |
| Training steps | 6300 |
| Prompt template | no-RAG (caption -> output, no retrieved example) |
1@article{shi2026step,
2 title={STEP-LLM: Generating CAD STEP Models from Natural Language with Large Language Models},
3 author={Shi, Xiangyu and Ding, Junyang and Zhao, Xu and Zhan, Sinong and Mohapatra, Payal
4 and Quispe, Daniel and Welbeck, Kojo and Cao, Jian and Chen, Wei and Guo, Ping and others},
5 journal={arXiv preprint arXiv:2601.12641},
6 year={2026}
7}