Sentence Similarity
Transformers
Safetensors
English
llama
feature-extraction
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
text-reranking
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
custom_code
text-generation-inference
Inference Endpoints
Update modeling_llama_encoder.py
Browse filesChange to point to correct abstraction
modeling_llama_encoder.py
CHANGED
@@ -53,7 +53,7 @@ class ModifiedLlamaDecoderLayer(LlamaDecoderLayer):
|
|
53 |
self.post_attention_layernorm = LlamaRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
54 |
|
55 |
|
56 |
-
class
|
57 |
def __init__(self, config):
|
58 |
LlamaPreTrainedModel.__init__(self, config)
|
59 |
self.padding_idx = config.pad_token_id
|
|
|
53 |
self.post_attention_layernorm = LlamaRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
54 |
|
55 |
|
56 |
+
class LlamaEncoderModel(LlamaModel):
|
57 |
def __init__(self, config):
|
58 |
LlamaPreTrainedModel.__init__(self, config)
|
59 |
self.padding_idx = config.pad_token_id
|