MCPcopy Create free account

hub / github.com/ScalingIntelligence/tokasaurus / functions

Functions507 in github.com/ScalingIntelligence/tokasaurus

↓ 1 callersMethoddecode_start_pos
(self)
tokasaurus/model/types.py:375
↓ 1 callersMethoddetach_from_parent
(self)
tokasaurus/manager/allocator.py:23
↓ 1 callersMethodenough_free_blocks_for_allocation
( self, num_existing_blocks: int, target_token_length: int, num_reserved_block
tokasaurus/manager/allocator.py:309
↓ 1 callersMethodexpected_completion_to_schedule
(self, add_buffer: bool = False)
tokasaurus/manager/types.py:88
↓ 1 callersMethodexpected_last_page_len
(self, page_size: int, add_buffer: bool = False)
tokasaurus/manager/types.py:106
↓ 1 callersMethodfancy_table
(self)
tokasaurus/utils.py:163
↓ 1 callersFunctionfilter_ignores
(st, regexes_to_ignore)
tokasaurus/benchmarks/monkeys_gsm8k.py:51
↓ 1 callersFunctionfilter_ignores
(st, regexes_to_ignore)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:269
↓ 1 callersMethodfinalize
(self)
tokasaurus/common_types.py:148
↓ 1 callersFunctionfinish_sequences
(state: ManagerState, newly_finished_seqs: set[Sequence])
tokasaurus/manager/manager.py:212
↓ 1 callersMethodfraction_used
(self)
tokasaurus/manager/allocator.py:152
↓ 1 callersMethodfree
(self, idx: int)
tokasaurus/manager/allocator.py:430
↓ 1 callersFunctiongenerate_and_process
(req: ChatCompletionRequest)
tokasaurus/server/endpoints.py:247
↓ 1 callersFunctionget_basic_model_process_dict
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, dp_rank: i
tokasaurus/model/entry.py:70
↓ 1 callersMethodget_decoding
(self, sid: str)
tokasaurus/manager/types.py:180
↓ 1 callersFunctionget_few_shot_prompt
(item)
tokasaurus/benchmarks/monkeys_gsm8k.py:77
↓ 1 callersFunctionget_few_shot_prompt
(item)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:295
↓ 1 callersMethodget_inner_tokenizer
(self)
tokasaurus/server/utils.py:150
↓ 1 callersFunctionget_model_process_dict
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, dp_rank: i
tokasaurus/model/entry.py:130
↓ 1 callersFunctionget_next_leaf
()
tokasaurus/manager/allocator.py:92
↓ 1 callersFunctionget_pipeline_model_process_dict
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, dp_rank: i
tokasaurus/model/entry.py:10
↓ 1 callersFunctionget_rank
()
tokasaurus/utils.py:75
↓ 1 callersFunctionget_stop_strings
(request: CompletionsRequest | ChatCompletionRequest)
tokasaurus/server/utils.py:369
↓ 1 callersMethodget_tokenizer
(self)
tokasaurus/manager/types.py:321
↓ 1 callersFunctionget_tp_model_process_dict
( config: ServerConfig, q_manager_to_model: mp.Queue, q_model_to_manager: mp.Queue, dp_rank: i
tokasaurus/model/entry.py:94
↓ 1 callersFunctiongo
()
tokasaurus/benchmarks/bench_model.py:277
↓ 1 callersFunctionhandle_batch
(state: ServerState, batch_id: str)
tokasaurus/server/utils.py:169
↓ 1 callersFunctionhandle_new_model_outputs
( state: ManagerState, )
tokasaurus/manager/manager.py:249
↓ 1 callersFunctionhandle_new_server_commands
(state: ManagerState)
tokasaurus/manager/manager.py:71
↓ 1 callersFunctionhandle_output
( state: ManagerState, out: ModelOutput, newly_finished_seqs: set[Sequence], seqs_with_outputs
tokasaurus/manager/manager.py:142
↓ 1 callersFunctionhandle_output_from_pipeline_end
(state: PipelineWorkerState, output_ids: Tensor)
tokasaurus/model/pipeline_worker.py:46
↓ 1 callersFunctionhandle_outputs_to_manager
(state: PipelineWorkerState)
tokasaurus/model/pipeline_worker.py:62
↓ 1 callersMethodhead_dim
(self)
tokasaurus/model/llama.py:641
↓ 1 callersMethodinsert_at_head_of_queued
(self, seqs: list[Sequence])
tokasaurus/manager/types.py:226
↓ 1 callersFunctionis_correct_gsm8k
(model_completion, gt_example)
tokasaurus/benchmarks/monkeys_gsm8k.py:71
↓ 1 callersFunctionis_correct_gsm8k
(model_completion, gt_example)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:289
↓ 1 callersFunctionis_correct_math500
(completion, gt_answer)
tokasaurus/benchmarks/monkeys_math500.py:19
↓ 1 callersFunctionis_ids_list
(x)
tokasaurus/server/utils.py:262
↓ 1 callersFunctionkill_process_tree
(pid)
tokasaurus/benchmarks/utils.py:48
↓ 1 callersFunctionkill_process_tree
(pid)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:89
↓ 1 callersFunctionlaunch_server
(config: BaseConfig)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:142
↓ 1 callersFunctionlisten_for_disconnect
Returns if a disconnect message is received. Taken from vLLM.
tokasaurus/server/utils.py:54
↓ 1 callersMethodload_from_hf_pretrained
( self, model_name_or_path: str | Path, device: DeviceType | None = None, dtyp
tokasaurus/model/llama.py:886
↓ 1 callersMethodload_from_safetensors
( self, model_path: Path, )
tokasaurus/model/llama.py:922
↓ 1 callersFunctionload_safetensors_repo
( repo_path: Path, include_parameters: set[str], device: DeviceType, tp_rank: int = 0, tp_
tokasaurus/model/safetensors_utils.py:34
↓ 1 callersFunctionlog_hydragen_stats
( state: ManagerState, hydragen_groups: list[HydragenGroup], decoding_seqs: list[Sequence], )
tokasaurus/manager/manager.py:278
↓ 1 callersFunctionlog_to_statsd
Log a dictionary of metrics to statsd.
tokasaurus/manager/monitoring.py:97
↓ 1 callersFunctionlprint
(*args, **kwargs)
tokasaurus/utils.py:107
↓ 1 callersFunctionltqdm
(*args, **kwargs)
tokasaurus/utils.py:112
↓ 1 callersFunctionmain
For use as a setup.py entry point.
tokasaurus/entry.py:139
↓ 1 callersFunctionmain
()
tokasaurus/scripts/download.py:21
↓ 1 callersFunctionmain
()
tokasaurus/scripts/ping.py:60
↓ 1 callersFunctionmain
(config: ScriptConfig)
tokasaurus/benchmarks/bench_model.py:91
↓ 1 callersMethodmake_attn_fn
(self)
tokasaurus/model/llama.py:161
↓ 1 callersMethodmake_available_leaf_heap
Valid to reuse across multiple consecutive calls to allocate_up_to_length. INVALIDATED by calls to allocate_with_prefix_match or fre
tokasaurus/manager/allocator.py:299
↓ 1 callersFunctionmake_chat_logprobs
( crequest: ChatCompletionRequest, seq_out: SequenceOutput, inverse_vocab: dict[int, str], )
tokasaurus/server/utils.py:319
↓ 1 callersFunctionmake_completion_logprobs
( crequest: CompletionsRequest, seq_out: SequenceOutput, inverse_vocab: dict[int, str], )
tokasaurus/server/utils.py:289
↓ 1 callersFunctionmake_config
()
tests/test_topk.py:20
↓ 1 callersFunctionmake_engine
(config: ServerConfig, dp_rank: int, master_port: int)
tokasaurus/entry.py:21
↓ 1 callersFunctionmake_pass_at_k_table
(corrects_list: list[list[bool]], ks: list[int])
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:244
↓ 1 callersMethodmake_prediction_map
( self, num_buckets: int, std_buffer_scale: float )
tokasaurus/manager/stopping_predictor.py:289
↓ 1 callersFunctionmanager_loop
(config: ServerConfig, state: ManagerState)
tokasaurus/manager/manager.py:981
↓ 1 callersFunctionmaybe_save_results
(config: BaseConfig, results)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:255
↓ 1 callersMethodmean
(self)
tokasaurus/utils.py:145
↓ 1 callersMethodmedian
(self)
tokasaurus/utils.py:157
↓ 1 callersMethodmerge
(self, other: "EventCollection")
tokasaurus/manager/scheduler.py:22
↓ 1 callersFunctionmerge_sorted_lists
Merge sorted lists, removing duplicates.
tokasaurus/manager/scheduler.py:219
↓ 1 callersFunctionmodel_will_use_cudagraphs
If the model will use cudagraphs for this batch.
tokasaurus/manager/manager.py:312
↓ 1 callersMethodmost_recent_completion_ids
(self, num_to_return: int)
tokasaurus/manager/types.py:124
↓ 1 callersFunctionmulti_gpu_configs
()
tests/test_basic.py:46
↓ 1 callersFunctionnode_to_block_ids
(node: PrefixTreeBlock)
tokasaurus/manager/hydragen.py:54
↓ 1 callersMethodnum_seqs
(self)
tokasaurus/manager/types.py:286
↓ 1 callersMethodnum_used_blocks
(self)
tokasaurus/manager/allocator.py:149
↓ 1 callersFunctiononboard_new_seqs
( config: ServerConfig, state: ManagerState, available_leaf_heap: list[PrefixTreeBlock], predi
tokasaurus/manager/manager.py:702
↓ 1 callersMethodpad_for_cudagraph
(self, num_seqs: int)
tokasaurus/model/types.py:71
↓ 1 callersFunctionparallelize
( fn, items, num_workers: int | None = None, processes: bool = True, allow_unordered: bool
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:168
↓ 1 callersFunctionpass_at_k
:param n: total number of samples :param c: number of correct samples :param k: k in pass@$k$
tokasaurus/benchmarks/utils.py:171
↓ 1 callersFunctionpass_at_k
:param n: total number of samples :param c: number of correct samples :param k: k in pass@$k$
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:212
↓ 1 callersFunctionpick_blocks_for_allocation
( num_blocks: int, available_floating: list[PrefixTreeBlock], available_leaves: set[PrefixTreeBloc
tokasaurus/manager/allocator.py:68
↓ 1 callersFunctionpipeline_worker_model_loop
( state: PipelineWorkerState, model: LlamaForCausalLM, )
tokasaurus/model/pipeline_worker.py:111
↓ 1 callersMethodplan_default
( self, input_batch_state: BatchState, non_blocking: bool = False, )
tokasaurus/model/utils.py:760
↓ 1 callersFunctionprecise_onboard
Onboard a sequence if it slots into the existing block usage simulation. Aware of prefix caching. Since calling try_onboarding_seqs one
tokasaurus/manager/manager.py:562
↓ 1 callersMethodpredict
(self, frac: float)
tokasaurus/manager/stopping_predictor.py:161
↓ 1 callersFunctionprepare_and_submit_to_model
( state: ManagerState, decision: ScheduleDecision, hydragen_groups: list[HydragenGroup] | None = N
tokasaurus/manager/manager.py:328
↓ 1 callersFunctionprepend_conda_activate
(command: str, activate_path: str, env: str)
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:137
↓ 1 callersFunctionreceive_from_manager_loop
(state: ServerState)
tokasaurus/server/utils.py:154
↓ 1 callersMethodrecord_graphs
(self, process_name: str)
tokasaurus/model/utils.py:851
↓ 1 callersFunctionreorder_decision_for_hydragen
( decision: ScheduleDecision, groups: list[HydragenGroup] )
tokasaurus/manager/hydragen.py:42
↓ 1 callersFunctionrollback
(num_steps: int)
tokasaurus/manager/scheduler.py:122
↓ 1 callersMethodrun_default
( self, input_batch_state: BatchState, )
tokasaurus/model/utils.py:743
↓ 1 callersFunctionrun_eval
(config: ScriptConfig, go_func, test_dataset: list[dict])
tokasaurus/benchmarks/monkeys_gsm8k.py:127
↓ 1 callersFunctionrun_eval
(config: ScriptConfig, go_func, test_dataset: list[dict])
tokasaurus/benchmarks/standalone_monkeys_gsm8k.py:345
↓ 1 callersFunctionrun_model
(work: Work)
tokasaurus/model/basic_worker.py:101
↓ 1 callersFunctionrun_sanity_checks
(state: ManagerState)
tokasaurus/manager/manager.py:974
↓ 1 callersFunctionrun_warmup_batches
Send a max-sized batch to the model to check if it's gonna OOM. Can also send more batches to try to trigger recompiles ahead of time.
tokasaurus/model/utils.py:387
↓ 1 callersFunctionsample_from_probs
(probs: Tensor)
tokasaurus/model/llama.py:363
↓ 1 callersFunctionschedule
Bro trust me, it's a good scheduler. I sketched it out on my iPad bro. Graphs and everything. This scheduler slaps. Assumptions made her
tokasaurus/manager/scheduler.py:576
↓ 1 callersFunctionschedule_steps
(state: ManagerState, num_steps: int)
tokasaurus/manager/manager.py:826
↓ 1 callersMethodset_attention_info
(self, attn_info: AttentionInfo)
tokasaurus/model/llama.py:693
↓ 1 callersMethodsetup_caches
(self, num_pages: int, page_size: int)
tokasaurus/model/llama.py:675
← previousnext →201–300 of 507, ranked by callers