MCPcopy Create free account

hub / github.com/ScalingIntelligence/tokasaurus / functions

Functions507 in github.com/ScalingIntelligence/tokasaurus

↓ 1 callersMethodshould_use_async_tp_model
(self, batch_state: BatchState)
tokasaurus/model/utils.py:736
↓ 1 callersFunctionshuffle_and_limit
(ds, config: BaseConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:223
↓ 1 callersFunctionsimple_configs
()
tests/test_basic.py:40
↓ 1 callersFunctionsimple_timer
(name: str, enable: bool = True)
tokasaurus/manager/monitoring.py:60
↓ 1 callersFunctionslice_decision
( decoding_seqs: list[Sequence], prefill_seqs: list[tuple[Sequence, int]], start_idx: int, end
tokasaurus/manager/input_building.py:103
↓ 1 callersFunctionsoft_allocate
( state: ManagerState, seq: Sequence, prediction_map: PredictionMap | None = None, )
tokasaurus/manager/manager.py:426
↓ 1 callersFunctionsoft_deallocate
(seq: Sequence)
tokasaurus/manager/manager.py:445
↓ 1 callersMethodsplit_q
(self, q: Tensor)
tokasaurus/model/types.py:214
↓ 1 callersMethodstd
(self)
tokasaurus/utils.py:148
↓ 1 callersFunctionstep_stats
( state: "ManagerState", manager_idle_time: float, num_new_commands: int, num_steps_to_schedul
tokasaurus/manager/monitoring.py:281
↓ 1 callersFunctionsynchronize
(work: Work)
tokasaurus/model/basic_worker.py:141
↓ 1 callersFunctiontokasaurus_attention
Assumes rope has been already applied.
tokasaurus/model/attention_utils.py:108
↓ 1 callersMethodtp_modify_state_dict
(self, state_dict: dict, tp_rank: int, tp_size: int)
tokasaurus/model/llama.py:849
↓ 1 callersFunctiontp_slice
(x: Tensor, tp_rank: int, tp_size: int)
tokasaurus/model/utils.py:89
↓ 1 callersFunctiontrack_time
(key: str)
tokasaurus/manager/monitoring.py:31
↓ 1 callersFunctiontry_cancelling_requests
(state: ManagerState)
tokasaurus/manager/manager.py:938
↓ 1 callersFunctiontry_merging_usages
( existing_usage: BlockUsageOverTime, new_usage: BlockUsageOverTime, block_limit: int, page_si
tokasaurus/manager/scheduler.py:249
↓ 1 callersFunctionupdate_stopping_predictions
(state: ManagerState, prediction_map: PredictionMap)
tokasaurus/manager/manager.py:817
↓ 1 callersFunctionvalidate_args
( config: ServerConfig, request: ChatCompletionRequest | CompletionsRequest )
tokasaurus/server/utils.py:500
↓ 1 callersFunctionvalidate_chat_completion_request
( config: ServerConfig, request: ChatCompletionRequest )
tokasaurus/server/utils.py:428
↓ 1 callersFunctionvalidate_completions_request
(config: ServerConfig, request: CompletionsRequest)
tokasaurus/server/utils.py:459
↓ 1 callersFunctionvalidate_length
(state: ServerState, request: TokasaurusRequest)
tokasaurus/server/utils.py:249
↓ 1 callersFunctionwait_for_data_dependencies
(state: PipelineWorkerState, inp: ModelInput)
tokasaurus/model/pipeline_worker.py:37
↓ 1 callersFunctionwait_for_startup
( process: subprocess.Popen, port: int, model: str, max_retries: int = 500, retry_seconds:
tokasaurus/benchmarks/utils.py:62
↓ 1 callersFunctionwait_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
Functionallocator
()
tests/test_block_allocator.py:12
Methodbuild
(self, skip_qo_indptr: bool = False)
tokasaurus/model/types.py:149
Methodbuild
(self)
tokasaurus/model/types.py:314
Methodcached_blocks
(self, page_size: int)
tokasaurus/manager/types.py:139
Functionclient
()
tests/test_bumping.py:15
Functionclient
(request)
tests/test_logprobs.py:44
Functionclient
(request)
tests/test_basic.py:78
Functionclient
()
tests/test_topk.py:54
Methodcopy_into
(src: Tensor | None, dst: Tensor | None)
tokasaurus/model/utils.py:534
Functioncreate_batch
(request: BatchCreationRequest)
tokasaurus/server/endpoints.py:138
Functiondecorator
(func)
tokasaurus/manager/monitoring.py:45
Functiondelete_file
( file_id: str = Path(..., description="The ID of the file to delete"), )
tokasaurus/server/endpoints.py:124
Methoddmanager
(self)
tokasaurus/common_types.py:177
Methoddmodel
(self)
tokasaurus/common_types.py:180
Functiondownload
(config: ScriptConfig)
tokasaurus/scripts/download.py:13
Functionerror_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
Methodexpected_total_length
(self, add_buffer: bool = False)
tokasaurus/manager/types.py:91
Methodfinalize
(self)
tokasaurus/benchmarks/bench_model.py:72
Methodfinalize
(self)
tokasaurus/benchmarks/monkeys_gsm8k.py:33
Methodfinalize
(self)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:76
Methodforward
(self, hidden_states: Tensor)
tokasaurus/model/llama.py:44
Methodforward
( self, batch_state: BatchState, )
tokasaurus/model/llama.py:218
Methodforward
( self, batch_state: BatchState, )
tokasaurus/model/llama.py:319
Methodforward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:356
Methodforward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:441
Methodforward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:514
Methodforward
(self, batch_state: BatchState)
tokasaurus/model/llama.py:572
Methodforward
( self, batch_state: BatchState, async_tp: bool = False, )
tokasaurus/model/llama.py:644
Methodforward
(self, hidden_states: Tensor)
tokasaurus/model/qwen3.py:24
Methodforward
( self, batch_state: BatchState, )
tokasaurus/model/qwen3.py:46
Methodfraction_floating
(self)
tokasaurus/manager/allocator.py:155
Methodgeneration_config
(self)
tokasaurus/common_types.py:143
Functionget_chat_dataset
(args, tokenizer)
tokasaurus/benchmarks/utils.py:242
Functionget_master_addr
()
tokasaurus/utils.py:99
Functionget_master_port
()
tokasaurus/utils.py:91
← previousnext →301–400 of 507, ranked by callers