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
↓ 2 callers
Function
_get_lock_path
(path_pattern: str, gpu_id: int)
tests/ci/gpu_lock_exec.py:186
↓ 2 callers
Method
_get_model_inputs_args
(self, packed_sequence: dict)
slime/backends/fsdp_utils/actor.py:801
↓ 2 callers
Method
_get_patron
Get a patron from the database.
agentic/ToolOrchestra/tau2/domains/restaurant/tools.py:53
↓ 2 callers
Method
_get_product
Get the product from the database. Args: product_id: The product id, such as '6086499569'. Be careful the product id is different
agentic/ToolOrchestra/tau2/domains/retail/tools.py:78
↓ 2 callers
Method
_get_valid_groups_with_timeout
Get valid groups including timeout-based groups
slime_plugins/rollout_buffer/buffer.py:162
↓ 2 callers
Method
_get_variant
Get the variant from the database. Args: product_id: The product id, such as '6086499569'. Be careful the product id is different
agentic/ToolOrchestra/tau2/domains/retail/tools.py:94
↓ 2 callers
Function
_init_wandb_common
()
slime/utils/wandb_utils.py:150
↓ 2 callers
Function
_is_frac
(expr: str)
slime/rollout/rm_hub/math_utils.py:215
↓ 2 callers
Function
_is_loopback
(ip)
slime/utils/http_utils.py:48
↓ 2 callers
Function
_is_offline_mode
Detect whether W&B should run in offline mode. Priority order: 1) args.wandb_mode if provided 2) WANDB_MODE environment variable
slime/utils/wandb_utils.py:10
↓ 2 callers
Method
_is_pending_order
Check if the order is pending. This is not a strict check, and not meant to be used for modify_items in pending orders. Args: ord
agentic/ToolOrchestra/tau2/domains/retail/tools.py:131
↓ 2 callers
Method
_is_pending_sale
Non-strict pending check for a sale.
agentic/ToolOrchestra/tau2/domains/ecommerce/tools.py:79
↓ 2 callers
Function
_last_boxed_only_string
Ported directly from MemAgent hotpotqa.py; supports nested braces and \\boxed space format.
agentic/memagent/rollout.py:197
↓ 2 callers
Method
_list_all_seat_ids
(self, auditorium: Auditorium)
agentic/ToolOrchestra/tau2/domains/movie/tools.py:119
↓ 2 callers
Function
_normalize
Normalize answer expressions.
slime/rollout/rm_hub/math_utils.py:255
↓ 2 callers
Function
_normalize_text
Normalize whitespace, punctuation, casing for robust comparison.
agentic/ToolOrchestra/reward.py:49
↓ 2 callers
Method
_overload_credits
(self, total_credits: int)
agentic/ToolOrchestra/tau2/domains/school/tools.py:107
↓ 2 callers
Method
_payment_for_update
Process payment for update reservation Args: user: The user to process payment for. payment_id: The payment
agentic/ToolOrchestra/tau2/domains/airline/tools.py:162
↓ 2 callers
Function
_pick_from_mapping
(data: dict[str, Any], key_names: tuple[str, ...] | None)
slime/utils/eval_config.py:69
↓ 2 callers
Function
_post
(client, url, payload, max_retries=60, headers=None)
slime/utils/http_utils.py:165
↓ 2 callers
Function
_profile_simple_loop
(iterator, args, name)
slime/utils/profile_utils.py:48
↓ 2 callers
Function
_remove_boxed
(s: str)
agentic/memagent/rollout.py:219
↓ 2 callers
Function
_resolve_ip
Attempt to get the local LAN IP for the specific family (IPv4/IPv6). Strategy: UDP Probe (Preferred) -> Hostname Resolution (Fallback
slime/utils/http_utils.py:51
↓ 2 callers
Function
_run
(cmd: list[str], extra_env: dict[str, str])
agentic/memagent/run_eval.py:145
↓ 2 callers
Method
_save_debug_rollout_data
(self, data, rollout_id, evaluation: bool)
slime/ray/rollout.py:691
↓ 2 callers
Method
_setup_tool_routes
Helper method to set up routes for a set of tools
agentic/ToolOrchestra/tau2/environment/server.py:133
↓ 2 callers
Function
_strip_chain_of_thought
(text: str)
slime/rollout/rm_hub/gpqa.py:8
↓ 2 callers
Function
_strip_properly_formatted_commas
(expr: str)
slime/rollout/rm_hub/math_utils.py:244
↓ 2 callers
Function
_strip_string
Fully aligned with strip_string in the original MemAgent hotpotqa.py.
agentic/memagent/rollout.py:238
↓ 2 callers
Function
_strip_thinking
Remove <think>...</think> blocks for concise display, keep tool_call and message.
agentic/ToolOrchestra/orchestra_solver.py:38
↓ 2 callers
Function
_to_tools_list
The tools field in the data may be a single dict (func_call) or a list (qa); normalize to a list in either case.
agentic/ToolOrchestra/prompt_builder.py:23
↓ 2 callers
Method
_toggle_wifi_calling
Toggles the Wi-Fi Calling setting. Returns the new state.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:716
↓ 2 callers
Function
_truncate
(text: str, max_length: int)
agentic/agentflow/tools/python_coder/tool.py:60
↓ 2 callers
Function
_truncate
Truncate text and add ellipsis if too long.
slime/utils/debug_utils/replay_reward_fn.py:12
↓ 2 callers
Method
_update_expert_bucket_weights_from_distributed
Gather EP → HF → broadcast. Clears buffer.
slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py:190
↓ 2 callers
Method
_validate_seats_available
( self, already_booked: Set[str], requested: Set[str] )
agentic/ToolOrchestra/tau2/domains/movie/tools.py:144
↓ 2 callers
Function
_wait_server_healthy
(base_url, api_key, is_process_alive)
slime/backends/sglang_utils/sglang_engine.py:73
↓ 2 callers
Function
_wrap_ipv6
Wrap IPv6 address in [] if needed.
slime/utils/http_utils.py:108
↓ 2 callers
Function
_wrap_low_level_call
()
slime/utils/reloadable_process_group.py:295
↓ 2 callers
Method
add
(self, meta_info: dict)
slime/utils/types.py:68
↓ 2 callers
Method
add
(self, idx: int, val: int)
slime/utils/seqlen_balancing.py:28
↓ 2 callers
Method
add_samples
Add samples to the data source
slime/rollout/data_source.py:25
↓ 2 callers
Function
all_gather_param
All-gather TP-sharded param to full tensor. expert_bias→param, non-TP/duplicated→param.data. Uses expert-TP for ".experts.", else regular-TP.
slime/backends/megatron_utils/update_weight/common.py:15
↓ 2 callers
Function
allocate_train_group
(args, num_nodes, num_gpus_per_node, pg)
slime/ray/placement_group.py:122
↓ 2 callers
Function
analyzePath
* Analyze current pathname to figure out repo root + language segment pattern. * Supports patterns: * /en/… (language as first s
docs/_static/js/lang-toggle.js:18
↓ 2 callers
Function
apply_fsdp2
Apply FSDP v2 to the model. Args: model: The model to wrap with FSDP mesh: Optional DeviceMesh for FSDP. If None, uses all ranks.
slime/backends/fsdp_utils/actor.py:933
↓ 2 callers
Function
as_tool
Wrap a given function with additional predefined arguments into a Tool. This function allows converting a standard function into a 'Tool' by
agentic/ToolOrchestra/tau2/environment/tool.py:202
↓ 2 callers
Method
async_init
Allocate GPU resourced and initialize model, optimzier, local ckpt, etc.
slime/ray/actor_group.py:108
↓ 2 callers
Function
async_rm
(args, sample: Sample, **kwargs)
slime/rollout/rm_hub/__init__.py:55
↓ 2 callers
Function
available_memory
()
slime/utils/memory_utils.py:18
↓ 2 callers
Function
batched_async_rm
( args, samples: list[Sample], **kwargs, )
slime/rollout/rm_hub/__init__.py:94
↓ 2 callers
Function
build_frames_eval
Build QA eval examples from frames.jsonl.
agentic/ToolOrchestra/prepare_eval_data.py:211
↓ 2 callers
Function
calculate_layer_flops
(args, seqlen, hidden_size, num_attention_heads, num_query_groups, ffn_hidden_size)
slime/utils/flops_utils.py:57
↓ 2 callers
Function
call_orchestrator
Call orchestrator via SGLang /generate (matches training path exactly). Training uses tokenizer.apply_chat_template + SGLang /generate + XML pars
agentic/ToolOrchestra/eval_orchestra.py:568
↓ 2 callers
Function
call_rollout_fn
(fn, *args, evaluation: bool, **kwargs)
slime/rollout/base_types.py:19
↓ 2 callers
Function
ceil_div
Perform ceiling division of two integers. Args: x: the dividend. y: the divisor. Returns: The resul
slime/backends/megatron_utils/kernels/fp8_kernel.py:10
↓ 2 callers
Function
ceildiv
(a, b)
tools/convert_hf_to_fp8.py:35
↓ 2 callers
Function
change_domain
Helper function to handle domain selection
agentic/ToolOrchestra/tau2/environment/utils/interface_agent.py:162
↓ 2 callers
Function
chunked_gae
Compute Generalized Advantage Estimation (GAE) using a FlashLinearAttention- inspired algorithm: parallel prefix scan within chunks and recur
slime/utils/ppo_utils.py:506
↓ 2 callers
Function
compute_advantages_and_returns
Compute advantages and returns in-place based on `args.advantage_estimator`. This function extracts rewards, log-probs, values, and masks from
slime/backends/megatron_utils/loss.py:400
↓ 2 callers
Function
compute_entropy_from_logits
(logits: torch.Tensor, process_group)
slime/utils/ppo_utils.py:197
↓ 2 callers
Function
compute_gspo_kl
Compute GSPO-style per-sequence KL divergence. Args: full_log_probs: Current policy log-probs per sample (full or CP-local). full
slime/utils/ppo_utils.py:95
↓ 2 callers
Function
compute_log_probs
(logits: torch.Tensor, tokens: torch.Tensor, process_group: dist.ProcessGroup | None)
slime/utils/ppo_utils.py:151
↓ 2 callers
Function
compute_metrics_from_samples
(args, samples)
slime/ray/rollout.py:1170
↓ 2 callers
Function
compute_opsm_mask
Compute Off-Policy Sequence Masking (OPSM) mask. Args: args: Configuration containing `opsm_delta` threshold. full_log_probs: Cur
slime/utils/ppo_utils.py:54
↓ 2 callers
Function
compute_pass_rate
( flat_rewards: list[float], group_size: int, num_groups: int | None = None, )
slime/utils/metric_utils.py:14
↓ 2 callers
Function
compute_perf_metrics_from_samples
(args, samples, rollout_time)
slime/ray/rollout.py:1182
↓ 2 callers
Function
compute_policy_loss
( ppo_kl: torch.Tensor, advantages: torch.Tensor, eps_clip: float, eps_clip_high: float, e
slime/utils/ppo_utils.py:125
↓ 2 callers
Function
compute_statistics
(values: list[float])
slime/utils/metric_utils.py:59
↓ 2 callers
Function
connect_rollout_engines_from_distributed
Create NCCL group: training rank 0 + all engine GPUs. Blocks until joined. ``engine_gpu_counts`` gives the number of GPUs per engine. When
slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py:252
↓ 2 callers
Method
context
(self, name)
slime/utils/timer.py:47
↓ 2 callers
Function
convert
(arg)
slime/utils/reloadable_process_group.py:104
↓ 2 callers
Function
convert_parquet
(input_path: str, output_path: str)
agentic/memagent/prepare_data.py:112
↓ 2 callers
Function
convert_qwen3_next_to_hf
Convert Qwen3 Next model parameters from Megatron to HuggingFace format.
slime/backends/megatron_utils/megatron_to_hf/qwen3_next.py:44
↓ 2 callers
Method
create
(args, model, **kwargs)
slime/backends/megatron_utils/update_weight/hf_weight_iterator_base.py:6
↓ 2 callers
Function
create_placement_groups
Create placement groups for actor and rollout engines.
slime/ray/placement_group.py:79
↓ 2 callers
Function
create_rollout_manager
(args, pg)
slime/ray/placement_group.py:181
↓ 2 callers
Function
create_training_models
(args, pgs, rollout_manager)
slime/ray/placement_group.py:132
↓ 2 callers
Function
detectCurrent
()
docs/_static/js/lang-toggle.js:5
↓ 2 callers
Function
disconnect_rollout_engines_from_distributed
Destroy NCCL on training and engines.
slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py:301
↓ 2 callers
Method
display_message
Display a single message in markdown format.
agentic/ToolOrchestra/tau2/utils/display.py:506
↓ 2 callers
Function
enable_forward_pre_hook
Enable forward pre-hooks for provided DDP-wrapped model chunks. Args: model_chunks (Sequence[DDP]): Sequence of DDP modules to enable hoo
slime/backends/megatron_utils/model.py:129
↓ 2 callers
Method
end
(self, name)
slime/utils/timer.py:26
↓ 2 callers
Function
execute
(mode: str = "")
tests/test_qwen3_4B_ckpt.py:31
↓ 2 callers
Method
execute_with_messages
Structured mode: send full conversation history, optionally with tools schema for native tool calling (func_call tasks). Arg
agentic/ToolOrchestra/tools/expert_caller/tool.py:208
↓ 2 callers
Function
extract_boxed_answer
Extract the answer from inside a LaTeX \\boxed{} command
slime/rollout/rm_hub/math_utils.py:422
↓ 2 callers
Function
format_time
Format the time in the format YYYYMMDD_HHMMSS.
agentic/ToolOrchestra/tau2/utils/utils.py:61
↓ 2 callers
Function
forward_only
Run forward passes only and collect non-loss outputs (e.g., logprobs). The model is put into evaluation mode, a forward-only pipeline pass is
slime/backends/megatron_utils/model.py:153
↓ 2 callers
Method
gc_by_weight_version
Perform garbage collection based on weight version. Remove nodes with weight_version < (current_weight_version - gc_threshold_k).
slime/router/middleware_hub/radix_tree.py:439
↓ 2 callers
Method
gen_multi_turn_loss_mask_distill_qwen
( self, messages: list[dict], tools: list[dict] = None )
slime/utils/mask_utils.py:111
↓ 2 callers
Function
generate_and_rm
( args: Namespace, sample: Sample | list[Sample], sampling_params: dict[str, Any], evaluation:
slime/rollout/sglang_rollout.py:208
↓ 2 callers
Function
generate_random_string
Generates a random string of specified length using alphanumeric characters.
agentic/ToolOrchestra/tau2/utils/llm_utils.py:244
↓ 2 callers
Function
get
(url)
slime/utils/http_utils.py:291
↓ 2 callers
Function
get_batch
Generate a CP-ready micro-batch with packed sequence parameters. Steps: - Fetch raw fields via iterator. - Save original token tenso
slime/backends/megatron_utils/data.py:25
↓ 2 callers
Function
get_data_iterator
Create iterators and a micro-batch schedule for a rollout step. - If `use_dynamic_batch_size` is False, splits into fixed-size contiguous
slime/backends/megatron_utils/data.py:293
↓ 2 callers
Function
get_db
()
agentic/ToolOrchestra/tau2/domains/mock/data_model.py:52
↓ 2 callers
Method
get_db_hash
Get a hash of the agent database Returns None if the database is not available
agentic/ToolOrchestra/tau2/environment/environment.py:265
↓ 2 callers
Method
get_db_hash
Get the hash of the database.
agentic/ToolOrchestra/tau2/environment/toolkit.py:161
↓ 2 callers
Function
get_deepscaler_rule_based_reward
(response, label)
slime/rollout/rm_hub/deepscaler.py:4
↓ 2 callers
Function
get_dict_hash
Generate a unique hash for dict. Returns a hex string representation of the hash.
agentic/ToolOrchestra/tau2/utils/utils.py:35
← previous
next →
301–400 of 2,220, ranked by callers