Instructions to use nanyong/hd_cube_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nanyong/hd_cube_data with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/home/yong/.cache/huggingface/hub/models--nvidia--GR00T-N1.5-3B/snapshots/869830fc749c35f34771aa5209f923ac57e4564e") model = PeftModel.from_pretrained(base_model, "nanyong/hd_cube_data") - Transformers
How to use nanyong/hd_cube_data with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nanyong/hd_cube_data")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nanyong/hd_cube_data", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use nanyong/hd_cube_data with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nanyong/hd_cube_data" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nanyong/hd_cube_data", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nanyong/hd_cube_data
- SGLang
How to use nanyong/hd_cube_data with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nanyong/hd_cube_data" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nanyong/hd_cube_data", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nanyong/hd_cube_data" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nanyong/hd_cube_data", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nanyong/hd_cube_data with Docker Model Runner:
docker model run hf.co/nanyong/hd_cube_data
| { | |
| "new_embodiment": { | |
| "statistics": { | |
| "state": { | |
| "single_arm": { | |
| "max": [ | |
| 99.99990844726562, | |
| 51.9437255859375, | |
| 93.48324584960938, | |
| 96.32188415527344, | |
| 35.07838439941406 | |
| ], | |
| "min": [ | |
| -91.66127014160156, | |
| -88.97895050048828, | |
| -28.00438690185547, | |
| -50.860477447509766, | |
| -100.00023651123047 | |
| ], | |
| "mean": [ | |
| 21.03367890273503, | |
| 1.1030686545729946, | |
| 41.68055397753646, | |
| 44.77361904210997, | |
| -56.69333935692461 | |
| ], | |
| "std": [ | |
| 41.59463070654918, | |
| 23.638172434409523, | |
| 19.375597900427884, | |
| 15.406756843879764, | |
| 18.707435549437303 | |
| ], | |
| "q01": [ | |
| -25.444503728731775, | |
| -59.52129995073758, | |
| 15.233690688391588, | |
| 22.42639518557361, | |
| -73.63244373120298 | |
| ], | |
| "q99": [ | |
| 59.326594586897244, | |
| 25.592822186749114, | |
| 77.43159138385349, | |
| 73.27675106948271, | |
| -35.39627751763497 | |
| ] | |
| }, | |
| "gripper": { | |
| "max": [ | |
| 99.42147064208984 | |
| ], | |
| "min": [ | |
| -0.06340460479259491 | |
| ], | |
| "mean": [ | |
| 28.053772225320138 | |
| ], | |
| "std": [ | |
| 14.521947184693227 | |
| ], | |
| "q01": [ | |
| 0.03799313587975565 | |
| ], | |
| "q99": [ | |
| 53.820131566014055 | |
| ] | |
| } | |
| }, | |
| "action": { | |
| "single_arm": { | |
| "max": [ | |
| 100.0, | |
| 49.271636962890625, | |
| 90.2628173828125, | |
| 96.76152038574219, | |
| 34.71453857421875 | |
| ], | |
| "min": [ | |
| -91.93470764160156, | |
| -91.0882568359375, | |
| -28.996116638183594, | |
| -7.654563903808594, | |
| -99.99999237060547 | |
| ], | |
| "mean": [ | |
| 20.729848390641433, | |
| -0.4122738836930831, | |
| 40.925617184138815, | |
| 44.49265030199714, | |
| -57.106044903448016 | |
| ], | |
| "std": [ | |
| 41.706600799756096, | |
| 23.899079920192257, | |
| 19.4429621499249, | |
| 15.707574734056939, | |
| 18.87956638739316 | |
| ], | |
| "q01": [ | |
| -25.571374369440043, | |
| -60.38545615964774, | |
| 14.37352122457684, | |
| 22.296494969560495, | |
| -73.82506888233564 | |
| ], | |
| "q99": [ | |
| 59.54241269623638, | |
| 24.706491924213196, | |
| 76.18478920346178, | |
| 73.57007338767635, | |
| -39.61760967791319 | |
| ] | |
| }, | |
| "gripper": { | |
| "max": [ | |
| 99.43319702148438 | |
| ], | |
| "min": [ | |
| 8.669766202729079e-07 | |
| ], | |
| "mean": [ | |
| 19.844254181132268 | |
| ], | |
| "std": [ | |
| 19.47381576048116 | |
| ], | |
| "q01": [ | |
| 0.0004473859944101122 | |
| ], | |
| "q99": [ | |
| 54.57485574697997 | |
| ] | |
| } | |
| } | |
| }, | |
| "modalities": { | |
| "video": { | |
| "front": { | |
| "resolution": [ | |
| 640, | |
| 480 | |
| ], | |
| "channels": 3, | |
| "fps": 30.0 | |
| }, | |
| "wrist": { | |
| "resolution": [ | |
| 640, | |
| 480 | |
| ], | |
| "channels": 3, | |
| "fps": 30.0 | |
| } | |
| }, | |
| "state": { | |
| "single_arm": { | |
| "absolute": true, | |
| "rotation_type": null, | |
| "shape": [ | |
| 5 | |
| ], | |
| "continuous": true | |
| }, | |
| "gripper": { | |
| "absolute": true, | |
| "rotation_type": null, | |
| "shape": [ | |
| 1 | |
| ], | |
| "continuous": true | |
| } | |
| }, | |
| "action": { | |
| "single_arm": { | |
| "absolute": true, | |
| "rotation_type": null, | |
| "shape": [ | |
| 5 | |
| ], | |
| "continuous": true | |
| }, | |
| "gripper": { | |
| "absolute": true, | |
| "rotation_type": null, | |
| "shape": [ | |
| 1 | |
| ], | |
| "continuous": true | |
| } | |
| } | |
| }, | |
| "embodiment_tag": "new_embodiment" | |
| } | |
| } |