Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LMIS-ORG/slime-agentic
/ functions
Functions
2,220 in github.com/LMIS-ORG/slime-agentic
⨍
Functions
2,220
◇
Types & classes
556
↳
Endpoints
12
↓ 6 callers
Function
get_new_query_function
Wrap query functions (get_rank, get_world_size, etc.) without memory check.
slime/utils/reloadable_process_group.py:50
↓ 6 callers
Function
load_file
Load the content of a file from a path based on the file extension. Args: path: The path to the file to load. **kwargs: Additiona
agentic/ToolOrchestra/tau2/utils/io_utils.py:31
↓ 6 callers
Method
run_env_assertion
Runs any assertion function on agent tools or user tools.
agentic/ToolOrchestra/tau2/environment/environment.py:203
↓ 6 callers
Method
state_dict
(self)
slime/backends/fsdp_utils/checkpoint.py:24
↓ 6 callers
Function
sum_of_sample_mean
Compute sum of per-sample means across variable-length responses. Parameters: x: Flat tensor containing concatenated per-token values acr
slime/backends/fsdp_utils/actor.py:897
↓ 6 callers
Method
sync_tools
Sync the user and assistant tools. Subclass should override this method if tools need to be synced.
agentic/ToolOrchestra/tau2/environment/environment.py:177
↓ 5 callers
Function
_byte_to_gb
(n: int)
slime/utils/memory_utils.py:31
↓ 5 callers
Method
_check_sim_status
Returns the current status of the SIM card.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:446
↓ 5 callers
Method
_get_package
(self, package_id: str)
agentic/ToolOrchestra/tau2/domains/travel/tools.py:72
↓ 5 callers
Method
_get_plan_by_id
Retrieves a plan directly by its unique ID. Args: plan_id: The unique identifier of the plan. Returns:
agentic/ToolOrchestra/tau2/domains/telecom/tools.py:169
↓ 5 callers
Method
_get_registration
(self, registration_id: str)
agentic/ToolOrchestra/tau2/domains/school/tools.py:62
↓ 5 callers
Method
_get_user
Get the user from the database. Args: user_id: The user id, such as 'sara_doe_496'. Returns: The user.
agentic/ToolOrchestra/tau2/domains/retail/tools.py:62
↓ 5 callers
Method
_get_user
Get user from database.
agentic/ToolOrchestra/tau2/domains/airline/tools.py:57
↓ 5 callers
Method
_now
(self)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:100
↓ 5 callers
Method
_switch_model
(self, target_tag: str)
slime/backends/megatron_utils/actor.py:251
↓ 5 callers
Method
_toggle_airplane_mode
Toggles Airplane Mode ON or OFF. If turning OFF, simulates a network search. Returns the new state of airplane_mode.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:392
↓ 5 callers
Method
_toggle_data_saver_mode
Toggles Data Saver mode. Returns the new state.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:572
↓ 5 callers
Method
_toggle_roaming
Toggles the Data Roaming setting. Returns the new state.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:525
↓ 5 callers
Method
backward_dw
Execute weight update operations
slime_plugins/models/glm5/glm5.py:563
↓ 5 callers
Function
get_args
()
tools/convert_hf_to_torch_dist.py:37
↓ 5 callers
Function
get_logits_and_tokens_offset_with_cp
All offsets start from the begining of the prompt.
slime/backends/megatron_utils/cp_utils.py:9
↓ 5 callers
Function
init_tracking
(args, primary: bool = True, **kwargs)
slime/utils/logging_utils.py:27
↓ 5 callers
Method
is_stop
Check if the user message is a stop message. Args: message: The user message. Returns: True if the user mess
agentic/ToolOrchestra/tau2/user/base.py:150
↓ 5 callers
Function
is_successful
Check if the reward is successful.
agentic/ToolOrchestra/tau2/metrics/agent_metrics.py:28
↓ 5 callers
Function
is_valid_user_history_message
Check if the message is a valid user history message.
agentic/ToolOrchestra/tau2/user/base.py:38
↓ 5 callers
Function
load_processor
(name_or_path: str, **kwargs)
slime/utils/processing_utils.py:41
↓ 5 callers
Function
load_tokenizer
(name_or_path: str, **kwargs)
slime/utils/processing_utils.py:15
↓ 5 callers
Method
offload
Fire release_memory_occupation on all engines (non-blocking). Returns a list of Ray ObjectRefs.
slime/ray/rollout.py:321
↓ 5 callers
Method
to_dict
(self)
slime/utils/types.py:122
↓ 5 callers
Method
tool_type
Get the type of a tool.
agentic/ToolOrchestra/tau2/environment/toolkit.py:126
↓ 4 callers
Method
_assert_account_active
(self, account: Account)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:108
↓ 4 callers
Method
_booked_seats_for_show
Seats already booked for this show (only confirmed bookings count).
agentic/ToolOrchestra/tau2/domains/movie/tools.py:126
↓ 4 callers
Function
_est_tokens
(msg)
agentic/ToolOrchestra/eval_orchestra.py:178
↓ 4 callers
Method
_estimate_tokens
Rough token estimate: count chars in content/tool results, divide by 3.
agentic/ToolOrchestra/tools/expert_caller/tool.py:101
↓ 4 callers
Method
_fwd_query
Forward non-communication calls without memory check.
slime/utils/reloadable_process_group.py:196
↓ 4 callers
Method
_generate_transaction_id
(self)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:104
↓ 4 callers
Method
_get_account_by_id
(self, account_id: str)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:72
↓ 4 callers
Method
_get_auditorium
(self, theater: Theater, auditorium_id: str)
agentic/ToolOrchestra/tau2/domains/movie/tools.py:95
↓ 4 callers
Method
_get_club
Get a club from the database.
agentic/ToolOrchestra/tau2/domains/basketball/tools.py:50
↓ 4 callers
Method
_get_flight_instance
Get flight instance from database.
agentic/ToolOrchestra/tau2/domains/airline/tools.py:75
↓ 4 callers
Method
_get_funding_source
Get a funding source for an account.
agentic/ToolOrchestra/tau2/domains/ecommerce/tools.py:72
↓ 4 callers
Function
_get_grant_app_permission_actions
Get the grant app permission actions for the mms issue task.
agentic/ToolOrchestra/tau2/domains/telecom/tasks/mms_issues.py:183
↓ 4 callers
Method
_get_line_by_id
Retrieves a line directly by its unique ID. Args: line_id: The unique identifier of the line. Returns:
agentic/ToolOrchestra/tau2/domains/telecom/tools.py:150
↓ 4 callers
Method
_get_model_and_url
(self, expert: str)
agentic/ToolOrchestra/tools/expert_caller/tool.py:159
↓ 4 callers
Method
_get_player
Get a player from the database.
agentic/ToolOrchestra/tau2/domains/basketball/tools.py:56
↓ 4 callers
Function
_get_remove_app_permission_actions
Get the remove app permission actions for the mms issue task.
agentic/ToolOrchestra/tau2/domains/telecom/tasks/mms_issues.py:112
↓ 4 callers
Method
_get_student
(self, student_id: str)
agentic/ToolOrchestra/tau2/domains/school/tools.py:52
↓ 4 callers
Method
_is_placed_ticket
Check if the ticket is in 'placed' state (modifiable).
agentic/ToolOrchestra/tau2/domains/restaurant/tools.py:79
↓ 4 callers
Function
_normalize_text
(text: str)
slime/rollout/rm_hub/gpqa.py:18
↓ 4 callers
Method
_now_str
Current timestamp in YY-MM-DD-HH-MM.
agentic/ToolOrchestra/tau2/domains/movie/tools.py:109
↓ 4 callers
Method
_weight_name_mapping_mcore_to_hf
Map MCore weight names to Hugging Face weight names. Args: mcore_weights_name: MCore weight name Returns:
slime_plugins/mbridge/glm4.py:83
↓ 4 callers
Method
backward
Backward pass for DownProjFunction - Pure Python implementation. Forward: output = topk_weights * (input @ w2) (with topk_weight mul
tests/test_fused_experts_backward.py:172
↓ 4 callers
Function
convert_to_hf
(args, model_name, name, param, quantization_config=None)
slime/backends/megatron_utils/megatron_to_hf/__init__.py:21
↓ 4 callers
Method
device
Returns the full current state of the device attributes.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:69
↓ 4 callers
Method
eval
(self, rollout_id)
slime/ray/rollout.py:554
↓ 4 callers
Function
extract_answer
(passage: str)
slime/rollout/rm_hub/math_utils.py:478
↓ 4 callers
Method
find_longest_prefix
Find the longest cached prefix for the given text. Args: text: Input string to find prefix for Returns:
slime/router/middleware_hub/radix_tree.py:135
↓ 4 callers
Function
get_now
Returns the current date and time in the format YYYYMMDD_HHMMSS.
agentic/ToolOrchestra/tau2/utils/utils.py:53
↓ 4 callers
Function
get_options
Returns options for the simulator.
agentic/ToolOrchestra/tau2/run.py:48
↓ 4 callers
Method
get_policy
Get the policy of the domain.
agentic/ToolOrchestra/tau2/environment/environment.py:88
↓ 4 callers
Method
get_response
Get the response of the domain. This also calls sync_tools. Args: message: The message to get the response for. R
agentic/ToolOrchestra/tau2/environment/environment.py:411
↓ 4 callers
Method
get_samples
Return num_samples samples
slime/rollout/data_source.py:19
↓ 4 callers
Function
get_sum_of_sample_mean
Calculate correct sample mean for CP
slime/backends/megatron_utils/cp_utils.py:53
↓ 4 callers
Function
get_tool_signatures
Get all the tool signatures from a tool kit. Returns: A dictionary of tool signatures.
agentic/ToolOrchestra/tau2/environment/toolkit.py:181
↓ 4 callers
Method
get_tools
Get the tools of the domain.
agentic/ToolOrchestra/tau2/environment/environment.py:94
↓ 4 callers
Method
init
(self, args, role, with_ref=False, with_opd_teacher=False)
slime/ray/train_actor.py:50
↓ 4 callers
Function
load_dataset
Load a list of {question, label} dicts from a JSONL file; supports chat messages format.
agentic/agentflow/eval_baseline.py:116
↓ 4 callers
Method
load_state_dict
(self, state_dict)
slime/backends/fsdp_utils/checkpoint.py:28
↓ 4 callers
Function
named_params_and_buffers
( args: Namespace, model: Sequence[torch.nn.Module], convert_to_global_name: bool = True, tran
slime/backends/megatron_utils/update_weight/common.py:116
↓ 4 callers
Function
parse_args
(add_custom_arguments=None)
slime/utils/arguments.py:1438
↓ 4 callers
Function
post
(url, payload, max_retries=60, headers=None)
slime/utils/http_utils.py:273
↓ 4 callers
Function
post_process_weights
Trigger post-process for int4/fp4 quantization on all rollout engines.
slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py:340
↓ 4 callers
Method
pretty_print
Print the trie structure in a readable format.
slime/router/middleware_hub/radix_tree.py:551
↓ 4 callers
Method
reset
Reset internal offset to the start and return self.
slime/backends/megatron_utils/data.py:287
↓ 4 callers
Method
save_model
(self, rollout_id, force_sync=False)
slime/ray/train_actor.py:117
↓ 4 callers
Function
should_disable_forward_pre_hook
Block forward pre-hook for certain configurations.
slime/backends/megatron_utils/model.py:484
↓ 4 callers
Function
should_run_periodic_action
Return True when a periodic action (eval/save/checkpoint) should run. Args: rollout_id: The current rollout index (0-based).
slime/utils/misc.py:73
↓ 4 callers
Method
shuffle
(self, new_epoch_id)
slime/utils/data.py:253
↓ 4 callers
Method
sleep
Pause CUDA memory for all tracked tensors.
slime/backends/fsdp_utils/actor.py:269
↓ 4 callers
Function
slice_with_cp
( tokens: torch.Tensor, pad_value: tuple[int, float, Callable], qkv_format: str = "thd", max_s
slime/backends/megatron_utils/cp_utils.py:175
↓ 4 callers
Method
update_weights
(self)
slime/ray/train_actor.py:121
↓ 4 callers
Method
validate
Validate the run config
agentic/ToolOrchestra/tau2/data_model/simulation.py:212
↓ 3 callers
Method
_build_booked_seats
Build BookedSeat list with computed price, convenience_fee, tax.
agentic/ToolOrchestra/tau2/domains/movie/tools.py:162
↓ 3 callers
Method
_build_output
Same turns concatenation logic as agentflow.Solver: turn[0]: only response tokens are concatenated (prompt stored separately in pro
agentic/ToolOrchestra/orchestra_solver.py:697
↓ 3 callers
Method
_calc_total_price
( self, base_price_per_person: float, num_travelers: int, add_ons: List[Bookin
agentic/ToolOrchestra/tau2/domains/travel/tools.py:122
↓ 3 callers
Method
_can_send_mms
Checks if the default messaging app can send MMS messages.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:931
↓ 3 callers
Function
_chat_once
( session: aiohttp.ClientSession, model: str, messages: list[dict], temperature: float, to
agentic/memagent/eval_ruler_hqa.py:210
↓ 3 callers
Function
_chat_once
( session: aiohttp.ClientSession, model: str, messages: list[dict], temperature: float, to
agentic/memagent/eval_ruler_general.py:246
↓ 3 callers
Function
_compute_hash_dict
(tensors: dict[str, torch.Tensor])
slime/utils/tensor_backper.py:105
↓ 3 callers
Method
_credits_to_status
(self, total_credits: int)
agentic/ToolOrchestra/tau2/domains/school/tools.py:104
↓ 3 callers
Function
_ensure_lock_files
(path_pattern: str, total_gpus: int)
tests/ci/gpu_lock_exec.py:174
↓ 3 callers
Function
_fmt_time
(seconds: float)
agentic/ToolOrchestra/eval_orchestra.py:72
↓ 3 callers
Method
_get_account
Get an account from the database.
agentic/ToolOrchestra/tau2/domains/ecommerce/tools.py:53
↓ 3 callers
Method
_get_agent
(self, agent_id: str)
agentic/ToolOrchestra/tau2/domains/travel/tools.py:67
↓ 3 callers
Method
_get_beneficiary
(self, beneficiary_id: str)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:95
↓ 3 callers
Method
_get_booking
(self, booking_id: str)
agentic/ToolOrchestra/tau2/domains/movie/tools.py:68
↓ 3 callers
Method
_get_card_by_id
(self, card_id: str)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:84
↓ 3 callers
Method
_get_flight
Get flight from database.
agentic/ToolOrchestra/tau2/domains/airline/tools.py:69
↓ 3 callers
Method
_get_instrument
Get a saved payment instrument for a patron.
agentic/ToolOrchestra/tau2/domains/restaurant/tools.py:72
↓ 3 callers
Method
_get_medication
(self, medication_id: str)
agentic/ToolOrchestra/tau2/domains/medicine/tools.py:74
← previous
next →
101–200 of 2,220, ranked by callers