File size: 1,205 Bytes
4d98a12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
SOLVER:
  gpu: 0,1,2,
  run: train
  logdir: logs/spatialLM_scannetpp
  max_epoch: 1500
  test_every_epoch: 1
  log_per_iter: 5
  ckpt_num: 5
  expand_ckpt: False
  port: 10001

  # optimizer
  type: adamw
  weight_decay: 0.01  # default value of adamw
  lr: 0.0001           # default value of adamw
  rand_seed: 0
  use_amp: True

  # learning rate
  lr_type: cos
  step_size: (160,240)

DATA:
  train:
    name: &name SpatialLM
    # data loading
    location: &location /home/runyi_yang/Gen3D/dataset/ScanNetpp-SpatialLM/
    filelist: &filelist data/ScanNetpp.txt
    codetemplate: &codetemplate utils/code_template.txt
    tokenizer_name: &tokenizer_name manycore-research/SpatialLM-Llama-1B # meta-llama/Llama-3.2-1B-Instruct
    config_path: &config_path checkpoints/SpatialLM-Llama-1B
    batch_size: 2
    shuffle: True
    num_workers: 16

  test:
    name: *name
    # data loading
    location: *location
    filelist: data/ScanNetpp.txt
    codetemplate: *codetemplate
    tokenizer_name: *tokenizer_name
    batch_size: 1
    shuffle: False
    num_workers: 0


MODEL:
  find_unused_parameters: True
  model_name: SpatialLMLlama
  tokenizer_name: *tokenizer_name
  config_path: *config_path