MCPcopy Index your code

hub / github.com/josStorer/RWKV-Runner / functions

Functions3,079 in github.com/josStorer/RWKV-Runner

↓ 145 callersMethodget
(self, key)
backend-python/albatross_engine/state_cache.py:30
↓ 99 callersMethodempty
(N, B, C, H, device, dtype)
finetune/lora/v6/src/infctx_module.py:35
↓ 90 callersMethodget
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get(
finetune/lora/v6/src/binidx.py:238
↓ 81 callersMethodclone
Clones the sampler chain and its internal state.
py310/Lib/site-packages/llama_cpp/_internals.py:1856
↓ 71 callersFunctionmatmul
( a, b, mx: Optional[torch.Tensor] = None, rx: Optional[torch.Tensor] = None, my: Optional
backend-python/rwkv_pip/model.py:228
↓ 66 callersMethodapply
(self, token_data)
py310/Lib/site-packages/llama_cpp/_internals.py:1303
↓ 59 callersMethodadvance
(self, seconds)
backend-python/tests/test_albatross_throughput.py:13
↓ 47 callersFunctionset
(key, value)
backend-python/global_var.py:30
↓ 46 callersMethodsize
(self, index)
finetune/json2binidx_tool/tools/indexed_dataset.py:204
↓ 39 callersFunctiondefineApp
(name, func)
frontend/src/webWails.js:7
↓ 36 callersMethodtime
(self, name: str)
backend-python/albatross_engine/profiling.py:42
↓ 31 callersFunctionFileExists
(arg1)
frontend/wailsjs/go/backend_golang/App.js:69
↓ 31 callersMethoddecode
Evaluate the batch of tokens using the transformer model. This method executes the forward pass. If the KV cache is heavily fragment
py310/Lib/site-packages/llama_cpp/_internals.py:662
↓ 30 callersMethodadd
(self, key:bytes, idx:int=0, val=None)
finetune/json2binidx_tool/tools/rwkv_tokenizer.py:149
↓ 29 callersMethodfilter
(self, seq_len: int, *args, **kwargs)
finetune/lora/v6/fla/modules/convolution.py:319
↓ 28 callersMethoddetokenize
Detokenize a list of tokens. Args: tokens: The list of tokens to detokenize. prev_tokens: The list of previous tokens
py310/Lib/site-packages/llama_cpp/llama.py:824
↓ 26 callersMethodencode
(self, batch: LlamaBatch)
py310/Lib/site-packages/llama_cpp/_internals.py:654
↓ 25 callersMethodupdate
Updates the cache with the new `state` for the layer `layer_idx`. Parameters: state (`Tuple[torch.Tensor]`):
finetune/lora/v6/fla/models/utils.py:39
↓ 23 callersMethod_add_rule
(self, name, rule)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:591
↓ 23 callersFunction_map_roles
Map the message roles.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:901
↓ 23 callersMethodclose
Explicitly free the model from memory.
py310/Lib/site-packages/llama_cpp/llama.py:696
↓ 22 callersMethodclear
Clears all stored checkpoints and resets memory tracking.
py310/Lib/site-packages/llama_cpp/llama_cache.py:395
↓ 22 callersMethodwrite
(self, sizes, doc_idx)
finetune/lora/v6/src/binidx.py:87
↓ 21 callersMethodempty
(self)
backend-python/albatross_engine/core.py:91
↓ 21 callersMethodencode
(self, x: str)
backend-python/rwkv_pip/utils.py:118
↓ 21 callersMethodexists
(path)
finetune/lora/v6/src/binidx.py:302
↓ 20 callersMethod_add_sampler
(self, sampler: llama_cpp.llama_sampler_p)
py310/Lib/site-packages/llama_cpp/_internals.py:1831
↓ 20 callersMethodfrom_string
(cls, grammar: str, verbose: bool = True)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:31
↓ 19 callersFunctiontoastWithButton
( text: string, buttonText: string, onClickButton: () => void, options?: ToastOptions )
frontend/src/utils/index.tsx:792
↓ 17 callersMethodGetAbsPath
(path string)
backend-golang/file.go:21
↓ 17 callersMethoddecode
(self, x)
backend-python/rwkv_pip/utils.py:129
↓ 16 callersMethodfrom_legacy_cache
Converts a cache in the legacy cache format into an equivalent `RecurrentCache`.
finetune/lora/v6/fla/models/utils.py:96
↓ 15 callersFunctionEventsOn
(eventName, callback)
frontend/wailsjs/runtime/runtime.js:43
↓ 15 callersFunction_get_system_message
Get the first system message.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:891
↓ 15 callersMethodcreate_completion
Generate text from a prompt. Args: prompt: The prompt to generate text from. suffix: A suffix to append to the generated text. If
py310/Lib/site-packages/llama_cpp/llama.py:2446
↓ 15 callersFunctionquick_log
(request: Union[Request, None], body: Any, response: str)
backend-python/utils/log.py:29
↓ 15 callersFunctionsetSelectedConfigModelParams
( newParams: Partial<ModelParameters> )
frontend/src/pages/Configs.tsx:156
↓ 14 callersMethodis_disconnected
(self)
backend-python/tests/test_albatross_completion_contract.py:16
↓ 14 callersMethodwrite
(self, sizes, doc_idx)
finetune/json2binidx_tool/tools/indexed_dataset.py:371
↓ 13 callersFunctionCmd
(args ...string)
backend-golang/utils.go:63
↓ 13 callersFunction_convert_text_completion_logprobs_to_chat
( logprobs: Optional[llama_types.CompletionLogprobs], )
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:299
↓ 13 callersFunctionexit
(timeout?: number, port?: number)
frontend/src/apis/index.ts:10
↓ 12 callersMethod__call__
( self, *, messages: List[llama_types.ChatCompletionRequestMessage], **kwargs:
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:214
↓ 12 callersFunctioncreateTask
( cmdArgs: string[], onOutput?: OutputHandler )
frontend/src/utils/rwkv-task.ts:61
↓ 12 callersMethodinsert
(self, string)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:552
↓ 12 callersFunctionsendBatchCompletionUpdate
(ctx context.Context, updates chan<- BatchCompletionUpdate, update BatchCompletionUpdate)
backend-golang/batch_completion.go:322
↓ 11 callersMethodinit
初始化 Worker,返回一个异步任务,当全部 worker 都加载成功后完成 Args: worker_num: Worker 数量 model_config: 模型配置 batch_siz
backend-python/albatross_engine/core.py:128
↓ 11 callersMethodsetChatParams
(value: Partial<ChatParams>)
frontend/src/stores/commonStore.ts:614
↓ 11 callersFunctionsetEditingPreset
(newParams: Partial<Preset>)
frontend/src/pages/PresetsManager/PresetsButton.tsx:169
↓ 11 callersFunctionsetParams
(newParams: Partial<CompositionParams>)
frontend/src/pages/Composition.tsx:74
↓ 11 callersMethodsize
(self)
py310/Lib/site-packages/llama_cpp/_internals.py:163
↓ 11 callersMethodtokenize
Tokenize a string. Args: text: The utf-8 encoded string to tokenize. add_bos: Whether to add a beginning of sequence
py310/Lib/site-packages/llama_cpp/llama.py:806
↓ 10 callersMethodGetPython
()
backend-golang/utils.go:156
↓ 10 callersMethod__init__
( self, clip_model_path: str, verbose: bool = True, use_gpu: b
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:2857
↓ 10 callersMethod__init__
(self, args)
finetune/lora/v6/src/model.py:1448
↓ 10 callersFunctioncreate_completion
(prompt, stop, grammar)
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:2186
↓ 10 callersMethodfrom_pretrained
Create a Llama model from a pretrained model name or path. This method requires the huggingface_hub package. You can install it with `
py310/Lib/site-packages/llama_cpp/llama.py:3247
↓ 10 callersFunctionfwd_inner
(q, k, v, g, B, H, T, K, V, BT, BK, BV, gatek=False, h0=None, ht=None)
finetune/lora/v6/fla/ops/abc/chunk_gate.py:893
↓ 10 callersFunctionload_build_script
()
backend-python/tests/test_albatross_build_script.py:8
↓ 10 callersFunctionmake_linear_att
(*args, **kwargs)
finetune/lora/v6/src/model.py:148
↓ 10 callersFunctionmore_digits
(min_digits: int, max_digits: int)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:307
↓ 10 callersMethodpad
(self, idx, length=None)
finetune/lora/v6/src/binidx.py:253
↓ 10 callersMethodput_nowait
(self, item: Any)
backend-python/albatross_engine/interface.py:21
↓ 10 callersFunctionsetParams
(newParams: Partial<CompletionParams>)
frontend/src/pages/Completion.tsx:264
↓ 9 callersMethod_add_primitive
(self, name: str, rule: BuiltinRule)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:965
↓ 9 callersMethod_get_data_ptr
(self, tensor: NumpyArrayOrPyTorchTensor)
backend-python/rwkv_pip/cpp/rwkv_cpp_model.py:361
↓ 9 callersMethod_validate_tensor
(self, tensor: NumpyArrayOrPyTorchTensor, name: str, size: int)
backend-python/rwkv_pip/cpp/rwkv_cpp_model.py:338
↓ 9 callersMethodabort
Safely aborts any ongoing text generation. Useful for async API environments or UI interruption buttons.
py310/Lib/site-packages/llama_cpp/llama.py:864
↓ 9 callersFunctiondefineRuntime
(name, func)
frontend/src/webWails.js:3
↓ 9 callersFunctiondigit_range
(from_char: str, to_char: str)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:297
↓ 9 callersFunctioneval
( model: Union[AbstractRWKV, AbstractLlama], request: Request, body: ModelConfigBody, prompt:
backend-python/routes/completion.py:483
↓ 9 callersMethodexists
(path)
finetune/json2binidx_tool/tools/indexed_dataset.py:208
↓ 9 callersMethodget_memory
(self)
py310/Lib/site-packages/llama_cpp/_internals.py:542
↓ 9 callersFunctionmake_linear_ffn
(*args, **kwargs)
finetune/lora/v6/src/model.py:156
↓ 9 callersMethodmodel
(self)
py310/Lib/site-packages/llama_cpp/llama.py:758
↓ 9 callersMethodobserve
(self, decode_tokens: int, active_batch: int)
backend-python/albatross_engine/throughput.py:45
↓ 9 callersFunctionsetSelectedConfigApiParams
(newParams: Partial<ApiParameters>)
frontend/src/pages/Configs.tsx:146
↓ 8 callersFunctionAddToDownloadList
(arg1, arg2)
frontend/wailsjs/go/backend_golang/App.js:5
↓ 8 callersFunctionBrowserOpenURL
(url)
frontend/wailsjs/runtime/runtime.js:176
↓ 8 callersFunctionGetPython
()
frontend/wailsjs/go/backend_golang/App.js:117
↓ 8 callersFunction_restore_env
(name, previous)
backend-python/tests/test_albatross_sampling_dispatch.py:14
↓ 8 callersFunction_set_env
(name, value)
backend-python/tests/test_albatross_sampling_dispatch.py:8
↓ 8 callersMethodadd
(self, key:bytes, idx:int=0, val=None)
backend-python/albatross/utils.py:82
↓ 8 callersMethodbackward
(ctx, dy, *args)
finetune/lora/v6/fla/modules/l2norm.py:187
↓ 8 callersMethodcheck
(self, tokens: list[int], return_trie_node: bool = False)
backend-python/albatross_engine/state_cache.py:58
↓ 8 callersFunctionchunk_rwkv6
r""" Args: r (torch.Tensor): reception of shape `(B, H, T, K)`. Alias: q, query in linear attention. k (torch.Tensor):
finetune/lora/v6/fla/ops/rwkv6/chunk.py:793
↓ 8 callersMethodsetEditingPreset
(value: Preset | null)
frontend/src/stores/commonStore.ts:520
↓ 8 callersMethodto_legacy_cache
(self)
finetune/lora/v6/fla/models/utils.py:92
↓ 7 callersMethod__init__
( self, head_dim: int, dot_dim: int = None )
finetune/lora/v6/fla/modules/feature_map.py:72
↓ 7 callersFunction_convert_completion_to_chat
( completion_or_chunks: Union[ llama_types.CreateCompletionResponse, Iterator[llama_types.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:391
↓ 7 callersFunction_format_no_colon_single
Format the prompt with the no-colon-single style.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:961
↓ 7 callersFunction_split_env_paths
(value: str | None)
backend-python/albatross/kernel_loader.py:171
↓ 7 callersFunctionabsPathAsset
(path: string)
frontend/src/utils/index.tsx:535
↓ 7 callersMethodcache
( self, tokens: tuple[int, ...], state: object, return_trie_node: bool = False
backend-python/albatross_engine/state_cache.py:138
↓ 7 callersFunctioncheckDependencies
(navigate: NavigateFunction)
frontend/src/utils/index.tsx:684
↓ 7 callersMethodclose
Manually free LlamaModel and Vocab/Lora resources.
py310/Lib/site-packages/llama_cpp/_internals.py:80
↓ 7 callersFunctiondata_file_path
(prefix_path)
finetune/json2binidx_tool/tools/indexed_dataset.py:121
↓ 7 callersMethoddecode
(self, tokens)
finetune/json2binidx_tool/tools/rwkv_tokenizer.py:103
↓ 7 callersFunctionfind_precompiled_kernel
( manifest_path: Path, context: RuntimeKernelContext, forced_arch: str | None = None, preferre
backend-python/albatross/kernel_loader.py:81
↓ 7 callersMethodinit_state
(self, batch_size: int)
finetune/lora/v6/fla/layers/abc.py:185
next →1–100 of 3,079, ranked by callers