Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OSU-NLP-Group/In-Context-Reranking
/ types & classes
Types & classes
25 in github.com/OSU-NLP-Group/In-Context-Reranking
⨍
Functions
90
◇
Types & classes
25
↳
Endpoints
2
↓ 3 callers
Class
LlamaRMSNorm
src/custom/custom_modeling_llama.py:126
↓ 3 callers
Class
MistralRMSNorm
src/custom/custom_modeling_mistral.py:65
↓ 2 callers
Class
LlamaRotaryEmbedding
src/custom/custom_modeling_llama.py:149
↓ 1 callers
Class
DynamicCacheWithQuery
Cache class used for In-context RAG
src/custom/custom_cache.py:5
↓ 1 callers
Class
InContextReranker
src/in_context_reranker.py:14
↓ 1 callers
Class
LlamaDecoderLayer
src/custom/custom_modeling_llama.py:718
↓ 1 callers
Class
LlamaMLP
src/custom/custom_modeling_llama.py:295
↓ 1 callers
Class
LlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LlamaDecoderLayer`] Args: config: LlamaConfig
src/custom/custom_modeling_llama.py:921
↓ 1 callers
Class
MistralDecoderLayer
src/custom/custom_modeling_mistral.py:526
↓ 1 callers
Class
MistralMLP
src/custom/custom_modeling_mistral.py:150
↓ 1 callers
Class
MistralModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`MistralDecoderLayer`] Args: config: MistralCo
src/custom/custom_modeling_mistral.py:719
↓ 1 callers
Class
MistralRotaryEmbedding
src/custom/custom_modeling_mistral.py:85
↓ 1 callers
Class
RankGPTModel
src/rank_gpt_reranker.py:11
Class
LlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
src/custom/custom_modeling_llama.py:341
Class
LlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
src/custom/custom_modeling_llama.py:248
Class
LlamaFlashAttention2
Llama flash attention module. This module inherits from `LlamaAttention` as the weights of the module stays untouched. The only required chan
src/custom/custom_modeling_llama.py:480
Class
LlamaForCausalLM
src/custom/custom_modeling_llama.py:1145
Class
LlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
src/custom/custom_modeling_llama.py:236
Class
LlamaPreTrainedModel
src/custom/custom_modeling_llama.py:819
Class
LlamaSdpaAttention
Llama attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from `LlamaAttention` as the weights of t
src/custom/custom_modeling_llama.py:612
Class
MistralAttention
Multi-headed attention from 'Attention Is All You Need' paper. Modified to use sliding window attention: Longformer and "Generating Long Sequ
src/custom/custom_modeling_mistral.py:177
Class
MistralFlashAttention2
Mistral flash attention module. This module inherits from `MistralAttention` as the weights of the module stays untouched. The only required
src/custom/custom_modeling_mistral.py:281
Class
MistralForCausalLM
src/custom/custom_modeling_mistral.py:977
Class
MistralPreTrainedModel
src/custom/custom_modeling_mistral.py:622
Class
MistralSdpaAttention
Mistral attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from `MistralAttention` as the weights
src/custom/custom_modeling_mistral.py:429