Run this model with HF Jobs

Run 0xMattia/so101-cube-diffusion 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/0xMattia/so101-cube-diffusion. 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/0xMattia/so101-cube-diffusion 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.
so101-cube-diffusion / train_config.json
0xMattia's picture
Publish SO-101 cube Diffusion Policy checkpoint
2689e1f verified
Raw History Blame Contribute Delete
7.36 kB
{
"dataset": {
"repo_id": "local/blue-cube-train",
"repo_type": "dataset",
"root": "data/blue-cube-58/train",
"episodes": null,
"exclude_episodes": null,
"image_transforms": {
"enable": false,
"backend": "dataloader",
"gpu_compile": true,
"gpu_chunk_size": 32,
"max_num_transforms": 3,
"random_order": false,
"tfs": {
"brightness": {
"weight": 1.0,
"type": "ColorJitter",
"kwargs": {
"brightness": [
0.8,
1.2
]
}
},
"contrast": {
"weight": 1.0,
"type": "ColorJitter",
"kwargs": {
"contrast": [
0.8,
1.2
]
}
},
"saturation": {
"weight": 1.0,
"type": "ColorJitter",
"kwargs": {
"saturation": [
0.5,
1.5
]
}
},
"hue": {
"weight": 1.0,
"type": "ColorJitter",
"kwargs": {
"hue": [
-0.05,
0.05
]
}
},
"sharpness": {
"weight": 1.0,
"type": "SharpnessJitter",
"kwargs": {
"sharpness": [
0.5,
1.5
]
}
},
"affine": {
"weight": 1.0,
"type": "RandomAffine",
"kwargs": {
"degrees": [
-5.0,
5.0
],
"translate": [
0.05,
0.05
]
}
}
}
},
"revision": null,
"use_imagenet_stats": true,
"video_backend": "pyav",
"return_uint8": true,
"depth_output_unit": "mm",
"streaming": false,
"streaming_episode_pool_size": null,
"streaming_sampling_strategy": "remaining",
"streaming_prefetch_episodes": 8,
"streaming_byte_budget_gb": 8.0,
"streaming_decode_threads": 2,
"streaming_decoded_queue_size": 8,
"streaming_native_http_connections": null,
"streaming_native_http_subranges": 1,
"streaming_sidecar_lock_timeout_s": 1800.0,
"video_decoder_cache_size": null,
"eval_split": 0.0
},
"env": null,
"policy": {
"type": "diffusion",
"n_obs_steps": 2,
"input_features": {
"observation.state": {
"type": "STATE",
"shape": [
6
]
},
"observation.images.workspace": {
"type": "VISUAL",
"shape": [
3,
240,
320
]
},
"observation.images.wrist": {
"type": "VISUAL",
"shape": [
3,
240,
320
]
}
},
"output_features": {
"action": {
"type": "ACTION",
"shape": [
6
]
}
},
"device": "mps",
"dtype": null,
"use_amp": false,
"use_peft": false,
"push_to_hub": false,
"repo_id": null,
"private": null,
"tags": null,
"license": null,
"pretrained_path": null,
"pretrained_revision": null,
"horizon": 32,
"n_action_steps": 8,
"normalization_mapping": {
"VISUAL": "MEAN_STD",
"STATE": "MIN_MAX",
"ACTION": "MIN_MAX"
},
"drop_n_last_frames": 23,
"vision_backbone": "resnet18",
"resize_shape": null,
"crop_ratio": 1.0,
"crop_shape": null,
"crop_is_random": true,
"pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
"use_group_norm": false,
"spatial_softmax_num_keypoints": 32,
"use_separate_rgb_encoder_per_camera": true,
"down_dims": [
128,
256,
512
],
"kernel_size": 5,
"n_groups": 8,
"diffusion_step_embed_dim": 128,
"use_film_scale_modulation": true,
"gradient_checkpointing": false,
"noise_scheduler_type": "DDIM",
"num_train_timesteps": 100,
"beta_schedule": "squaredcos_cap_v2",
"beta_start": 0.0001,
"beta_end": 0.02,
"prediction_type": "epsilon",
"clip_sample": true,
"clip_sample_range": 1.0,
"num_inference_steps": 10,
"compile_model": false,
"compile_mode": "reduce-overhead",
"do_mask_loss_for_padding": true,
"optimizer_lr": 0.0001,
"optimizer_betas": [
0.95,
0.999
],
"optimizer_eps": 1E-8,
"optimizer_weight_decay": 0.000001,
"scheduler_name": "cosine",
"scheduler_warmup_steps": 500
},
"reward_model": null,
"output_dir": "outputs/blue-cube-58-baselines/diffusion",
"job_name": "diffusion",
"resume": true,
"seed": 1000,
"cudnn_deterministic": false,
"tf32": true,
"num_workers": 2,
"batch_size": 8,
"prefetch_factor": 4,
"persistent_workers": true,
"dataloader_multiprocessing_context": "spawn",
"steps": 20000,
"env_eval_freq": 0,
"log_freq": 100,
"eval_steps": 0,
"max_eval_samples": 0,
"tolerance_s": 0.0001,
"save_checkpoint": true,
"save_freq": 2000,
"checkpoint_format": "safetensors",
"use_policy_training_preset": true,
"optimizer": {
"type": "adam",
"lr": 0.0001,
"weight_decay": 0.000001,
"grad_clip_norm": 10.0,
"betas": [
0.95,
0.999
],
"eps": 1E-8,
"fused": null
},
"scheduler": {
"type": "diffuser",
"num_warmup_steps": 500,
"name": "cosine"
},
"parallelism": {
"dp_replicate": 1,
"dp_shard": 1,
"context_parallel": {
"ring_degree": 1,
"ulysses_degree": 1
},
"cfg_parallel": 1
},
"accelerator": {
"mixed_precision": "no",
"gradient_accumulation": {
"steps": 1,
"sync_each_batch": false
},
"grad_scaler": {
"init_scale": 65536.0,
"growth_factor": 2.0,
"backoff_factor": 0.5,
"growth_interval": 2000
},
"fsdp": {
"reshard_after_forward": true,
"wrap_modules": null,
"min_num_params": null,
"cpu_offload": false,
"ignored_modules": null,
"mixed_precision_policy": {
"param_dtype": null,
"reduce_dtype": null,
"output_dtype": null,
"cast_forward_inputs": true
}
},
"ddp": {
"find_unused_parameters": true,
"gradient_as_bucket_view": false,
"static_graph": false
},
"init_process_group": {
"backend": "nccl",
"init_method": null,
"timeout": null
},
"compile": {
"enabled": false,
"backend": "inductor",
"mode": null,
"regional": true
},
"activation_checkpointing": {
"mode": "none"
}
},
"eval": {
"n_episodes": 50,
"batch_size": 12,
"use_async_envs": true,
"recording": false,
"recording_repo_id": null,
"recording_private": false,
"max_episode_steps": null
},
"ema": null,
"trackio": {
"enable": false,
"disable_artifact": true,
"project": "lerobot",
"space_id": null,
"private": null,
"run_name": null,
"resume": null,
"capture_console": true
},
"peft": null,
"job": {
"target": null,
"image": "huggingface/lerobot-gpu:latest",
"timeout": "2d",
"detach": false,
"tags": []
},
"save_checkpoint_to_hub": false,
"sample_weighting": null,
"rename_map": {},
"checkpoint_path": "outputs/blue-cube-58-baselines/diffusion/checkpoints/006000"
}