Downloads · 30 days
10
19% of all-time downloads
attilczuk/sarm-behavior-model-example
sarm-behavior-model-example is a robotics model from attilczuk. Use it for the robotics task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
Stage-aware progress prediction model for robot manipulation tasks
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
52
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
Stage-aware progress prediction model for robot manipulation tasks
SARM predicts:
The model uses a transformer architecture to process sequences of RGB images and robot states.
Task: clearing_food_from_table_into_fridge Dataset: IliaLarchenko/behavior_224_rgb
best_model.ptfrom hf_model_hub import download_model_from_hub
from model import SARM
import torch
import json
# Download model and config
files = download_model_from_hub(
repo_id="YOUR_USERNAME/YOUR_REPO",
checkpoint_name="best_model.pt",
output_dir="./downloaded_model"
)
# Load config
with open(files["config"], "r") as f:
config = json.load(f)
# Create model
model_config = config["model"]
model = SARM(
d_model=model_config["d_model"],
n_heads=model_config["n_heads"],
n_layers=model_config["n_layers"],
d_mlp=model_config["d_mlp"],
num_stages=model_config["num_stages"],
d_state=model_config["d_state"],
num_tasks=model_config["num_tasks"],
)
# Load checkpoint
checkpoint = torch.load(files["checkpoint"])
model.load_state_dict(checkpoint["model_state_dict"])
model.eval()
# Assuming you have images and states prepared
with torch.no_grad():
stage_logits, progress = model(images, states, tasks, padding_mask)
# Get predictions for the last frame
predicted_stage = stage_logits[:, -1].argmax(dim=-1)
predicted_progress = progress[:, -1]
This model was trained on the IliaLarchenko/behavior_224_rgb for robot manipulation tasks.
Training episodes: 90 episodes Validation episodes: 15 episodes
If you use this model, please cite:
@misc{sarm-model,
author = {Your Name},
title = {SARM Progress Prediction},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/YOUR_USERNAME/YOUR_REPO}
}
{
"metadata": {
"model_name": "SARM Progress Prediction",
"description": "Stage-aware progress prediction model for robot manipulation tasks",
"task": "clearing_food_from_table_into_fridge",
"task_number": 25,
"dataset": "IliaLarchenko/behavior_224_rgb",
"version": "1.0",
"author": "Your Name",
"tags": [
"robotics",
"progress-estimation",
"behavior-cloning"
]
},
"model": {
"d_model": 768,
"n_heads": 12,
"n_layers": 8,
"d_mlp": 512,
"num_stages": 100,
"d_state": 256,
"num_tasks": 50
},
"training": {
"max_steps": 10000,
"learning_rate": 0.0001,
"weight_decay": 0.0001,
"batch_size": 16,
"gradient_accumulation_steps": 4,
"max_grad_norm": 1.0,
"scheduler": "cosine",
"stage_loss_weight": 1.0,
"progress_loss_weight": 1.0,
"validation_steps": 100,
"save_steps": 200
},
"data": {
"max_sequence_length": 13,
"image_size": 224,
"num_workers": 10,
"val_workers": 10,
"val_samples": 500,
"train_episodes": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90
],
"val_episodes": [
91,
92,
93,
94,
95,
96,
97,
98,
99,
100,
101,
102,
103,
104,
105
],
"seed": 42
},
"logging": {
"project_name": "sarm-training",
"run_name": null,
"log_freq": 10,
"checkpoint_dir": "checkpoints_sarm_25_2"
}
}
</details>