MCPcopy Create free account

hub / github.com/ScalingIntelligence/tokasaurus / functions

Functions507 in github.com/ScalingIntelligence/tokasaurus

Methodget_prefilling
(self, sid: str)
tokasaurus/manager/types.py:183
Methodget_queued
(self, sid: str)
tokasaurus/manager/types.py:186
Functionget_world_size
()
tokasaurus/utils.py:71
Functiongpus_to_cvd
(gpus: list[int])
tokasaurus/utils.py:431
Methodhead_dim
(self)
tokasaurus/model/qwen3.py:149
Functionhf_model_and_tokenizer
()
tests/test_logprobs.py:59
Methodindent
(s: str, spacing: int)
tokasaurus/manager/allocator.py:47
Methodl1
(self)
tokasaurus/benchmarks/bench_model.py:86
Methodl70
(self)
tokasaurus/benchmarks/bench_model.py:83
Methodl8
(self)
tokasaurus/benchmarks/bench_model.py:79
Functionlast_page_len
(length: int, page_size: int)
tokasaurus/model/utils.py:81
Functionlifespan
(app: FastAPI)
tokasaurus/server/endpoints.py:46
Functionlist_models
()
tokasaurus/server/endpoints.py:219
Functionload_pkl
Load an object from a pickle file.
tokasaurus/utils.py:441
Functionlog_filter
(record)
tokasaurus/utils.py:463
Functionlprint_tensor
(tensor: torch.Tensor)
tokasaurus/utils.py:119
Functionmain
(config: Config)
tokasaurus/benchmarks/sharegpt.py:17
Functionmain
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_math500.py:75
Functionmain
(config: ScriptConfig)
tokasaurus/benchmarks/bench_summarization.py:55
Functionmain
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_gsm8k.py:178
Functionmain
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_chat.py:54
Functionmain
(config: ScriptConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:396
Functionmake_basic_config
()
tests/test_logprobs.py:26
Methodmake_name_to_hf_name
Override to add q_norm and k_norm parameter mappings
tokasaurus/model/qwen3.py:152
Functionmake_ragged_tensor
(data: list[list[int]])
tokasaurus/model/types.py:30
Methodmake_tp_map
Need to add the qkv biases to the tp map.
tokasaurus/model/qwen.py:27
Methodmax_num_additional_blocks
(self, page_size: int)
tokasaurus/manager/types.py:117
Functionmove_dataclass_tensors
(obj, device: torch.device, non_blocking: bool = False)
tokasaurus/model/types.py:387
Methodnew_empty
(cls)
tokasaurus/model/types.py:101
Methodnum_procs
(self)
tokasaurus/common_types.py:48
Methodnum_uncached_prompt_tokens
(self)
tokasaurus/manager/types.py:128
Functionoai_chat_completions
(request: ChatCompletionRequest, raw_request: Request)
tokasaurus/server/endpoints.py:74
Functionoai_completions
(request: CompletionsRequest, raw_request: Request)
tokasaurus/server/endpoints.py:66
Methodpar
(self, dp=1, pp=1, tp=1)
tokasaurus/common_types.py:183
Functionparse_body
(self: BatchFileLine)
tokasaurus/server/utils.py:787
Functionping
(config: ScriptConfig)
tokasaurus/scripts/ping.py:21
Functionping
()
tokasaurus/server/endpoints.py:60
Methodplan
(self, input_batch_state: BatchState, non_blocking: bool = False)
tokasaurus/model/utils.py:624
Methodplan
(self, attn_info: AttentionInfo, non_blocking: bool = False)
tokasaurus/model/llama.py:698
Functionpostprocess
(work: Work)
tokasaurus/model/pipeline_worker.py:258
Methodpredict_completion_lengths
( self, seqs: list["Sequence"], std_buffer_scale: float )
tokasaurus/manager/stopping_predictor.py:310
Methodpredict_completion_lengths_for_unstarted_seqs
( self, seqs: list["Sequence"], std_buffer_scale: float )
tokasaurus/manager/stopping_predictor.py:361
Functionpreprocess
()
tokasaurus/model/pipeline_worker.py:146
Methodprof
(self)
tokasaurus/benchmarks/bench_model.py:63
Functionprofile
use built in python profiler
tokasaurus/utils.py:59
Functionretrieve_batch
( batch_id: str = Path(..., description="The ID of the batch to retrieve"), )
tokasaurus/server/endpoints.py:207
Functionretrieve_file_content
( file_id: str = Path(..., description="The ID of the file to retrieve"), )
tokasaurus/server/endpoints.py:110
Methodrun
( self, input_batch_state: BatchState, non_blocking: bool = False, )
tokasaurus/model/utils.py:607
Functionrun_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_math500.py:36
Functionrun_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/bench_summarization.py:24
Functionrun_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_gsm8k.py:91
Functionrun_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_chat.py:26
Functionrun_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:309
Functionrun_model
(work: Work)
tokasaurus/model/pipeline_worker.py:200
Functionsave_pkl
Save an object to a pickle file.
tokasaurus/utils.py:435
Methodsequence_length
(self, page_size: int)
tokasaurus/model/types.py:256
Functionset_master_addr
(addr: str)
tokasaurus/utils.py:95
Functionset_master_port
(port: int)
tokasaurus/utils.py:87
Functionset_rank
(rank: int)
tokasaurus/utils.py:79
Functionset_world_size
(world_size: int)
tokasaurus/utils.py:83
Functionsglang_manager
(config: ServerArgs)
tokasaurus/utils.py:345
Functionsimple_decorator
(name: str, enable: bool = True)
tokasaurus/manager/monitoring.py:73
Functionstart
(config: ServerConfig)
tokasaurus/entry.py:114
Functionstart_basic_model_worker
( config: ServerConfig, input_q: mp.Queue, q_model_to_manager: mp.Queue, dp_rank: int, tp_
tokasaurus/model/basic_worker.py:177
Functionstart_fanout_worker
( config: ServerConfig, input_q: mp.Queue, fanout_qs: list[mp.Queue], process_name: str, b
tokasaurus/model/basic_worker.py:230
Functionstart_manager
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, q_server_t
tokasaurus/manager/manager.py:1027
Functionstart_pipeline_worker
( config: ServerConfig, input_q: mp.Queue, q_pipe_end_to_start: mp.Queue, q_to_manager: mp.Que
tokasaurus/model/pipeline_worker.py:309
Functionstart_server
( config: ServerConfig, engines: list[Engine], process_name: str, barrier: TimedBarrier, )
tokasaurus/server/endpoints.py:266
Functionsynchronize
(work: Work)
tokasaurus/model/pipeline_worker.py:235
Functionsynchronous_batch_completions
( request: SynchronousBatchCompletionsRequest, raw_request: Request )
tokasaurus/server/endpoints.py:242
Functiontest_basic
(client: OpenAI)
tests/test_basic.py:99
Functiontest_basic_allocation
(allocator: BlockAllocator)
tests/test_block_allocator.py:16
Functiontest_basic_caching
(allocator: BlockAllocator)
tests/test_block_allocator.py:41
Functiontest_basic_free
(allocator: BlockAllocator)
tests/test_block_allocator.py:84
Functiontest_batch_chat_completions
(client: OpenAI)
tests/test_basic.py:209
Functiontest_bumping
(client: OpenAI)
tests/test_bumping.py:36
Functiontest_calc_block_usage_over_time
(seed)
tests/test_scheduler.py:100
Functiontest_chat_completions
(client: OpenAI)
tests/test_basic.py:184
Functiontest_chat_completions_greedy_logprobs_matches_top1
Test that greedy sampling matches top-1 logprobs for chat completions API
tests/test_topk.py:104
Functiontest_completions_greedy_logprobs_matches_top1
Test that greedy sampling matches top-1 logprobs for completions API
tests/test_topk.py:62
Functiontest_decode_one_token
(client: OpenAI)
tests/test_basic.py:112
Functiontest_files
(client: OpenAI)
tests/test_basic.py:195
Functiontest_logprobs
( client: OpenAI, hf_model_and_tokenizer: tuple[torch.nn.Module, PreTrainedTokenizer], prompt_name
tests/test_logprobs.py:79
Functiontest_multi_branch_free
(allocator: BlockAllocator)
tests/test_block_allocator.py:121
Functiontest_n
(client: OpenAI)
tests/test_basic.py:134
Functiontest_packed_vs_normal_logprobs
Test that packed format and normal OpenAI format produce identical results for the same request
tests/test_topk.py:146
Functiontest_prefill_exactly_one_page
(client: OpenAI)
tests/test_basic.py:123
Functiontest_stop
(client: OpenAI)
tests/test_basic.py:148
Functiontest_synchronous_batch_completions
(client: OpenAI)
tests/test_basic.py:281
Functiontest_try_onboarding_seq
(seed)
tests/test_scheduler.py:244
Functiontimed
( fn, num_iters=50, num_warmup=10, unit: str = "ms", between_fn=None, prog=True, b
tokasaurus/utils.py:200
Functiontimed_with_graph
( fn, num_iters=50, num_warmup=10, unit: str = "ms", prog=True, )
tokasaurus/utils.py:255
Functiontimer
( name: str, enable: bool = True, min_ms: float | None = None, profile: bool = False )
tokasaurus/utils.py:31
Methodto
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:58
Methodto
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:266
Methodto
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:412
Functiontrack_time_decorator
(key: str | None = None)
tokasaurus/manager/monitoring.py:44
Methodtree_repr
(self)
tokasaurus/manager/allocator.py:46
Methoduncached_blocks
(self, page_size: int)
tokasaurus/manager/types.py:144
Methodunfinished_seqs
(self)
tokasaurus/manager/types.py:241
← previousnext →401–500 of 507, ranked by callers