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
Method
get_prefilling
(self, sid: str)
tokasaurus/manager/types.py:183
Method
get_queued
(self, sid: str)
tokasaurus/manager/types.py:186
Function
get_world_size
()
tokasaurus/utils.py:71
Function
gpus_to_cvd
(gpus: list[int])
tokasaurus/utils.py:431
Method
head_dim
(self)
tokasaurus/model/qwen3.py:149
Function
hf_model_and_tokenizer
()
tests/test_logprobs.py:59
Method
indent
(s: str, spacing: int)
tokasaurus/manager/allocator.py:47
Method
l1
(self)
tokasaurus/benchmarks/bench_model.py:86
Method
l70
(self)
tokasaurus/benchmarks/bench_model.py:83
Method
l8
(self)
tokasaurus/benchmarks/bench_model.py:79
Function
last_page_len
(length: int, page_size: int)
tokasaurus/model/utils.py:81
Function
lifespan
(app: FastAPI)
tokasaurus/server/endpoints.py:46
Function
list_models
()
tokasaurus/server/endpoints.py:219
Function
load_pkl
Load an object from a pickle file.
tokasaurus/utils.py:441
Function
log_filter
(record)
tokasaurus/utils.py:463
Function
lprint_tensor
(tensor: torch.Tensor)
tokasaurus/utils.py:119
Function
main
(config: Config)
tokasaurus/benchmarks/sharegpt.py:17
Function
main
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_math500.py:75
Function
main
(config: ScriptConfig)
tokasaurus/benchmarks/bench_summarization.py:55
Function
main
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_gsm8k.py:178
Function
main
(config: ScriptConfig)
tokasaurus/benchmarks/monkeys_chat.py:54
Function
main
(config: ScriptConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:396
Function
make_basic_config
()
tests/test_logprobs.py:26
Method
make_name_to_hf_name
Override to add q_norm and k_norm parameter mappings
tokasaurus/model/qwen3.py:152
Function
make_ragged_tensor
(data: list[list[int]])
tokasaurus/model/types.py:30
Method
make_tp_map
Need to add the qkv biases to the tp map.
tokasaurus/model/qwen.py:27
Method
max_num_additional_blocks
(self, page_size: int)
tokasaurus/manager/types.py:117
Function
move_dataclass_tensors
(obj, device: torch.device, non_blocking: bool = False)
tokasaurus/model/types.py:387
Method
new_empty
(cls)
tokasaurus/model/types.py:101
Method
num_procs
(self)
tokasaurus/common_types.py:48
Method
num_uncached_prompt_tokens
(self)
tokasaurus/manager/types.py:128
Function
oai_chat_completions
(request: ChatCompletionRequest, raw_request: Request)
tokasaurus/server/endpoints.py:74
Function
oai_completions
(request: CompletionsRequest, raw_request: Request)
tokasaurus/server/endpoints.py:66
Method
par
(self, dp=1, pp=1, tp=1)
tokasaurus/common_types.py:183
Function
parse_body
(self: BatchFileLine)
tokasaurus/server/utils.py:787
Function
ping
(config: ScriptConfig)
tokasaurus/scripts/ping.py:21
Function
ping
()
tokasaurus/server/endpoints.py:60
Method
plan
(self, input_batch_state: BatchState, non_blocking: bool = False)
tokasaurus/model/utils.py:624
Method
plan
(self, attn_info: AttentionInfo, non_blocking: bool = False)
tokasaurus/model/llama.py:698
Function
postprocess
(work: Work)
tokasaurus/model/pipeline_worker.py:258
Method
predict_completion_lengths
( self, seqs: list["Sequence"], std_buffer_scale: float )
tokasaurus/manager/stopping_predictor.py:310
Method
predict_completion_lengths_for_unstarted_seqs
( self, seqs: list["Sequence"], std_buffer_scale: float )
tokasaurus/manager/stopping_predictor.py:361
Function
preprocess
()
tokasaurus/model/pipeline_worker.py:146
Method
prof
(self)
tokasaurus/benchmarks/bench_model.py:63
Function
profile
use built in python profiler
tokasaurus/utils.py:59
Function
retrieve_batch
( batch_id: str = Path(..., description="The ID of the batch to retrieve"), )
tokasaurus/server/endpoints.py:207
Function
retrieve_file_content
( file_id: str = Path(..., description="The ID of the file to retrieve"), )
tokasaurus/server/endpoints.py:110
Method
run
( self, input_batch_state: BatchState, non_blocking: bool = False, )
tokasaurus/model/utils.py:607
Function
run_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_math500.py:36
Function
run_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/bench_summarization.py:24
Function
run_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_gsm8k.py:91
Function
run_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/monkeys_chat.py:26
Function
run_inference
(item, config: ScriptConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:309
Function
run_model
(work: Work)
tokasaurus/model/pipeline_worker.py:200
Function
save_pkl
Save an object to a pickle file.
tokasaurus/utils.py:435
Method
sequence_length
(self, page_size: int)
tokasaurus/model/types.py:256
Function
set_master_addr
(addr: str)
tokasaurus/utils.py:95
Function
set_master_port
(port: int)
tokasaurus/utils.py:87
Function
set_rank
(rank: int)
tokasaurus/utils.py:79
Function
set_world_size
(world_size: int)
tokasaurus/utils.py:83
Function
sglang_manager
(config: ServerArgs)
tokasaurus/utils.py:345
Function
simple_decorator
(name: str, enable: bool = True)
tokasaurus/manager/monitoring.py:73
Function
start
(config: ServerConfig)
tokasaurus/entry.py:114
Function
start_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
Function
start_fanout_worker
( config: ServerConfig, input_q: mp.Queue, fanout_qs: list[mp.Queue], process_name: str, b
tokasaurus/model/basic_worker.py:230
Function
start_manager
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, q_server_t
tokasaurus/manager/manager.py:1027
Function
start_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
Function
start_server
( config: ServerConfig, engines: list[Engine], process_name: str, barrier: TimedBarrier, )
tokasaurus/server/endpoints.py:266
Function
synchronize
(work: Work)
tokasaurus/model/pipeline_worker.py:235
Function
synchronous_batch_completions
( request: SynchronousBatchCompletionsRequest, raw_request: Request )
tokasaurus/server/endpoints.py:242
Function
test_basic
(client: OpenAI)
tests/test_basic.py:99
Function
test_basic_allocation
(allocator: BlockAllocator)
tests/test_block_allocator.py:16
Function
test_basic_caching
(allocator: BlockAllocator)
tests/test_block_allocator.py:41
Function
test_basic_free
(allocator: BlockAllocator)
tests/test_block_allocator.py:84
Function
test_batch_chat_completions
(client: OpenAI)
tests/test_basic.py:209
Function
test_bumping
(client: OpenAI)
tests/test_bumping.py:36
Function
test_calc_block_usage_over_time
(seed)
tests/test_scheduler.py:100
Function
test_chat_completions
(client: OpenAI)
tests/test_basic.py:184
Function
test_chat_completions_greedy_logprobs_matches_top1
Test that greedy sampling matches top-1 logprobs for chat completions API
tests/test_topk.py:104
Function
test_completions_greedy_logprobs_matches_top1
Test that greedy sampling matches top-1 logprobs for completions API
tests/test_topk.py:62
Function
test_decode_one_token
(client: OpenAI)
tests/test_basic.py:112
Function
test_files
(client: OpenAI)
tests/test_basic.py:195
Function
test_logprobs
( client: OpenAI, hf_model_and_tokenizer: tuple[torch.nn.Module, PreTrainedTokenizer], prompt_name
tests/test_logprobs.py:79
Function
test_multi_branch_free
(allocator: BlockAllocator)
tests/test_block_allocator.py:121
Function
test_n
(client: OpenAI)
tests/test_basic.py:134
Function
test_packed_vs_normal_logprobs
Test that packed format and normal OpenAI format produce identical results for the same request
tests/test_topk.py:146
Function
test_prefill_exactly_one_page
(client: OpenAI)
tests/test_basic.py:123
Function
test_stop
(client: OpenAI)
tests/test_basic.py:148
Function
test_synchronous_batch_completions
(client: OpenAI)
tests/test_basic.py:281
Function
test_try_onboarding_seq
(seed)
tests/test_scheduler.py:244
Function
timed
( fn, num_iters=50, num_warmup=10, unit: str = "ms", between_fn=None, prog=True, b
tokasaurus/utils.py:200
Function
timed_with_graph
( fn, num_iters=50, num_warmup=10, unit: str = "ms", prog=True, )
tokasaurus/utils.py:255
Function
timer
( name: str, enable: bool = True, min_ms: float | None = None, profile: bool = False )
tokasaurus/utils.py:31
Method
to
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:58
Method
to
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:266
Method
to
(self, device: DeviceType, non_blocking: bool = False)
tokasaurus/model/types.py:412
Function
track_time_decorator
(key: str | None = None)
tokasaurus/manager/monitoring.py:44
Method
tree_repr
(self)
tokasaurus/manager/allocator.py:46
Method
uncached_blocks
(self, page_size: int)
tokasaurus/manager/types.py:144
Method
unfinished_seqs
(self)
tokasaurus/manager/types.py:241
← previous
next →
401–500 of 507, ranked by callers