Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenPipe/ART
/ functions
Functions
1,502 in github.com/OpenPipe/ART
⨍
Functions
1,502
◇
Types & classes
261
↳
Endpoints
14
↓ 1 callers
Method
_run
(self, host: str, port: int)
src/art/tinker/server.py:123
↓ 1 callers
Method
_run_openai_server
( self, state: ModelState, host: str, port: int, )
src/art/tinker_native/backend.py:372
↓ 1 callers
Method
_save_checkpoint
( self, training_client: tinker.TrainingClient, checkpoint_name: str, )
src/art/tinker_native/backend.py:783
↓ 1 callers
Function
_schema_comments
Extract comments from schema (title, description, examples).
src/art/tinker/cookbook_v/renderers/gpt_oss.py:84
↓ 1 callers
Method
_should_eval_step
(self, step: int)
src/art/pipeline_trainer/trainer.py:761
↓ 1 callers
Method
_skip_scenarios
( self, scenarios: AsyncIterator[ScenarioT], count: int )
src/art/pipeline_trainer/trainer.py:280
↓ 1 callers
Function
_slugify
Create a filesystem-friendly slug from text.
dev/yes-no-maybe-vision/generate_images.py:229
↓ 1 callers
Method
_start_vllm_subprocess
Launch vLLM as a subprocess on inference GPUs. Returns (host, port).
src/art/unsloth/service.py:333
↓ 1 callers
Method
_status_loop
(self)
src/art/pipeline_trainer/trainer.py:573
↓ 1 callers
Function
_strip_logprobs
(obj: Any)
src/art/utils/strip_logprobs.py:35
↓ 1 callers
Method
_tinker_sample_call
(self, label: str, awaitable: Awaitable[T])
src/art/tinker_native/backend.py:170
↓ 1 callers
Function
_to_async_iterator
Convert a sync Iterable to an AsyncIterator, or pass through if already async.
src/art/pipeline_trainer/trainer.py:23
↓ 1 callers
Method
_to_openai_tool_arguments
Convert tool arguments for OpenAI-compatible message payloads. Qwen3 templates accept JSON-string arguments directly; subclasses can
src/art/tinker/cookbook_v/renderers/qwen3.py:286
↓ 1 callers
Function
_tool_name_and_args
(tool_call: Any)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:127
↓ 1 callers
Method
_train_dedicated
Train in dedicated mode — no sleep/wake, vLLM keeps running on separate GPU.
src/art/unsloth/service.py:579
↓ 1 callers
Method
_train_model
( self, model: AnyTrainableModel, trajectory_groups: list[TrajectoryGroup], co
src/art/serverless/backend.py:321
↓ 1 callers
Method
_train_model
( self, model: TrainableModel, trajectory_groups: list[TrajectoryGroup], confi
src/art/local/backend.py:687
↓ 1 callers
Method
_train_sft
( self, model: AnyTrainableModel, trajectories: Iterable[Trajectory], config:
src/art/backend.py:54
↓ 1 callers
Method
_train_shared
Train in shared mode — sleep/wake cycle with in-process vLLM.
src/art/unsloth/service.py:640
↓ 1 callers
Function
_trajectory_has_choice
(trajectory: Trajectory)
src/art/tinker_native/data.py:120
↓ 1 callers
Method
_trigger_collapse
(self)
src/art/pipeline_trainer/trainer.py:697
↓ 1 callers
Function
_unflatten_message
Convert flat parquet format back to message dict.
src/art/utils/trajectory_logging.py:46
↓ 1 callers
Method
_update_throughput_metrics
(self, result: dict[str, float])
src/art/metrics.py:376
↓ 1 callers
Function
_upload_model
Uploads a model to Together.
src/art/utils/deployment/together.py:82
↓ 1 callers
Function
_use_adapter
Context manager that switches to a named LoRA adapter, then restores the original.
src/art/unsloth/train.py:301
↓ 1 callers
Method
_validate_and_add
(self, key: str, value: float)
src/art/metrics.py:319
↓ 1 callers
Function
_wait_for_count
(values: list[int], target: int, timeout: float = 2.0)
tests/unit/test_mp_actors.py:53
↓ 1 callers
Function
_wait_for_job
Waits for a model deployment job to complete in Together.
src/art/utils/deployment/together.py:173
↓ 1 callers
Method
_wait_for_policy
(self)
src/art/pipeline_trainer/trainer.py:309
↓ 1 callers
Method
_wait_for_server_ready
( self, base_url: str, api_key: str, model: TrainableModel )
src/art/tinker_native/backend.py:506
↓ 1 callers
Method
_wrap_qwen_tool_response
Wrap tool response content in Qwen's <tool_response> tags.
src/art/tinker/cookbook_v/renderers/qwen3.py:126
↓ 1 callers
Method
_wrap_qwen_tool_response_chunks
Wrap content chunks in Qwen's <tool_response> tags for multimodal messages.
src/art/tinker/cookbook_v/renderers/qwen3.py:489
↓ 1 callers
Method
_write_log_line
(self, line: str)
src/art/pipeline_trainer/status.py:311
↓ 1 callers
Function
add_thread
(thread_id, base_url, api_key, model)
src/art/langgraph/llm_wrapper.py:26
↓ 1 callers
Method
aincrement
(self)
tests/unit/test_mp_actors.py:20
↓ 1 callers
Method
ainvoke
(self, input, config=None, **kwargs)
src/art/langgraph/llm_wrapper.py:164
↓ 1 callers
Function
apply_agent_move
( game: TicTacToeGame, square: str, symbol: Literal["x", "o"] )
examples/tic_tac_toe_self_play/game_utils.py:53
↓ 1 callers
Function
apply_agent_move
(game: TicTacToeGame, move: str)
examples/tic_tac_toe/game_utils.py:47
↓ 1 callers
Function
apply_lora_adapters
( model: Sequence[torch.nn.Module], provider: GPTModelProvider, )
src/art/megatron/lora.py:369
↓ 1 callers
Function
archive_and_presign_step_url
Get a presigned URL for a step in a model. Args: model_name: Name of the model. project: Project name. step: Step number.
src/art/utils/s3.py:266
↓ 1 callers
Function
arun
()
examples/mcp-rl/servers/python/mcp_balldontlie/server.py:307
↓ 1 callers
Function
arun
()
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:475
↓ 1 callers
Function
arun
()
examples/mcp-rl/servers/python/mcp_alphavantage/server.py:348
↓ 1 callers
Method
bind_tools
(self, tools)
src/art/langgraph/llm_wrapper.py:199
↓ 1 callers
Function
build_cost_calculator
Return a callable that computes split-scoped Tinker inference costs.
src/art/costs.py:113
↓ 1 callers
Function
build_datum
( prompt_tokens: list[int], completion_tokens: list[int], logprobs: list[float], advantage: fl
src/art/tinker_native/data.py:241
↓ 1 callers
Method
build_generation_prompt
Build generation prompt with <think> prefill for thinking mode.
src/art/tinker/cookbook_v/renderers/kimi_k25.py:94
↓ 1 callers
Function
build_internal_config
()
dev/yes-no-maybe-metrics.py:158
↓ 1 callers
Function
build_prompts
()
dev/yes-no-maybe-metrics.py:48
↓ 1 callers
Function
build_s3_zipped_step_path
Return the fully-qualified S3 URI for a zipped step in a model directory.
src/art/utils/s3.py:47
↓ 1 callers
Function
build_scenarios
Generate all scenario variations.
src/art/pipeline_trainer/yes_no_maybe_pipeline.py:30
↓ 1 callers
Method
build_supervised_example
Build tokens and per-token weights for supervised fine-tuning. This default implementation concatenates rendered messages in order.
src/art/tinker/cookbook_v/renderers/base.py:1028
↓ 1 callers
Function
bump_version
Bump version based on type (major, minor, patch).
scripts/bump_version.py:27
↓ 1 callers
Function
calculate_attn_bias
( batch_size: int, seq_len: int, device: torch.device, group_ids: torch.Tensor, parent_ids
src/art/unsloth/train.py:248
↓ 1 callers
Function
calculate_mask
( batch_size: int, seq_len: int, device: torch.device, group_ids: torch.Tensor, parent_ids
src/art/unsloth/train.py:275
↓ 1 callers
Function
call_score_title
Async wrapper for scoring.
examples/hn_title_generator/train.py:115
↓ 1 callers
Method
chat_completion_and_token_discrepancies
( self, base_model: str, sample_response: tinker.SampleResponse, model_name: s
src/art/tinker/server.py:402
↓ 1 callers
Function
check_game_finished
(game: TwentyFortyEightGame)
examples/2048/utils.py:167
↓ 1 callers
Function
check_hallucinated_facts
Check if the summary hallucinates facts that are not in the original text
examples/just-the-facts/just_the_facts/checks.py:65
↓ 1 callers
Function
check_has_conservative_bias
Check if the summary hallucinates facts that are not in the original text
examples/just-the-facts/just_the_facts/checks.py:110
↓ 1 callers
Function
check_has_liberal_bias
Check if the summary has a liberal bias
examples/just-the-facts/just_the_facts/checks.py:151
↓ 1 callers
Function
check_if_titles_match_bodies
(bodies, titles)
examples/hn_title_generator/reference_grpo_trainer.py:148
↓ 1 callers
Function
check_includes_all_facts
Check if the summary includes all of the facts from the original text
examples/just-the-facts/just_the_facts/checks.py:20
↓ 1 callers
Function
check_successful
Check if the agent completed the task successfully using GPT-4 evaluation. Args: trajectory: The trajectory containing messages, tool cal
examples/mcp-rl/mcp_rl/checks.py:24
↓ 1 callers
Function
check_title_matches_body
( client: openai.AsyncOpenAI, body: str, title: str )
examples/hn_title_generator/train.py:120
↓ 1 callers
Method
child_exit
(self)
tests/unit/test_mp_actors.py:44
↓ 1 callers
Method
close
(self)
src/art/pipeline_trainer/status.py:80
↓ 1 callers
Function
compute_advantages
( rewards: list[float], normalize_advantages: bool = True )
src/art/tinker_native/data.py:23
↓ 1 callers
Function
compute_train_cost
Compute training cost from token count.
src/art/costs.py:131
↓ 1 callers
Function
condense_board
(game: TwentyFortyEightGame, direction: Direction)
examples/2048/utils.py:111
↓ 1 callers
Function
consume
()
tests/unit/test_mp_actors.py:96
↓ 1 callers
Function
convert_fused_moe_lora
Convert fused MoE LoRA tensors to per-expert format. Non-expert tensors (e.g. self_attn) are passed through unchanged.
src/art/utils/convert_moe_lora.py:69
↓ 1 callers
Function
convert_langgraph_messages
(messages: List[object])
src/art/langgraph/message_utils.py:90
↓ 1 callers
Function
create_chat_completion
( client: openai.AsyncOpenAI, *, model_name: str, messages: art.Messages, max_tokens: int,
dev/yes-no-maybe-metrics.py:28
↓ 1 callers
Function
create_conversation_prefix_with_tools
Create conversation prefix with tools using the renderer implementation.
src/art/tinker_native/data.py:16
↓ 1 callers
Method
create_conversation_prefix_with_tools
Create message(s) with tool specifications to prepend to conversations. Returns one or more messages to prepend to the conversation. This is
src/art/tinker/cookbook_v/renderers/base.py:896
↓ 1 callers
Function
create_messages_from_logs
(log_path: str, trajectory: Trajectory)
src/art/langgraph/llm_wrapper.py:40
↓ 1 callers
Function
create_sample_resources
Create sample resources for testing.
examples/mcp-rl/test_scenario_generation.py:85
↓ 1 callers
Function
create_shared_prefix_attention_state
Build a compiled block mask for ART shared-prefix packing. Initialized on the device of the group_ids tensor. Args: group_ids: `[B,
src/art/megatron/flex_attention.py:69
↓ 1 callers
Function
delete_checkpoint
( checkpoint_dir: Path, rest_client: TinkerRestClient )
src/art/tinker/service.py:283
↓ 1 callers
Function
delete_checkpoints
(output_dir: str, excluding: list[int])
src/art/local/checkpoints.py:7
↓ 1 callers
Method
delete_checkpoints
(self, steps_to_keep: list[int])
src/art/tinker/service.py:172
↓ 1 callers
Function
demo_basic_logging
Demonstrate the basic logging functions.
dev/demo_logging.py:9
↓ 1 callers
Function
demo_color_codes
Demonstrate the color code constants.
dev/demo_logging.py:25
↓ 1 callers
Function
demo_error_scenarios
Demonstrate error reporting scenarios.
dev/demo_logging.py:123
↓ 1 callers
Function
demo_formatting_combinations
Demonstrate various formatting combinations.
dev/demo_logging.py:146
↓ 1 callers
Function
demo_log_levels
Demonstrate different log levels in action.
dev/demo_logging.py:177
↓ 1 callers
Function
demo_progress_tracking
Demonstrate progress tracking with logging.
dev/demo_logging.py:99
↓ 1 callers
Function
demo_real_world_usage
Demonstrate real-world usage scenarios.
dev/demo_logging.py:65
↓ 1 callers
Function
demo_timestamp
Demonstrate the timestamp function.
dev/demo_logging.py:52
↓ 1 callers
Function
deploy
()
scripts/deploy-model.py:50
↓ 1 callers
Function
deploy_step
()
examples/tic_tac_toe_self_play/deploy_step.py:12
↓ 1 callers
Function
deploy_to_together
Deploy a model checkpoint to Together. Args: model: The TrainableModel to deploy. checkpoint_path: Local path to the checkpoint d
src/art/utils/deployment/together.py:189
↓ 1 callers
Function
deploy_wandb
Deploy a model to W&B by uploading a LoRA artifact. Args: model: The TrainableModel to deploy. checkpoint_path: Local path to the
src/art/utils/deployment/wandb.py:36
↓ 1 callers
Function
deserialize_trajectory_groups
Deserialize trajectory groups from a JSONL or YAML string.
src/art/utils/trajectory_migration.py:97
↓ 1 callers
Function
detect_chat_template_parts
Detect instruction and response parts from a tokenizer's chat template. Args: tokenizer: A tokenizer with a chat_template attribute
src/art/utils/model_config.py:25
↓ 1 callers
Function
dict_to_message_or_choice
(d: dict[str, Any])
src/art/utils/trajectory_migration.py:132
↓ 1 callers
Function
dict_to_trajectory
(d: dict[str, Any])
src/art/utils/trajectory_migration.py:119
↓ 1 callers
Function
dict_to_trajectory_group
(d: dict[str, Any])
src/art/utils/trajectory_migration.py:110
↓ 1 callers
Function
encode_tools_to_typescript_style
Convert tools (list of dict) to TypeScript style string. Supports OpenAI format: {"type": "function", "function": {...}} Args:
src/art/tinker/cookbook_v/renderers/kimi_k2_5_tool_declaration_ts.py:461
← previous
next →
501–600 of 1,502, ranked by callers