Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ScalingIntelligence/tokasaurus
/ functions
Functions
507 in github.com/ScalingIntelligence/tokasaurus
⨍
Functions
507
◇
Types & classes
95
↳
Endpoints
10
↓ 1 callers
Method
should_use_async_tp_model
(self, batch_state: BatchState)
tokasaurus/model/utils.py:736
↓ 1 callers
Function
shuffle_and_limit
(ds, config: BaseConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:223
↓ 1 callers
Function
simple_configs
()
tests/test_basic.py:40
↓ 1 callers
Function
simple_timer
(name: str, enable: bool = True)
tokasaurus/manager/monitoring.py:60
↓ 1 callers
Function
slice_decision
( decoding_seqs: list[Sequence], prefill_seqs: list[tuple[Sequence, int]], start_idx: int, end
tokasaurus/manager/input_building.py:103
↓ 1 callers
Function
soft_allocate
( state: ManagerState, seq: Sequence, prediction_map: PredictionMap | None = None, )
tokasaurus/manager/manager.py:426
↓ 1 callers
Function
soft_deallocate
(seq: Sequence)
tokasaurus/manager/manager.py:445
↓ 1 callers
Method
split_q
(self, q: Tensor)
tokasaurus/model/types.py:214
↓ 1 callers
Method
std
(self)
tokasaurus/utils.py:148
↓ 1 callers
Function
step_stats
( state: "ManagerState", manager_idle_time: float, num_new_commands: int, num_steps_to_schedul
tokasaurus/manager/monitoring.py:281
↓ 1 callers
Function
synchronize
(work: Work)
tokasaurus/model/basic_worker.py:141
↓ 1 callers
Function
tokasaurus_attention
Assumes rope has been already applied.
tokasaurus/model/attention_utils.py:108
↓ 1 callers
Method
tp_modify_state_dict
(self, state_dict: dict, tp_rank: int, tp_size: int)
tokasaurus/model/llama.py:849
↓ 1 callers
Function
tp_slice
(x: Tensor, tp_rank: int, tp_size: int)
tokasaurus/model/utils.py:89
↓ 1 callers
Function
track_time
(key: str)
tokasaurus/manager/monitoring.py:31
↓ 1 callers
Function
try_cancelling_requests
(state: ManagerState)
tokasaurus/manager/manager.py:938
↓ 1 callers
Function
try_merging_usages
( existing_usage: BlockUsageOverTime, new_usage: BlockUsageOverTime, block_limit: int, page_si
tokasaurus/manager/scheduler.py:249
↓ 1 callers
Function
update_stopping_predictions
(state: ManagerState, prediction_map: PredictionMap)
tokasaurus/manager/manager.py:817
↓ 1 callers
Function
validate_args
( config: ServerConfig, request: ChatCompletionRequest | CompletionsRequest )
tokasaurus/server/utils.py:500
↓ 1 callers
Function
validate_chat_completion_request
( config: ServerConfig, request: ChatCompletionRequest )
tokasaurus/server/utils.py:428
↓ 1 callers
Function
validate_completions_request
(config: ServerConfig, request: CompletionsRequest)
tokasaurus/server/utils.py:459
↓ 1 callers
Function
validate_length
(state: ServerState, request: TokasaurusRequest)
tokasaurus/server/utils.py:249
↓ 1 callers
Function
wait_for_data_dependencies
(state: PipelineWorkerState, inp: ModelInput)
tokasaurus/model/pipeline_worker.py:37
↓ 1 callers
Function
wait_for_startup
( process: subprocess.Popen, port: int, model: str, max_retries: int = 500, retry_seconds:
tokasaurus/benchmarks/utils.py:62
↓ 1 callers
Function
wait_for_startup
( process: subprocess.Popen, port: int, model: str, max_retries: int = 500, retry_seconds:
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:103
Function
_
(probs: Tensor)
tokasaurus/model/llama.py:371
Method
_
( ragged_q: Tensor, ragged_k: Tensor, ragged_v: Tensor, k_cach
tokasaurus/model/llama.py:207
Method
__getitem__
(self, sid: str)
tokasaurus/manager/types.py:177
Method
__hash__
(self)
tokasaurus/manager/types.py:64
Method
__hash__
(self)
tokasaurus/manager/allocator.py:40
Method
__init__
(self, num_procs: int, message: str)
tokasaurus/common_types.py:13
Method
__init__
( self, config: ServerConfig, model: LlamaForCausalLM, )
tokasaurus/model/utils.py:724
Method
__init__
( self, config: LlamaConfig, extra_config: ExtraModelConfig, layer_idx: int )
tokasaurus/model/llama.py:103
Method
__init__
( self, config: LlamaConfig, extra_config: ExtraModelConfig, layer_idx: int )
tokasaurus/model/llama.py:291
Method
__init__
( self, config: LlamaConfig, extra_config: ExtraModelConfig, layer_idx: int )
tokasaurus/model/llama.py:345
Method
__init__
(self, config: LlamaConfig, extra_config: ExtraModelConfig)
tokasaurus/model/llama.py:427
Method
__init__
(self, config: LlamaConfig)
tokasaurus/model/llama.py:508
Method
__init__
( self, config: LlamaConfig, extra_config: ExtraModelConfig, )
tokasaurus/model/llama.py:526
Method
__init__
( self, config: LlamaConfig, extra_config: ExtraModelConfig, )
tokasaurus/model/llama.py:607
Method
__init__
(self, config, layer_idx, extra_config)
tokasaurus/model/qwen3.py:35
Method
__init__
( self, head_dim: int, num_kv_heads: int, num_pages: int, page_size: i
tokasaurus/model/kv_cache.py:11
Method
__init__
(self)
tokasaurus/scripts/download.py:8
Method
__init__
(self)
tokasaurus/benchmarks/monkeys_math500.py:27
Method
__init__
(self)
tokasaurus/benchmarks/utils.py:35
Method
__init__
(self)
tokasaurus/benchmarks/bench_model.py:31
Method
__init__
(self)
tokasaurus/benchmarks/bench_summarization.py:18
Method
__init__
(self)
tokasaurus/benchmarks/monkeys_gsm8k.py:24
Method
__init__
(self)
tokasaurus/benchmarks/monkeys_chat.py:17
Method
__init__
(self)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:67
Method
__init__
(self, buffer_size: int)
tokasaurus/manager/stopping_predictor.py:50
Method
__init__
(self, means: list[float], stds: list[float], std_buffer_scale: float)
tokasaurus/manager/stopping_predictor.py:153
Method
__init__
( self, buffer_size: int, initial_wait: int, init_mean: float | None = None,
tokasaurus/manager/stopping_predictor.py:229
Method
__init__
(self, num_blocks: int, page_size: int)
tokasaurus/manager/allocator.py:130
Method
__init__
(self, max_indices: int)
tokasaurus/manager/allocator.py:422
Method
__len__
(self)
tokasaurus/manager/stopping_predictor.py:53
Method
__lt__
(self, other: "PrefixTreeBlock")
tokasaurus/manager/allocator.py:43
Method
__missing__
(self, token_id)
tokasaurus/server/utils.py:124
Method
__post_init__
(self)
tokasaurus/model/utils.py:522
Method
__post_init__
(self)
tokasaurus/model/types.py:465
Method
__post_init__
(self)
tokasaurus/model/types.py:487
Method
__post_init__
(self)
tokasaurus/server/utils.py:138
Method
__post_init__
(self)
tokasaurus/manager/types.py:259
Method
__post_init__
(self)
tokasaurus/manager/types.py:314
Method
__repr__
(self)
tokasaurus/manager/types.py:61
Method
__repr__
(self)
tokasaurus/manager/allocator.py:37
Function
allocator
()
tests/test_block_allocator.py:12
Method
build
(self, skip_qo_indptr: bool = False)
tokasaurus/model/types.py:149
Method
build
(self)
tokasaurus/model/types.py:314
Method
cached_blocks
(self, page_size: int)
tokasaurus/manager/types.py:139
Function
client
()
tests/test_bumping.py:15
Function
client
(request)
tests/test_logprobs.py:44
Function
client
(request)
tests/test_basic.py:78
Function
client
()
tests/test_topk.py:54
Method
copy_into
(src: Tensor | None, dst: Tensor | None)
tokasaurus/model/utils.py:534
Function
create_batch
(request: BatchCreationRequest)
tokasaurus/server/endpoints.py:138
Function
decorator
(func)
tokasaurus/manager/monitoring.py:45
Function
delete_file
( file_id: str = Path(..., description="The ID of the file to delete"), )
tokasaurus/server/endpoints.py:124
Method
dmanager
(self)
tokasaurus/common_types.py:177
Method
dmodel
(self)
tokasaurus/common_types.py:180
Function
download
(config: ScriptConfig)
tokasaurus/scripts/download.py:13
Function
error_propogation_decorator
Sometimes, for weird reasons, error messages are silenced in engine subprocesses. Here we explicitly print to stdout to ensure the error
tokasaurus/utils.py:492
Method
expected_total_length
(self, add_buffer: bool = False)
tokasaurus/manager/types.py:91
Method
finalize
(self)
tokasaurus/benchmarks/bench_model.py:72
Method
finalize
(self)
tokasaurus/benchmarks/monkeys_gsm8k.py:33
Method
finalize
(self)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:76
Method
forward
(self, hidden_states: Tensor)
tokasaurus/model/llama.py:44
Method
forward
( self, batch_state: BatchState, )
tokasaurus/model/llama.py:218
Method
forward
( self, batch_state: BatchState, )
tokasaurus/model/llama.py:319
Method
forward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:356
Method
forward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:441
Method
forward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:514
Method
forward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:572
Method
forward
( self, batch_state: BatchState, async_tp: bool = False, )
tokasaurus/model/llama.py:644
Method
forward
(self, hidden_states: Tensor)
tokasaurus/model/qwen3.py:24
Method
forward
( self, batch_state: BatchState, )
tokasaurus/model/qwen3.py:46
Method
fraction_floating
(self)
tokasaurus/manager/allocator.py:155
Method
generation_config
(self)
tokasaurus/common_types.py:143
Function
get_chat_dataset
(args, tokenizer)
tokasaurus/benchmarks/utils.py:242
Function
get_master_addr
()
tokasaurus/utils.py:99
Function
get_master_port
()
tokasaurus/utils.py:91
← previous
next →
301–400 of 507, ranked by callers