dwko commited on
Commit
026dcf0
·
verified ·
1 Parent(s): 7791ace

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -5
README.md CHANGED
@@ -6,9 +6,10 @@ base_model:
6
  nvidia/Alpamayo-R1-10B 4bit Model.
7
 
8
 
9
- ---- model download ./Alpamayo-R1-10B-4bit
10
- ---- GPU 12G Memory Run abble, num_frames is 1 ~ 8, over OOM..
11
 
 
12
  import torch
13
  import numpy as np
14
 
@@ -16,12 +17,12 @@ from alpamayo_r1.models.alpamayo_r1 import AlpamayoR1
16
  from alpamayo_r1.load_physical_aiavdataset import load_physical_aiavdataset
17
  from alpamayo_r1 import helper
18
 
19
- # Example clip ID
20
  model_path = "Alpamayo-R1-10B-4bit"
21
  model = AlpamayoR1.from_pretrained(model_path, dtype=torch.bfloat16).to("cuda")
22
  processor = helper.get_processor(model.tokenizer)
23
 
24
- # Example clip ID
25
  clip_id = "030c760c-ae38-49aa-9ad8-f5650a545d26"
26
  print(f"Loading dataset for clip_id: {clip_id}...")
27
  data = load_physical_aiavdataset(clip_id, t0_us=15_100_000,num_frames=1)
@@ -57,7 +58,7 @@ with torch.autocast("cuda", dtype=torch.bfloat16):
57
  return_extra=True,
58
  )
59
 
60
- # the size is [batch_size, num_traj_sets, num_traj_samples]
61
  print("Chain-of-Causation (per trajectory):\n", extra["cot"][0])
62
 
63
  gt_xy = data["ego_future_xyz"].cpu()[0, 0, :, :2].T.numpy()
 
6
  nvidia/Alpamayo-R1-10B 4bit Model.
7
 
8
 
9
+ model download ./Alpamayo-R1-10B-4bit
10
+ GPU 12G Memory Run abble, num_frames is 1 ~ 8, over OOM
11
 
12
+ -------------------------
13
  import torch
14
  import numpy as np
15
 
 
17
  from alpamayo_r1.load_physical_aiavdataset import load_physical_aiavdataset
18
  from alpamayo_r1 import helper
19
 
20
+
21
  model_path = "Alpamayo-R1-10B-4bit"
22
  model = AlpamayoR1.from_pretrained(model_path, dtype=torch.bfloat16).to("cuda")
23
  processor = helper.get_processor(model.tokenizer)
24
 
25
+
26
  clip_id = "030c760c-ae38-49aa-9ad8-f5650a545d26"
27
  print(f"Loading dataset for clip_id: {clip_id}...")
28
  data = load_physical_aiavdataset(clip_id, t0_us=15_100_000,num_frames=1)
 
58
  return_extra=True,
59
  )
60
 
61
+
62
  print("Chain-of-Causation (per trajectory):\n", extra["cot"][0])
63
 
64
  gt_xy = data["ego_future_xyz"].cpu()[0, 0, :, :2].T.numpy()