taka-yamakoshi commited on
Commit
bd707c0
1 Parent(s): 65b8143
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -264,7 +264,7 @@ if __name__=='__main__':
264
  interventions = [create_interventions(16,['lay','qry','key','val'],num_heads,multihead) if i==layer_id else {'lay':[],'qry':[],'key':[],'val':[]} for i in range(num_layers)]
265
  if multihead:
266
  probs = run_intervention(interventions,1,model,masked_ids_option_1,masked_ids_option_2,option_1_tokens,option_2_tokens,pron_locs)
267
- else
268
  probs = run_intervention(interventions,num_heads,model,masked_ids_option_1,masked_ids_option_2,option_1_tokens,option_2_tokens,pron_locs)
269
 
270
- st.write(probs)
 
264
  interventions = [create_interventions(16,['lay','qry','key','val'],num_heads,multihead) if i==layer_id else {'lay':[],'qry':[],'key':[],'val':[]} for i in range(num_layers)]
265
  if multihead:
266
  probs = run_intervention(interventions,1,model,masked_ids_option_1,masked_ids_option_2,option_1_tokens,option_2_tokens,pron_locs)
267
+ else:
268
  probs = run_intervention(interventions,num_heads,model,masked_ids_option_1,masked_ids_option_2,option_1_tokens,option_2_tokens,pron_locs)
269
 
270
+ st.write(probs_original-probs)