boxin-wbx iristun commited on
Commit
5a57d92
1 Parent(s): 32d8bf4

Fix example code on README.md (#21)

Browse files

- Fix example code on README.md (c4fe18c4102abe2f1b6720f60ea27e1d51a74b3a)


Co-authored-by: Siri Thammarerkrit <iristun@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -158,6 +158,7 @@ def split_model():
158
  device_map['language_model.output'] = 0
159
  device_map['language_model.model.norm'] = 0
160
  device_map['language_model.lm_head'] = 0
 
161
  device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
162
 
163
  return device_map
@@ -205,6 +206,7 @@ def split_model():
205
  device_map['language_model.output'] = 0
206
  device_map['language_model.model.norm'] = 0
207
  device_map['language_model.lm_head'] = 0
 
208
  device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
209
 
210
  return device_map
 
158
  device_map['language_model.output'] = 0
159
  device_map['language_model.model.norm'] = 0
160
  device_map['language_model.lm_head'] = 0
161
+ device_map['language_model.model.rotary_emb'] = 0
162
  device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
163
 
164
  return device_map
 
206
  device_map['language_model.output'] = 0
207
  device_map['language_model.model.norm'] = 0
208
  device_map['language_model.lm_head'] = 0
209
+ device_map['language_model.model.rotary_emb'] = 0
210
  device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
211
 
212
  return device_map