Skip to content
ModelListedExternal
Download

Llama 3.2 1b LoRA Qlora Dart Llm

This model is a QLoRA fine-tuned version of meta-llama/Llama-3.2-1B specialized for robot task planning in construction environments.

KindOtherBase modelmeta-llama/Llama-3.2-1BVersionRevision 6191bffDgrade

Model source

Kind
Other
File size
21.5 MB
Base model
meta-llama/Llama-3.2-1B
Version
vRevision 6191bff
Updated
Oct 4, 2026
Downloads
4
Source
Hugging Face

Source description

Llama 3.2 1B - DART LLM Robot Task Planning (QLoRA Fine-tuned)

This model is a QLoRA fine-tuned version of meta-llama/Llama-3.2-1B specialized for robot task planning in construction environments.

The model converts natural language commands into structured task sequences for construction robots including excavators and dump trucks.

Model Details

  • Base Model: meta-llama/Llama-3.2-1B
  • Fine-tuning Method: QLoRA (4-bit quantization + LoRA)
  • LoRA Rank: 16-32 (optimized per model size)
  • LoRA Alpha: 16-32
  • Target Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
  • Dataset: YongdongWang/dart_llm_tasks_pretty
  • Training Domain: Construction robotics

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch

# Load tokenizer and base model
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B")
base_model = AutoModelForCausalLM.from_pretrained(
    "meta-llama/Llama-3.2-1B",
    torch_dtype=torch.float16,
    device_map="auto"
)

# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "YongdongWang/llama-3.2-1b-lora-qlora-dart-llm")

# Generate robot task sequence
instruction = "Deploy Excavator 1 to Soil Area 1 for excavation"
prompt = f"### Instruction:\n{instruction}\n\n### Response:\n"
inputs = tokenizer(prompt, return_tensors="pt")

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=512,
        do_sample=False,
        pad_token_id=tokenizer.eos_token_id
    )

response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)

Training Details

  • Training Data: DART LLM Tasks - Robot command and task planning dataset
  • Domain: Construction robotics (excavators, dump trucks, soil/rock areas)
  • Training Epochs: 6-12 (optimized per model size)
  • Batch Size: 1 (with gradient accumulation)
  • Learning Rate: 1e-4 to 3e-4 (scaled by model size)
  • Optimizer: paged_adamw_8bit or adamw_torch

Capabilities

  • Multi-robot coordination: Handle multiple excavators and dump trucks
  • Task dependencies: Generate proper task sequences with dependencies
  • Spatial reasoning: Understand soil areas, rock areas, puddles, and navigation
  • Action planning: Convert commands to structured JSON task definitions

Example Output

The model generates structured task sequences in JSON format for robot execution:

{
  "tasks": [
    {
      "instruction_function": {
        "dependencies": [],
        "name": "target_area_for_specific_robots",
        "object_keywords": ["soil_area_1"],
        "robot_ids": ["robot_excavator_01"],
        "robot_type": null
      },
      "task": "target_area_for_specific_robots_1"
    }
  ]
}

Limitations

This model is specifically trained for construction robotics scenarios and may not generalize to other domains without additional fine-tuning.

Citation

@article{wang2024dart,
  title={Dart-llm: Dependency-aware multi-robot task decomposition and execution using large language models},
  author={Wang, Yongdong and Xiao, Runze and Kasahara, Jun Younes Louhi and Yajima, Ryosuke and Nagatani, Keiji and Yamashita, Atsushi and Asama, Hajime},
  journal={arXiv preprint arXiv:2411.09022},
  year={2024}
}

Model Card Authors

YongdongWang

Model Card Contact

For questions or issues, please open an issue in the repository or contact the model author.

Sources

1 source
Hugging FacePrimaryVersion 6191bff92cfa7be3ed658b6fda4e1b070c6fa02f
huggingface.co/YongdongWang/llama-3.2-1b-lora-qlora-dart-llm/tree/6191bff92cfa7be3ed658b6fda4e1b070c6fa02f

Verified Aug 20

Model artifacts

1 artifact

adapter_model.safetensors

safetensors · 21.5 MB · SHA-256 88c461dad3f5…b651 · Hugging Face

Download

Source excerpts

2 excerpts

--- license: llama3.2 library_name: peft base_model: meta-llama/Llama-3.2-1B tags: - llama - lora - qlora - fine-tuned - robotics - task-planning - construction - dart-llm language: - en pipeline_tag: text-generation --- # Llama 3.2 1B - DART LLM Robot Task Planning (QLoRA Fine-tuned) This model is a QLoRA fine-tuned version of **meta-llama/Llama-3.2-1B** specialized for **robot task planning** in construction environments. The model converts natural language commands into structured task sequences for construction robots including excavators and dump trucks. ## Model Details - **Base Model**: meta-llama/Llama-3.2-1B - **Fine-tuning Method**: QLoRA (4-bit quantization + LoRA) - **LoRA Rank**: 16-32 (optimized per model size) - **LoRA Alpha**: 16-32 - **Target Modules**: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj - **Dataset**: YongdongWang/dart_llm_tasks_pretty - **Training Domain**: Construction robotics ## Usage ```python from transformers import AutoTokenizer, AutoModelForCausalLM from peft import PeftModel import torch # Load tokenizer and base model tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B") base_model = AutoModelForCausalLM.from_pretrained( "meta-llama/Llama-3.2-1B", torch_dtype=torch.float16, device_map="auto" ) # Load LoRA adapter model = PeftModel.from_pretrained(base_model, "YongdongWang/llama-3.2-1b-lora-qlora-dart-llm") # Generate robot task sequence instruction = "Deploy Excavator 1 to Soil Area 1 for excavation" prompt = f"### Instruction:\n{instruction}\n\n### Response:\n" inputs = tokenizer(prompt, return_tensors="pt") with torch.no_grad(): outputs = model.generate( **inputs, max_new_tokens=512, do_sample=False, pad_token_id=tokenizer.eos_token_id ) response = tokenizer.decode(outputs[0], skip_special_tokens=True) print(response) ``` ## Training Details - **Training Data**: DART LLM Tasks - Robot command and task planning dataset - **Domain**: Construction robotics (excavators, dump trucks, soil/rock areas) - **Training Epochs**: 6-12 (optimized per model size) - **Batch Size**: 1 (with gradient accumulation) - **Learning Rate**: 1e-4 to 3e-4 (scaled by model size) - **Optimizer**: paged_adamw_8bit or adamw_torch ## Capabilities - **Multi-robot coordination**: Handle multiple excavators and dump trucks - **Task dependencies**: Generate proper task sequences with dependen...

Source context: 4 downloads · 3 likes · Pipeline text-generation · Library peft · Repo YongdongWang/llama-3.2-1b-lora-qlora-dart-llm