root commited on
Commit
647f0a5
·
1 Parent(s): 4fe0a57

add offload mode

Browse files
ckpt/songgeneration_base/config.yaml CHANGED
@@ -106,3 +106,36 @@ conditioners:
106
  QwTextTokenizer:
107
  token_path: third_party/Qwen2-7B
108
  max_len: 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  QwTextTokenizer:
107
  token_path: third_party/Qwen2-7B
108
  max_len: 50
109
+
110
+ offload:
111
+ audiolm:
112
+ offload_module: self
113
+ cpu_mem_gb: 0
114
+ pre_copy_step: 1
115
+ clean_cache_after_forward: false
116
+ dtype: torch.float16
117
+ offload_layer_dict:
118
+ transformer: 4
119
+ transformer2: 4
120
+ ignore_layer_list: []
121
+ clean_cache_wrapper:
122
+ module: self
123
+ method_name: _sample_next_token
124
+ diff_mem_gb_thre: 2
125
+ debug: false
126
+
127
+ wav_tokenizer_diffusion:
128
+ offload_module: self.model.model
129
+ pre_copy_step: 1
130
+ clean_cache_after_forward: false
131
+ cpu_mem_gb: -1
132
+ dtype: null
133
+ offload_layer_dict:
134
+ cfm_wrapper: 5
135
+ hubert: 4
136
+ ignore_layer_list: []
137
+ clean_cache_wrapper:
138
+ module: self.model.model.cfm_wrapper.estimator
139
+ method_name: forward
140
+ diff_mem_gb_thre: 1
141
+ debug: false