faisalmumtaz commited on
Commit
5a88cb2
·
verified ·
1 Parent(s): e9fd252

Fix: model.layers instead of model.model.layers (validated working)

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -130,7 +130,7 @@ model = AutoModel.from_pretrained("faisalmumtaz/codecompass-embed", trust_remote
130
  tokenizer = AutoTokenizer.from_pretrained("faisalmumtaz/codecompass-embed")
131
 
132
  # CRITICAL: Enable bidirectional attention for embeddings
133
- for layer in model.model.layers:
134
  layer.self_attn.is_causal = False
135
 
136
  model.eval()
 
130
  tokenizer = AutoTokenizer.from_pretrained("faisalmumtaz/codecompass-embed")
131
 
132
  # CRITICAL: Enable bidirectional attention for embeddings
133
+ for layer in model.layers:
134
  layer.self_attn.is_causal = False
135
 
136
  model.eval()