Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/josStorer/RWKV-Runner
/ functions
Functions
3,079 in github.com/josStorer/RWKV-Runner
⨍
Functions
3,079
◇
Types & classes
580
↳
Endpoints
115
↓ 145 callers
Method
get
(self, key)
backend-python/albatross_engine/state_cache.py:30
↓ 99 callers
Method
empty
(N, B, C, H, device, dtype)
finetune/lora/v6/src/infctx_module.py:35
↓ 90 callers
Method
get
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 callers
Method
clone
Clones the sampler chain and its internal state.
py310/Lib/site-packages/llama_cpp/_internals.py:1856
↓ 71 callers
Function
matmul
( a, b, mx: Optional[torch.Tensor] = None, rx: Optional[torch.Tensor] = None, my: Optional
backend-python/rwkv_pip/model.py:228
↓ 66 callers
Method
apply
(self, token_data)
py310/Lib/site-packages/llama_cpp/_internals.py:1303
↓ 59 callers
Method
advance
(self, seconds)
backend-python/tests/test_albatross_throughput.py:13
↓ 47 callers
Function
set
(key, value)
backend-python/global_var.py:30
↓ 46 callers
Method
size
(self, index)
finetune/json2binidx_tool/tools/indexed_dataset.py:204
↓ 39 callers
Function
defineApp
(name, func)
frontend/src/webWails.js:7
↓ 36 callers
Method
time
(self, name: str)
backend-python/albatross_engine/profiling.py:42
↓ 31 callers
Function
FileExists
(arg1)
frontend/wailsjs/go/backend_golang/App.js:69
↓ 31 callers
Method
decode
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 callers
Method
add
(self, key:bytes, idx:int=0, val=None)
finetune/json2binidx_tool/tools/rwkv_tokenizer.py:149
↓ 29 callers
Method
filter
(self, seq_len: int, *args, **kwargs)
finetune/lora/v6/fla/modules/convolution.py:319
↓ 28 callers
Method
detokenize
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 callers
Method
encode
(self, batch: LlamaBatch)
py310/Lib/site-packages/llama_cpp/_internals.py:654
↓ 25 callers
Method
update
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 callers
Method
_add_rule
(self, name, rule)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:591
↓ 23 callers
Function
_map_roles
Map the message roles.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:901
↓ 23 callers
Method
close
Explicitly free the model from memory.
py310/Lib/site-packages/llama_cpp/llama.py:696
↓ 22 callers
Method
clear
Clears all stored checkpoints and resets memory tracking.
py310/Lib/site-packages/llama_cpp/llama_cache.py:395
↓ 22 callers
Method
write
(self, sizes, doc_idx)
finetune/lora/v6/src/binidx.py:87
↓ 21 callers
Method
empty
(self)
backend-python/albatross_engine/core.py:91
↓ 21 callers
Method
encode
(self, x: str)
backend-python/rwkv_pip/utils.py:118
↓ 21 callers
Method
exists
(path)
finetune/lora/v6/src/binidx.py:302
↓ 20 callers
Method
_add_sampler
(self, sampler: llama_cpp.llama_sampler_p)
py310/Lib/site-packages/llama_cpp/_internals.py:1831
↓ 20 callers
Method
from_string
(cls, grammar: str, verbose: bool = True)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:31
↓ 19 callers
Function
toastWithButton
( text: string, buttonText: string, onClickButton: () => void, options?: ToastOptions )
frontend/src/utils/index.tsx:792
↓ 17 callers
Method
GetAbsPath
(path string)
backend-golang/file.go:21
↓ 17 callers
Method
decode
(self, x)
backend-python/rwkv_pip/utils.py:129
↓ 16 callers
Method
from_legacy_cache
Converts a cache in the legacy cache format into an equivalent `RecurrentCache`.
finetune/lora/v6/fla/models/utils.py:96
↓ 15 callers
Function
EventsOn
(eventName, callback)
frontend/wailsjs/runtime/runtime.js:43
↓ 15 callers
Function
_get_system_message
Get the first system message.
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:891
↓ 15 callers
Method
create_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 callers
Function
quick_log
(request: Union[Request, None], body: Any, response: str)
backend-python/utils/log.py:29
↓ 15 callers
Function
setSelectedConfigModelParams
( newParams: Partial<ModelParameters> )
frontend/src/pages/Configs.tsx:156
↓ 14 callers
Method
is_disconnected
(self)
backend-python/tests/test_albatross_completion_contract.py:16
↓ 14 callers
Method
write
(self, sizes, doc_idx)
finetune/json2binidx_tool/tools/indexed_dataset.py:371
↓ 13 callers
Function
Cmd
(args ...string)
backend-golang/utils.go:63
↓ 13 callers
Function
_convert_text_completion_logprobs_to_chat
( logprobs: Optional[llama_types.CompletionLogprobs], )
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:299
↓ 13 callers
Function
exit
(timeout?: number, port?: number)
frontend/src/apis/index.ts:10
↓ 12 callers
Method
__call__
( self, *, messages: List[llama_types.ChatCompletionRequestMessage], **kwargs:
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:214
↓ 12 callers
Function
createTask
( cmdArgs: string[], onOutput?: OutputHandler )
frontend/src/utils/rwkv-task.ts:61
↓ 12 callers
Method
insert
(self, string)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:552
↓ 12 callers
Function
sendBatchCompletionUpdate
(ctx context.Context, updates chan<- BatchCompletionUpdate, update BatchCompletionUpdate)
backend-golang/batch_completion.go:322
↓ 11 callers
Method
init
初始化 Worker,返回一个异步任务,当全部 worker 都加载成功后完成 Args: worker_num: Worker 数量 model_config: 模型配置 batch_siz
backend-python/albatross_engine/core.py:128
↓ 11 callers
Method
setChatParams
(value: Partial<ChatParams>)
frontend/src/stores/commonStore.ts:614
↓ 11 callers
Function
setEditingPreset
(newParams: Partial<Preset>)
frontend/src/pages/PresetsManager/PresetsButton.tsx:169
↓ 11 callers
Function
setParams
(newParams: Partial<CompositionParams>)
frontend/src/pages/Composition.tsx:74
↓ 11 callers
Method
size
(self)
py310/Lib/site-packages/llama_cpp/_internals.py:163
↓ 11 callers
Method
tokenize
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 callers
Method
GetPython
()
backend-golang/utils.go:156
↓ 10 callers
Method
__init__
( self, clip_model_path: str, verbose: bool = True, use_gpu: b
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:2857
↓ 10 callers
Method
__init__
(self, args)
finetune/lora/v6/src/model.py:1448
↓ 10 callers
Function
create_completion
(prompt, stop, grammar)
py310/Lib/site-packages/llama_cpp/llama_chat_format.py:2186
↓ 10 callers
Method
from_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 callers
Function
fwd_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 callers
Function
load_build_script
()
backend-python/tests/test_albatross_build_script.py:8
↓ 10 callers
Function
make_linear_att
(*args, **kwargs)
finetune/lora/v6/src/model.py:148
↓ 10 callers
Function
more_digits
(min_digits: int, max_digits: int)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:307
↓ 10 callers
Method
pad
(self, idx, length=None)
finetune/lora/v6/src/binidx.py:253
↓ 10 callers
Method
put_nowait
(self, item: Any)
backend-python/albatross_engine/interface.py:21
↓ 10 callers
Function
setParams
(newParams: Partial<CompletionParams>)
frontend/src/pages/Completion.tsx:264
↓ 9 callers
Method
_add_primitive
(self, name: str, rule: BuiltinRule)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:965
↓ 9 callers
Method
_get_data_ptr
(self, tensor: NumpyArrayOrPyTorchTensor)
backend-python/rwkv_pip/cpp/rwkv_cpp_model.py:361
↓ 9 callers
Method
_validate_tensor
(self, tensor: NumpyArrayOrPyTorchTensor, name: str, size: int)
backend-python/rwkv_pip/cpp/rwkv_cpp_model.py:338
↓ 9 callers
Method
abort
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 callers
Function
defineRuntime
(name, func)
frontend/src/webWails.js:3
↓ 9 callers
Function
digit_range
(from_char: str, to_char: str)
py310/Lib/site-packages/llama_cpp/llama_grammar.py:297
↓ 9 callers
Function
eval
( model: Union[AbstractRWKV, AbstractLlama], request: Request, body: ModelConfigBody, prompt:
backend-python/routes/completion.py:483
↓ 9 callers
Method
exists
(path)
finetune/json2binidx_tool/tools/indexed_dataset.py:208
↓ 9 callers
Method
get_memory
(self)
py310/Lib/site-packages/llama_cpp/_internals.py:542
↓ 9 callers
Function
make_linear_ffn
(*args, **kwargs)
finetune/lora/v6/src/model.py:156
↓ 9 callers
Method
model
(self)
py310/Lib/site-packages/llama_cpp/llama.py:758
↓ 9 callers
Method
observe
(self, decode_tokens: int, active_batch: int)
backend-python/albatross_engine/throughput.py:45
↓ 9 callers
Function
setSelectedConfigApiParams
(newParams: Partial<ApiParameters>)
frontend/src/pages/Configs.tsx:146
↓ 8 callers
Function
AddToDownloadList
(arg1, arg2)
frontend/wailsjs/go/backend_golang/App.js:5
↓ 8 callers
Function
BrowserOpenURL
(url)
frontend/wailsjs/runtime/runtime.js:176
↓ 8 callers
Function
GetPython
()
frontend/wailsjs/go/backend_golang/App.js:117
↓ 8 callers
Function
_restore_env
(name, previous)
backend-python/tests/test_albatross_sampling_dispatch.py:14
↓ 8 callers
Function
_set_env
(name, value)
backend-python/tests/test_albatross_sampling_dispatch.py:8
↓ 8 callers
Method
add
(self, key:bytes, idx:int=0, val=None)
backend-python/albatross/utils.py:82
↓ 8 callers
Method
backward
(ctx, dy, *args)
finetune/lora/v6/fla/modules/l2norm.py:187
↓ 8 callers
Method
check
(self, tokens: list[int], return_trie_node: bool = False)
backend-python/albatross_engine/state_cache.py:58
↓ 8 callers
Function
chunk_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 callers
Method
setEditingPreset
(value: Preset | null)
frontend/src/stores/commonStore.ts:520
↓ 8 callers
Method
to_legacy_cache
(self)
finetune/lora/v6/fla/models/utils.py:92
↓ 7 callers
Method
__init__
( self, head_dim: int, dot_dim: int = None )
finetune/lora/v6/fla/modules/feature_map.py:72
↓ 7 callers
Function
_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 callers
Function
_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 callers
Function
_split_env_paths
(value: str | None)
backend-python/albatross/kernel_loader.py:171
↓ 7 callers
Function
absPathAsset
(path: string)
frontend/src/utils/index.tsx:535
↓ 7 callers
Method
cache
( self, tokens: tuple[int, ...], state: object, return_trie_node: bool = False
backend-python/albatross_engine/state_cache.py:138
↓ 7 callers
Function
checkDependencies
(navigate: NavigateFunction)
frontend/src/utils/index.tsx:684
↓ 7 callers
Method
close
Manually free LlamaModel and Vocab/Lora resources.
py310/Lib/site-packages/llama_cpp/_internals.py:80
↓ 7 callers
Function
data_file_path
(prefix_path)
finetune/json2binidx_tool/tools/indexed_dataset.py:121
↓ 7 callers
Method
decode
(self, tokens)
finetune/json2binidx_tool/tools/rwkv_tokenizer.py:103
↓ 7 callers
Function
find_precompiled_kernel
( manifest_path: Path, context: RuntimeKernelContext, forced_arch: str | None = None, preferre
backend-python/albatross/kernel_loader.py:81
↓ 7 callers
Method
init_state
(self, batch_size: int)
finetune/lora/v6/fla/layers/abc.py:185
next →
1–100 of 3,079, ranked by callers