MCPcopy Create free account

hub / github.com/Jaykef/mlx-rag-gguf / functions

Functions42 in github.com/Jaykef/mlx-rag-gguf

↓ 4 callersMethod__init__
(self, dim, hidden_dim)
gguf.py:116
↓ 2 callersMethod__init__
(self, config: ModelConfig)
model.py:101
↓ 2 callersMethoddecode
(self, toks: List[int])
gguf.py:245
↓ 2 callersMethodrun
(self, input_text: List[str])
model.py:138
↓ 1 callersFunctionaverage_pool
(last_hidden_state: mx.array, attention_mask: mx.array)
model.py:14
↓ 1 callersFunctionchunks_to_mx_array
(chunks: List[str])
vdb.py:41
↓ 1 callersMethodencode
(self, s: str)
gguf.py:238
↓ 1 callersFunctionget_config
(metadata: dict)
gguf.py:217
↓ 1 callersMethodingest
(self, content: str)
vdb.py:74
↓ 1 callersFunctionmx_array_to_chunks
(data: mx.array, lengths: mx.array)
vdb.py:48
↓ 1 callersMethodquery
(self, text: str)
vdb.py:79
↓ 1 callersFunctionrag
( model: gguf.Model, tokenizer: gguf.GGUFTokenizer, prompt: str, max_tokens: int, temp: fl
rag_vdb.py:24
↓ 1 callersFunctionsample
(logits)
gguf.py:323
↓ 1 callersMethodsavez
(self, vdb_file)
vdb.py:85
↓ 1 callersFunctionsplit_text_into_chunks
Split text into chunks with a specified size and overlap. Parameters: - text (str): The input text to be split into chunks. - chunk_
vdb.py:11
↓ 1 callersFunctiontranslate_weight_names
(name)
gguf.py:249
↓ 1 callersFunctionvdb_from_pdf
(pdf_file: str)
vdb.py:95
Method__call__
( self, x: mx.array, mask: Optional[mx.array] = None, cache: Optional[Tuple[mx
gguf.py:83
Method__call__
(self, x)
gguf.py:122
Method__call__
( self, x: mx.array, mask: Optional[mx.array] = None, cache: Optional[Tuple[mx
gguf.py:139
Method__call__
( self, inputs: mx.array, cache=None, )
gguf.py:181
Method__call__
( self, inputs: mx.array, cache=None, )
gguf.py:208
Method__call__
(self, x, mask)
model.py:51
Method__call__
(self, x, mask)
model.py:73
Method__call__
(self, input_ids: mx.array, token_type_ids: mx.array)
model.py:89
Method__call__
( self, input_ids: mx.array, token_type_ids: mx.array, attention_mask: mx.arra
model.py:110
Method__init__
(self, vdb_file: Optional[str] = None)
vdb.py:60
Method__init__
(self, args: ModelArgs)
gguf.py:55
Method__init__
(self, args: ModelArgs)
gguf.py:127
Method__init__
(self, args: ModelArgs)
gguf.py:153
Method__init__
(self, args: ModelArgs)
gguf.py:203
Method__init__
(self, metadata)
gguf.py:235
Method__init__
( self, dims: int, num_heads: int, mlp_dims: Optional[int] = None, lay
model.py:35
Method__init__
( self, num_layers: int, dims: int, num_heads: int, mlp_dims: Optional[int] = None )
model.py:64
Method__init__
(self, config: ModelConfig)
model.py:81
Method__init__
(self)
model.py:128
Method__post_init__
(self)
gguf.py:31
Methodeos_token_id
(self)
gguf.py:242
Methodfrom_dict
(cls, params)
gguf.py:44
Functiongenerate
(prompt: mx.array, model: Model, temp: float = 0.0, max_tokens: int = 512, verbose: bool = False)
gguf.py:322
Functionload
(gguf_file: str, repo: str = None)
gguf.py:266
Functionspm_tokenizer
(metadata)
utils.py:7