MCPcopy Create free account

hub / github.com/OpenPipe/ART / functions

Functions1,502 in github.com/OpenPipe/ART

Method_to_openai_tool_arguments
Qwen3.5 chat template expects arguments as a mapping for |items.
src/art/tinker/cookbook_v/renderers/qwen3_5.py:85
Method_train_judge
()
tests/unit/test_track_api_cost.py:474
Function_train_model
( model: TrainableModel, trajectory_groups: list[TrajectoryGroup], config: TrainConfig
src/art/cli.py:352
Method_train_sft
Train the model using supervised fine-tuning. For ServerlessBackend, this serializes trajectories to a JSONL file, uploads it to W&B
src/art/serverless/backend.py:388
Method_train_sft
Train the model using supervised fine-tuning. Args: model: The trainable model to fine-tune trajectories: Iterable of
src/art/local/backend.py:807
Method_trajectory_log
Format a trajectory into a readable log string.
src/art/local/backend.py:486
Function_unpickle_renderer
Reconstruct a Renderer from its name and model name. Called by pickle to deserialize Renderer instances. Uses cached tokenizer/image_processor
src/art/tinker/cookbook_v/renderers/base.py:687
Functionall_same
(xs: list[Any])
src/art/tinker/cookbook_v/utils/misc_utils.py:38
Methodapply_tool
Execute a tool with given arguments. Args: tool_name: Name of the tool to call arguments: Arguments to pass to the to
examples/mcp-rl/mcp_rl/mcp_server.py:40
Methodapply_tool
Apply a tool with given arguments. Args: tool_name: Name of the tool to call arguments: Arguments to pass to the tool
examples/mcp-rl/mcp_rl/mcp_server.py:139
Methodapply_tool
Execute a tool via the API server. Args: tool_name: Name of the tool to call arguments: Arguments to pass to the tool
examples/mcp-rl/mcp_rl/mcp_server.py:243
Functionart_error_handler
(request: Request, exc: ARTError)
src/art/cli.py:327
Methodasync_gen_wrapper
( *args: Any, **kwargs: Any )
src/mp_actors/move.py:219
Methodasync_method_wrapper
(*args: Any, **kwargs: Any)
src/mp_actors/move.py:237
Functionasync_wrapper
(*args: Any, **kwargs: Any)
src/mp_actors/traceback.py:22
Functionasync_wrapper
(*args: P.args, **kwargs: P.kwargs)
src/art/utils/retry.py:47
Methodauth_headers
(self)
src/art/serverless/client.py:315
Functionauto_trajectory
(*, required: Literal[True])
src/art/auto_trajectory.py:46
Methodautomatic_gpu_cost_per_hour_usd
(self, model: Model)
src/art/local/backend.py:111
Functionbenchmark_rollout
( model: str, num_rollouts: int, rollout: Callable[[str, int, bool], Coroutine[Any, Any, Trajector
src/art/utils/benchmark_rollout.py:8
Functionbuild_async_engine_client
( *args: Any, **kwargs: Any, )
src/art/vllm/server.py:90
Methodbuild_generation_prompt
Build generation prompt, prepending system message if configured.
src/art/tinker/cookbook_v/renderers/gpt_oss.py:386
Methodbuild_generation_prompt
Build generation prompt with <think></think> prefill to disable thinking.
src/art/tinker/cookbook_v/renderers/kimi_k25.py:146
Methodbuild_generation_prompt
Build generation prompt with <think> prefill to trigger thinking mode. Does NOT add <think> when the previous message is a tool response,
src/art/tinker/cookbook_v/renderers/deepseek_v3.py:426
Methodbuild_generation_prompt
( self, messages: list[Message], role: Role = "assistant", prefill: str | None
src/art/tinker/cookbook_v/renderers/kimi_k2.py:515
Methodbuild_line
()
src/art/pipeline_trainer/status.py:230
Methodbuild_supervised_example
Build supervised example, prepending system message if configured.
src/art/tinker/cookbook_v/renderers/gpt_oss.py:399
Methodbuild_supervised_examples
Build tokens and per-token weights for supervised fine-tuning. This function returns a list of examples in the form of tuples, where
src/art/tinker/cookbook_v/renderers/base.py:1004
Methodbuild_supervised_examples
Build tokens and per-token weights for supervised fine-tuning. Since Kimi K2 renderer does not satisfy the extension property, this method is
src/art/tinker/cookbook_v/renderers/kimi_k2.py:564
Functioncalculate_metrics_by_split
Calculate correlation and RMSE metrics for each split in the dataset. Args: df: DataFrame with log_score, predictions and split colu
examples/hn_title_generator/utils.py:47
Functioncall_tool
(name: str, arguments: dict)
examples/mcp-rl/servers/python/mcp_balldontlie/server.py:189
Functioncall_tool
(name: str, arguments: dict)
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:340
Functioncall_tool
(name: str, arguments: dict)
examples/mcp-rl/servers/python/mcp_alphavantage/server.py:222
Functioncapture_auto_trajectory
(coroutine: Coroutine[Any, Any, Any])
src/art/auto_trajectory.py:64
Functioncapture_yielded_trajectory
(coroutine: Coroutine[Any, Any, Any])
src/art/yield_trajectory.py:11
Methodchat_completions
(body: CompletionCreateParams)
src/art/tinker_native/backend.py:381
Methodchat_completions
( request: Request, body: Annotated[CompletionCreateParams, SkipValidation] )
src/art/tinker/server.py:201
Functioncheck_length
(x)
examples/hn_title_generator/train.py:42
Functioncheck_length
(x)
examples/hn_title_generator/reference_grpo_trainer.py:62
Functioncheck_scraped_body
(x)
examples/hn_title_generator/train.py:92
Methodcheckpoints
(self)
src/art/serverless/client.py:144
Methodclose
(self)
src/mp_actors/move.py:252
Methodcompletions
()
src/art/tinker/server.py:133
Methodcompression_ratio
Return compression ratio (original_size / new_size).
src/art/utils/trajectory_migration.py:155
Functioncompute_loss
( model: "PeftModel", inputs: "TrainInputs", return_outputs: bool = False, num
src/art/unsloth/train.py:84
Functionconcat_lists
(list_of_lists: list[list[Any]])
src/art/tinker/cookbook_v/utils/misc_utils.py:90
Functionconsume_chat_completion_stream
Consume a chat completion stream and build a complete ChatCompletion object. This function processes a stream of ChatCompletionChunks, constructi
src/art/openai.py:16
Functionconsume_sync_chat_completion_stream
( stream: Stream[ChatCompletionChunk], )
src/art/openai.py:52
Methodcost_calculator
(self)
src/art/model.py:928
Methodcreate
( self, *, model_id: str, trajectory_groups: list[TrajectoryGroup], ex
src/art/serverless/client.py:184
Methodcreate
( self, *, model_id: str, training_data_url: str, config: SFTTrainingC
src/art/serverless/client.py:234
Methodcreate_conversation_prefix_with_tools
( self, tools: list[ToolSpec], system_prompt: str = "" )
src/art/tinker/cookbook_v/renderers/role_colon.py:96
Methodcreate_conversation_prefix_with_tools
Create conversation prefix with tools in Harmony format. Returns a list of messages to prepend to conversations: 1. If tools present:
src/art/tinker/cookbook_v/renderers/gpt_oss.py:621
Methodcreate_conversation_prefix_with_tools
Create system messages with TypeScript-style tool specifications. Per the HuggingFace chat template, Kimi K2.5 uses TypeScript-style tool
src/art/tinker/cookbook_v/renderers/kimi_k25.py:106
Methodcreate_conversation_prefix_with_tools
Create system message with Qwen3.5 tool specifications. Qwen3.5 uses a different tool declaration format from Qwen3, with XML-based f
src/art/tinker/cookbook_v/renderers/qwen3_5.py:239
Methodcreate_conversation_prefix_with_tools
Create system message with DeepSeek V3.1 tool specifications. DeepSeek V3.1 tool calling requires tools to be described in the system message
src/art/tinker/cookbook_v/renderers/deepseek_v3.py:332
Methodcreate_conversation_prefix_with_tools
Create system message with Qwen3 tool specifications. Qwen3 uses XML `<tools>` tags containing JSON tool definitions in OpenAI format,
src/art/tinker/cookbook_v/renderers/qwen3.py:294
Methodcreate_conversation_prefix_with_tools
Create system messages with Kimi K2 tool specifications. Per the HuggingFace chat template, Kimi K2 places the tool_declare message B
src/art/tinker/cookbook_v/renderers/kimi_k2.py:832
Methodcustom_loss_fn
( _: list[tinker.Datum], logprobs_list: list[torch.Tensor], *,
src/art/tinker/service.py:68
Functiondecorator
(func: T)
src/mp_actors/traceback.py:11
Functiondecorator
(func)
src/art/utils/limit_concurrency.py:9
Functiondecorator
(func: Callable[P, R])
src/art/utils/retry.py:43
Methoddefault_headers
(self)
src/art/serverless/client.py:321
Methoddelete
(self, *, model_id: str)
src/art/serverless/client.py:137
Methoddelete
( self, *, model_id: str, steps: Iterable[int] )
src/art/serverless/client.py:173
Methoddelete_model
(request: Request, model: str)
src/art/tinker/server.py:185
Functiondict_mean
(list_of_dicts: list[dict[str, float | int]])
src/art/tinker/cookbook_v/utils/misc_utils.py:30
Functiondisplay_image_grid
(image_paths: list[str], images_per_row: int = 2)
src/art/utils/old_benchmarking/display_image_grid.py:4
Functiondo_sleep
Put the worker to sleep, offloading both weights and KV cache. Args: level: The sleep level: - 1: offload KV cache to CP
src/art/unsloth/service.py:1028
Functiondo_wake_up
Wake up the worker from sleep, restoring offloaded weights and KV cache.
src/art/unsloth/service.py:1094
Methoddone_callback
(_: asyncio.Task[None])
src/art/local/backend.py:407
Functioneval_fn
( model: art.TrainableModel, step: int, _config: None, *, scenarios: list[dict], )
src/art/pipeline_trainer/yes_no_maybe_pipeline.py:54
Functioneval_fn
( _model: art.TrainableModel, _step: int, _config: PipelineConfig )
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:293
Methodevents
(self)
src/art/serverless/client.py:205
Methodevents
(self)
src/art/serverless/client.py:252
Methodfixtures_available
Check if fixtures are available.
tests/unit/test_trajectory_parquet.py:626
Methodfor_logging
(self)
src/art/trajectories.py:75
Functionformat_content_as_string
Format message content as a string, preserving all part types. Unlike get_text_content which only extracts text parts, this formats all conte
src/art/tinker/cookbook_v/renderers/base.py:441
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, *, block_mask: BlockM
src/art/megatron/flex_attention.py:42
Methodforward
Compute self attention with compiled flex kernels. Args: query: `[S, B, Hq, D]` key: `[S, B, Hkv, D]` val
src/art/megatron/flex_attention.py:158
Methodforward
( self, x: torch.Tensor, tokens_per_expert: list[int] | torch.Tensor | None = None )
src/art/megatron/lora.py:145
Methodforward
(self, x: torch.Tensor)
src/art/megatron/lora.py:188
Methodforward
(self, x: torch.Tensor)
src/art/megatron/lora.py:262
Methodforward
( self, x: torch.Tensor, tokens_per_expert: list[int] | torch.Tensor )
src/art/megatron/lora.py:327
Methodforward
( self, x: torch.Tensor, tokens_per_expert: list[int] | torch.Tensor )
src/art/megatron/lora.py:361
Methodfrom_dict
Create a Resource from a dictionary.
src/art/mcp/types.py:53
Methodfrom_dict
Create a GeneratedScenario from a dictionary.
src/art/mcp/types.py:82
Methodfrom_json
Create a GeneratedScenarioCollection from a JSON string.
src/art/mcp/types.py:110
Functiongather_trajectories
( trajectories: Iterable[Awaitable[Trajectory]], *, pbar_desc: str | None = "gather", pbar_tot
src/art/gather.py:69
Functiongather_trajectory_groups
( groups: Iterable[Awaitable[TrajectoryGroup]], *, pbar_desc: str | None = "gather", pbar_tota
src/art/gather.py:14
Functiongenerate_comparison_table
( project: str, benchmark_keys: list[BenchmarkedModelKey], metrics: list[str] = ["reward"], ap
src/art/utils/old_benchmarking/generate_comparison_table.py:7
Functiongenerate_line_graphs
( project: str, line_graph_keys: list[BenchmarkedModelKey], comparison_keys: list[BenchmarkedModel
src/art/utils/old_benchmarking/generate_line_graphs.py:19
Functiongenerate_scenarios
Generate scenarios for MCP tools. Args: tools: List of Tool objects or list of tool dictionaries resources: Optional list of
src/art/mcp/generate_scenarios.py:27
Methodget_inputs
()
src/art/unsloth/service.py:989
Functionget_lora_lr_multiplier
Get a model-specific mutliplier for the LR, when training with LoRA. Given two models A and B, and learning rate LR_A that's known to be opti
src/art/tinker/cookbook_v/hyperparam_utils.py:183
Functionget_lora_param_count
Get the number of parameters in the LoRA adapter.
src/art/tinker/cookbook_v/hyperparam_utils.py:102
Functionget_lr
(model_name: str, is_lora: bool = True)
src/art/tinker/cookbook_v/hyperparam_utils.py:156
Methodget_model
(request: Request, model: str)
src/art/tinker/server.py:154
Functionget_registered_renderer_names
Return a list of all registered custom renderer names.
src/art/tinker/cookbook_v/renderers/__init__.py:70
Functionget_registered_tokenizer_names
Return a list of all registered custom tokenizer names.
src/art/tinker/cookbook_v/tokenizer_utils.py:46
← previousnext →1,001–1,100 of 1,502, ranked by callers