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
Function
main
(api_key: Optional[str], port: int, transport: str)
examples/mcp-rl/servers/python/mcp_balldontlie/server.py:51
↓ 1 callers
Function
main
(api_key: Optional[str], port: int, transport: str)
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:180
↓ 1 callers
Function
main
(api_key: Optional[str], port: int, transport: str)
examples/mcp-rl/servers/python/mcp_alphavantage/server.py:62
↓ 1 callers
Function
main
Main training entry point.
examples/mcp-rl/mcp_rl/train.py:172
↓ 1 callers
Function
main
Main function with CLI argument parsing.
examples/mcp-rl/mcp_rl/scenario_generator.py:195
↓ 1 callers
Function
main
Run test scenario.
examples/mcp-rl/mcp_rl/rollout.py:272
↓ 1 callers
Function
make_group
(prompt: str)
tests/integration/test_tinker_native_backend.py:75
↓ 1 callers
Function
make_group_a
(prompt: str)
tests/integration/test_tinker_native_backend.py:148
↓ 1 callers
Function
make_group_b
(prompt: str)
tests/integration/test_tinker_native_backend.py:193
↓ 1 callers
Function
make_group_rollout_fn
Create a RolloutFn from a SingleRolloutFn by running it N times in parallel.
src/art/pipeline_trainer/trainer.py:35
↓ 1 callers
Function
make_patch_source
This is a patch to the art.TrainableModel class to change project name logging these runs as test runs.
tests/integration.py:46
↓ 1 callers
Function
make_variable_override_source
Create source code to override variables in the notebook.
tests/integration.py:68
↓ 1 callers
Function
migrate_s3_checkpoints_to_new_structure
Migrate existing checkpoints in S3 from the old structure to the new structure. Old: s3://bucket/prefix/project/models/model_name/0001/
src/art/utils/s3_checkpoint_utils.py:107
↓ 1 callers
Function
not_none
(x: T | None)
src/art/tinker/cookbook_v/utils/misc_utils.py:94
↓ 1 callers
Method
note_group_enqueued
(self, _group: TrajectoryGroup)
src/art/pipeline_trainer/status.py:113
↓ 1 callers
Method
note_rollout_finished
(self, *, errored: bool)
src/art/pipeline_trainer/status.py:106
↓ 1 callers
Method
note_rollout_started
(self)
src/art/pipeline_trainer/status.py:102
↓ 1 callers
Method
note_stale
(self, count: int)
src/art/pipeline_trainer/status.py:122
↓ 1 callers
Method
note_training_batch
( self, batch: list[TrajectoryGroup], *, step: int, step_seconds: float )
src/art/pipeline_trainer/status.py:140
↓ 1 callers
Method
note_training_start
(self, group_count: int)
src/art/pipeline_trainer/status.py:132
↓ 1 callers
Method
note_val_finished
(self, step: int, reward: float | None)
src/art/pipeline_trainer/status.py:164
↓ 1 callers
Method
note_val_started
(self, step: int)
src/art/pipeline_trainer/status.py:160
↓ 1 callers
Method
note_zero_variance_discarded
(self, count: int)
src/art/pipeline_trainer/status.py:127
↓ 1 callers
Function
packed_tensors_from_tokenized_results
( tokenized_results: list[TokenizedResult], seq_len: int, pad_token_id: int = -100, truncate_l
src/art/preprocessing/pack.py:34
↓ 1 callers
Function
packed_tensors_to_dir
(tensors: PackedTensors, dir: str)
src/art/preprocessing/pack.py:225
↓ 1 callers
Function
parse_args
()
dev/math-vista/math-vista.py:116
↓ 1 callers
Function
parse_args
()
scripts/deploy-model.py:20
↓ 1 callers
Function
parse_completion_to_openai_message
( completion_tokens: list[int], renderer: Any, )
src/art/tinker_native/data.py:112
↓ 1 callers
Function
parse_content_blocks
Parse a string with <think>...</think> and <tool_call>...</tool_call> tags. Handles interleaved thinking, tool call, and text blocks. Conten
src/art/tinker/cookbook_v/renderers/base.py:513
↓ 1 callers
Function
parse_indexes
Parse index specification string into list of valid indexes. Supports: - Single indexes: "0", "2" - Comma-separated: "0,2,3" - R
tests/integration.py:231
↓ 1 callers
Method
parse_response
(self, response: list[int])
src/art/tinker/cookbook_v/renderers/deepseek_v3.py:249
↓ 1 callers
Function
parse_sse_to_chat_completion
Parse SSE (Server-Sent Events) content and build a ChatCompletion. This handles the case where streaming responses have already been consumed
src/art/auto_trajectory.py:16
↓ 1 callers
Function
patch_httpx
()
src/art/auto_trajectory.py:143
↓ 1 callers
Function
patch_preprocess_mask_arguments
()
src/art/transformers/patches.py:36
↓ 1 callers
Method
place_autocomplete
Get place autocomplete predictions
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:147
↓ 1 callers
Method
place_details
Get details for a specific place
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:124
↓ 1 callers
Method
places_nearby_search
Search for nearby places
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:72
↓ 1 callers
Method
places_text_search
Search for places by text query
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:101
↓ 1 callers
Function
plot_packed_tensors
( packed_tensors: PackedTensors, output_dir: str | None = None )
src/art/preprocessing/pack.py:262
↓ 1 callers
Function
precalculate_new_logprobs
Precalculate logprobs for all offsets and return as a tensor.
src/art/unsloth/service.py:58
↓ 1 callers
Method
print_difficulty_distribution
Print a visual representation of the difficulty distribution.
src/art/mcp/types.py:184
↓ 1 callers
Function
print_history_summary
(model: art.TrainableModel)
dev/yes-no-maybe-metrics.py:151
↓ 1 callers
Function
print_history_summary
(model: art.TrainableModel, tail: int = 5)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:154
↓ 1 callers
Method
prompt_tokens
( self, base_model: str, messages: list[ChatCompletionMessageParam], tools: li
src/art/tinker/server.py:386
↓ 1 callers
Function
push_model_to_s3
Push a model to S3. Args: model_name: The name of the model to push. project: The project name. s3_bucket: The S3 bucket
src/art/utils/s3.py:223
↓ 1 callers
Method
raise_error
(self, message: str)
tests/unit/test_mp_actors.py:38
↓ 1 callers
Function
record_first_move_metrics
(trajectory: art.Trajectory, square: str)
examples/tic_tac_toe_self_play/rollout.py:95
↓ 1 callers
Method
register
Registers a model with the local Backend for logging and/or training. Args: model: An art.Model instance.
src/art/local/backend.py:183
↓ 1 callers
Method
register_cost_extractor
(self, provider: str, extractor: CostExtractor)
src/art/metrics.py:262
↓ 1 callers
Method
register_definitions
Register schema definitions from $defs section
src/art/tinker/cookbook_v/renderers/kimi_k2_5_tool_declaration_ts.py:26
↓ 1 callers
Method
register_lora_for_step
Register a copied checkpoint path for no-train step advances.
src/art/tinker/service.py:147
↓ 1 callers
Function
reload_to_gpu
Reload model params and optimizer state to GPU.
src/art/megatron/offload.py:88
↓ 1 callers
Function
remove_thinking
Filter out ThinkingPart elements from a content part list.
src/art/tinker/cookbook_v/renderers/base.py:424
↓ 1 callers
Function
render_board
(game: TicTacToeGame)
examples/tic_tac_toe_self_play/game_utils.py:29
↓ 1 callers
Function
render_board
(game: TicTacToeGame)
examples/tic_tac_toe/game_utils.py:23
↓ 1 callers
Method
render_message
(self, message: Message, ctx: RenderContext)
src/art/tinker/cookbook_v/renderers/qwen3.py:130
↓ 1 callers
Method
request_stop
Request a clean shutdown of the pipeline stages.
src/art/pipeline_trainer/trainer.py:255
↓ 1 callers
Method
resolve_ref
Resolve a reference to its schema definition
src/art/tinker/cookbook_v/renderers/kimi_k2_5_tool_declaration_ts.py:33
↓ 1 callers
Function
response_total_tokens
( response: openai.types.chat.chat_completion.ChatCompletion, )
dev/yes-no-maybe-metrics.py:75
↓ 1 callers
Method
reverse_geocode
Reverse geocode coordinates to address
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:48
↓ 1 callers
Function
reward
(config: MyConfig, scenario: MyTask, response: str)
examples/benchmarking_comparison_models.py:49
↓ 1 callers
Function
rollout
( client: openai.AsyncOpenAI, model_name: str, prompt: str )
dev/yes-no-maybe-megatron.py:13
↓ 1 callers
Function
rollout
( client: openai.AsyncOpenAI, model: art.TrainableModel, prompt: str )
dev/yes-no-maybe-kl-advantage.py:21
↓ 1 callers
Function
rollout
(model: art.TrainableModel, prompt: str)
dev/new_models/gemma3.py:12
↓ 1 callers
Function
rollout
(model: art.TrainableModel, prompt: str)
dev/new_models/qwen3_try.py:12
↓ 1 callers
Function
rollout
(model: art.TrainableModel, env_client: EchoEnv)
examples/openenv_echo.py:25
↓ 1 callers
Method
rollout_fn
( _model: TrainableModel, _scenario: dict, _config: dict, )
tests/unit/test_track_api_cost.py:597
↓ 1 callers
Function
ruler
Core RULER implementation that scores a list of message trajectories. This is the low-level API that works with raw message lists. For integratio
src/art/rewards/ruler.py:87
↓ 1 callers
Function
run_benchmarks
()
examples/just-the-facts/just_the_facts/generate_benchmarks.py:78
↓ 1 callers
Function
run_benchmarks
()
examples/2048/generate_benchmarks.py:63
↓ 1 callers
Function
run_benchmarks
(server: str = "mcp_alphavantage")
examples/mcp-rl/mcp_rl/benchmarks/generate_benchmarks.py:124
↓ 1 callers
Method
sampling_client
(self)
src/art/tinker/server.py:294
↓ 1 callers
Function
save_prompt_images
Render each prompt as centered text on a white background and save as PNG. Args: prompts: Sequence of prompt strings. output
dev/yes-no-maybe-vision/generate_images.py:132
↓ 1 callers
Function
say_hi
A method that says hi to an assistant and returns the response.
tests/unit/test_yield_trajectory.py:132
↓ 1 callers
Function
scenario_iter
()
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:315
↓ 1 callers
Function
score_group
(group_idx: int, trajectory_idx: int)
examples/mcp-rl/mcp_rl/benchmarks/generate_benchmarks.py:64
↓ 1 callers
Function
score_title_async
(row_data: dict)
examples/hn_title_generator/reference_grpo_trainer.py:107
↓ 1 callers
Method
set_cost_calculator
(self, calculator: CostCalculator | None)
src/art/model.py:931
↓ 1 callers
Function
set_vllm_log_file
Sets the vLLM log file to the given path.
src/art/vllm/server.py:184
↓ 1 callers
Method
sharded_lora_state_dict
(self)
src/art/megatron/lora.py:119
↓ 1 callers
Function
shared_prefix_len
(guess: str, secret: str)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:82
↓ 1 callers
Function
simple_rollout
A simple rollout function for testing.
tests/test_backend_train_api.py:65
↓ 1 callers
Function
simple_rollout
( client: openai.AsyncOpenAI, model_name: str, prompt: str )
tests/integration/test_vllm_contract.py:63
↓ 1 callers
Function
simple_rollout
A simple rollout function that rewards 'yes' responses.
tests/integration/test_push_and_fork.py:31
↓ 1 callers
Function
simple_rollout
A simple rollout function for testing.
tests/integration/test_multi_checkpoint_training.py:38
↓ 1 callers
Method
slow
(self, delay: float = 5.0)
tests/unit/test_mp_actors.py:34
↓ 1 callers
Method
start_openai_server
( self, config: dev.OpenAIServerConfig | None )
src/art/local/service.py:19
↓ 1 callers
Method
stop
Stop the MCP server connection.
examples/mcp-rl/mcp_rl/mcp_server.py:26
↓ 1 callers
Function
stream
()
src/art/cli.py:359
↓ 1 callers
Function
suppress_litellm_serialization_warnings
Suppress litellm's internal Pydantic serialization warnings. These warnings occur due to a known litellm issue (#11759) where response t
src/art/utils/suppress_litellm_serialization_warnings.py:4
↓ 1 callers
Function
test_basic_scenario_generation
Test basic scenario generation with tools only.
examples/mcp-rl/test_scenario_generation.py:109
↓ 1 callers
Function
test_client
()
src/art/vllm/server.py:104
↓ 1 callers
Function
test_dict_input_compatibility
Test backward compatibility with dictionary inputs.
examples/mcp-rl/test_scenario_generation.py:182
↓ 1 callers
Function
test_error_handling
Test error handling scenarios.
examples/mcp-rl/test_scenario_generation.py:239
↓ 1 callers
Function
test_rollout
()
examples/mcp-rl/mcp_rl/rollout.py:254
↓ 1 callers
Function
test_scenario_generation_with_resources
Test scenario generation with both tools and resources.
examples/mcp-rl/test_scenario_generation.py:150
↓ 1 callers
Function
test_scraper
Test the scrape_article function with example URLs
examples/just-the-facts/test_scraper.py:9
↓ 1 callers
Function
test_step_skipping
Test that step counting works correctly when training is skipped.
src/art/test/test_step_skipping.py:39
↓ 1 callers
Function
test_tool_resource_classes
Test Tool and Resource class functionality.
examples/mcp-rl/test_scenario_generation.py:275
↓ 1 callers
Method
ticker
(self, n: int = 1_000)
tests/unit/test_mp_actors.py:29
← previous
next →
701–800 of 1,502, ranked by callers