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
eval_fn
( _model: TrainableModel, _step: int, _config: dict, )
tests/unit/test_track_api_cost.py:656
↓ 1 callers
Function
evaluate
( client: openai.AsyncOpenAI, model: art.TrainableModel, prompts: list[str], *, max_tokens
dev/yes-no-maybe-metrics.py:125
↓ 1 callers
Function
extract_api_cost
( response: Any, *, provider: str, model_name: str, prompt_price_per_million: float | None
src/art/api_costs.py:400
↓ 1 callers
Function
extract_guess
(choice: Any)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:137
↓ 1 callers
Function
extract_logprobs_from_choice
( choice: Choice, tokenizer: Any )
src/art/tinker_native/data.py:181
↓ 1 callers
Method
extract_tool_calls_streaming
(*_args, **_kwargs)
tests/unit/test_vllm_patches_contract.py:40
↓ 1 callers
Method
feed
Feed a single token and yield any resulting deltas. Args: token: A single token ID from the model output. Yields:
src/art/tinker/cookbook_v/renderers/kimi_k2.py:173
↓ 1 callers
Method
filter_by_difficulty
Filter scenarios by difficulty range.
src/art/mcp/types.py:158
↓ 1 callers
Function
filter_on_length
Filters dataset based on tokenized prompt length.
examples/hn_title_generator/train.py:35
↓ 1 callers
Function
filter_on_length
Filters dataset entries based on tokenized prompt length.
examples/hn_title_generator/reference_grpo_trainer.py:57
↓ 1 callers
Function
find_last_choice
( messages_and_choices: MessagesAndChoices, )
src/art/tinker_native/data.py:171
↓ 1 callers
Method
flush
Force decode any remaining tokens. Call this at end of stream. May produce replacement characters for incomplete sequences.
src/art/tinker/cookbook_v/renderers/base.py:267
↓ 1 callers
Method
flush
(self)
src/art/pipeline_trainer/status.py:86
↓ 1 callers
Function
format_message
Format a message into a readable string.
src/art/utils/format_message.py:8
↓ 1 callers
Function
freeze_model
(model_chunks: list[MegatronModule])
src/art/megatron/train.py:52
↓ 1 callers
Function
freeze_tool_schema
Return a clone of *tool* whose parameters schema permits *only* `fixed_args`. Each field is cast to typing.Literal[value] so Pydantic emits a
src/art/guided_completion.py:16
↓ 1 callers
Function
generate_game
(board_length: int = 3)
examples/tic_tac_toe_self_play/game_utils.py:9
↓ 1 callers
Function
generate_game
(board_length: int = 3)
examples/tic_tac_toe/game_utils.py:12
↓ 1 callers
Function
generate_yes_no_maybe_prompts
()
dev/yes-no-maybe-vision/generate_images.py:36
↓ 1 callers
Method
geocode
Geocode an address to coordinates
examples/mcp-rl/servers/python/mcp_googlemaps/server.py:24
↓ 1 callers
Function
get_agent_move
( game: TicTacToeGame, player_state: PlayerState, model: art.Model[ModelConfig], teacher: art.
examples/tic_tac_toe_self_play/rollout.py:35
↓ 1 callers
Function
get_base_model
()
tests/integration/test_vllm_contract.py:23
↓ 1 callers
Function
get_child_traceback
( traceback: TracebackType, )
src/mp_actors/traceback.py:41
↓ 1 callers
Function
get_completion
()
examples/2048/rollout.py:55
↓ 1 callers
Function
get_compute_loss_fn
(trainer: "GRPOTrainer")
src/art/unsloth/train.py:83
↓ 1 callers
Function
get_content_text
(result: types.CallToolResult)
examples/mcp-rl/mcp_rl/utils.py:4
↓ 1 callers
Function
get_current_version
Extract current version from pyproject.toml.
scripts/bump_version.py:17
↓ 1 callers
Function
get_file_row_count
Count the number of non-empty rows in a JSONL file. Args: file_path: Path to JSONL file Returns: Number of non-empty li
src/art/utils/sft.py:42
↓ 1 callers
Function
get_full_finetune_lr_multiplier
(model_name: str)
src/art/tinker/cookbook_v/hyperparam_utils.py:179
↓ 1 callers
Function
get_full_finetune_param_count
(model_name: str)
src/art/tinker/cookbook_v/hyperparam_utils.py:172
↓ 1 callers
Function
get_guided_completion_params
Given a completion from a teacher model, returns chat completion params that can be used to guide a student model's response. Useful for RL-b
src/art/guided_completion.py:33
↓ 1 callers
Function
get_image_processor
(model_name: str)
src/art/tinker/cookbook_v/image_processing_utils.py:26
↓ 1 callers
Function
get_instruction_response_parts
Get instruction and response parts for a model. Checks for explicit model configuration first, then falls back to auto-detection from the tok
src/art/utils/model_config.py:72
↓ 1 callers
Function
get_lora_lr_over_full_finetune_lr
Return the factor that you should scale the full fine-tuning learning rate by to get the equivalent LoRA learning rate. Previously we had a m
src/art/tinker/cookbook_v/hyperparam_utils.py:68
↓ 1 callers
Function
get_model_output_dir
(model: art.TrainableModel)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:150
↓ 1 callers
Method
get_number_of_image_patches
( self, height: int, width: int, images_kwargs: Optional[dict] = None )
src/art/tinker/cookbook_v/renderers/base.py:1215
↓ 1 callers
Function
get_provider
(model: str)
src/art/megatron/provider.py:31
↓ 1 callers
Function
get_renderer
Factory function to create renderers by name. Args: name: Renderer name. Supported values: - "role_colon": Simple role:conten
src/art/tinker/cookbook_v/renderers/__init__.py:95
↓ 1 callers
Method
get_resize_config
(self, image_data: dict[str, Any])
src/art/tinker/cookbook_v/renderers/base.py:1220
↓ 1 callers
Function
get_safe_gpu_memory_utilization
()
tests/integration/test_vllm_contract.py:27
↓ 1 callers
Method
get_samplable_model
( self, model: str )
src/art/tinker/server.py:321
↓ 1 callers
Method
get_stop_sequences
Return the stop sequences used when sampling from this renderer.
src/art/tinker/cookbook_v/renderers/base.py:786
↓ 1 callers
Method
get_summary
Get a summary of the scenario collection.
src/art/mcp/types.py:193
↓ 1 callers
Function
get_trajectories_dir
(model_output_dir: str)
src/art/utils/output_dirs.py:36
↓ 1 callers
Function
get_trajectories_split_dir
(model_output_dir: str, split: str)
src/art/utils/output_dirs.py:40
↓ 1 callers
Function
get_uvicorn_logging_config
Returns a Uvicorn logging config that writes to the given path.
src/art/vllm/server.py:163
↓ 1 callers
Function
get_vllm_test_config
()
tests/test_backend_train_api.py:23
↓ 1 callers
Function
get_vllm_test_config
()
tests/integration/test_vllm_contract.py:45
↓ 1 callers
Function
group_aggregate
Vectorised group-wise reduction over sequence dimension. Parameters ---------- values: Tensor of shape ``[B, S, *F]`` where ``*F`` can be
src/art/utils/group_aggregate.py:8
↓ 1 callers
Function
group_forward
(g: Awaitable[TrajectoryGroup])
src/art/gather.py:40
↓ 1 callers
Function
has_all_recorded
(model)
src/art/utils/old_benchmarking/generate_line_graphs.py:36
↓ 1 callers
Function
history_to_datum
( history: History, advantage: float, renderer: Any, tokenizer: Any, )
src/art/tinker_native/data.py:207
↓ 1 callers
Function
history_to_dict
(history: History)
src/art/utils/trajectory_migration.py:50
↓ 1 callers
Method
increment
(self)
tests/unit/test_mp_actors.py:16
↓ 1 callers
Method
init_server
Initialize server configuration. Returns: StdioServerParameters for the specific server implementation
examples/mcp-rl/mcp_rl/mcp_server.py:75
↓ 1 callers
Method
invoke
(self, input, config=None, **kwargs)
src/art/langgraph/llm_wrapper.py:142
↓ 1 callers
Function
is_builder_managed_metric
(key: str)
src/art/metrics.py:32
↓ 1 callers
Function
is_port_available
(port: int)
src/art/cli.py:302
↓ 1 callers
Function
is_valid_guess
(guess: str)
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:78
↓ 1 callers
Function
iter_trajectory_histories
(trajectory: Trajectory)
src/art/tinker_native/data.py:163
↓ 1 callers
Function
langchain_msg_to_openai
(msg: BaseMessage)
src/art/langgraph/message_utils.py:54
↓ 1 callers
Function
load_aggregated_trajectories
Load trajectories and aggregate metrics at the step level. This function builds on top of load_trajectories to provide step-level aggreg
src/art/utils/benchmarking/aggregate_trajectories.py:13
↓ 1 callers
Method
load_logs
Load all logs from the pickle file.
src/art/langgraph/logging.py:19
↓ 1 callers
Method
load_weight
(self, weight: torch.Tensor, *, into: torch.nn.Parameter)
src/art/megatron/lora.py:102
↓ 1 callers
Function
log
(logs: dict[str, float], start_time: float | None = None)
src/art/unsloth/train.py:225
↓ 1 callers
Method
log
(self, name, entry)
src/art/langgraph/logging.py:10
↓ 1 callers
Function
log_comparison_model
(comparison_model: art.Model)
examples/just-the-facts/just_the_facts/generate_benchmarks.py:59
↓ 1 callers
Function
log_comparison_model
(comparison_model: art.Model)
examples/2048/generate_benchmarks.py:42
↓ 1 callers
Function
log_comparison_model
( comparison_model: art.Model, val_scenarios: List[McpScenario], control_groups: list[art.Trajecto
examples/mcp-rl/mcp_rl/benchmarks/generate_benchmarks.py:102
↓ 1 callers
Function
main
()
dev/yes-no-maybe-megatron.py:38
↓ 1 callers
Function
main
Run all logging demonstrations.
dev/demo_logging.py:206
↓ 1 callers
Function
main
()
dev/yes-no-maybe-metrics.py:169
↓ 1 callers
Function
main
()
dev/yes-no-maybe.py:40
↓ 1 callers
Function
main
()
dev/yes-no-maybe-kl-advantage.py:51
↓ 1 callers
Function
main
()
dev/sft/distillation.py:23
↓ 1 callers
Function
main
()
dev/sft/sft-warmup.py:43
↓ 1 callers
Function
main
()
dev/sft/sft-from-file.py:11
↓ 1 callers
Function
main
()
dev/new_models/gemma3.py:40
↓ 1 callers
Function
main
()
dev/new_models/qwen3_try.py:41
↓ 1 callers
Function
main
()
dev/new_models/benchmark_inference.py:46
↓ 1 callers
Function
main
(model_name: str, steps: int)
dev/math-vista/math-vista.py:26
↓ 1 callers
Function
main
(argv: list[str] | None = None)
src/art/vllm/dedicated_server.py:35
↓ 1 callers
Function
main
()
src/art/pipeline_trainer/yes_no_maybe_pipeline.py:102
↓ 1 callers
Function
main
()
src/art/pipeline_trainer/binary_prefix_tool_pipeline.py:176
↓ 1 callers
Function
main
()
scripts/bump_version.py:57
↓ 1 callers
Function
main
()
scripts/migrate-s3-checkpoints.py:25
↓ 1 callers
Function
main
()
scripts/ci/compute_uv_fingerprint.py:54
↓ 1 callers
Function
main
()
tests/integration.py:286
↓ 1 callers
Function
main
()
tests/test_backend_train_api.py:88
↓ 1 callers
Function
main
()
tests/integration/test_provenance.py:49
↓ 1 callers
Function
main
()
examples/openenv_echo.py:58
↓ 1 callers
Function
main
()
examples/benchmarking_comparison_models.py:143
↓ 1 callers
Function
main
()
examples/tic_tac_toe_self_play/train.py:27
↓ 1 callers
Function
main
()
examples/tic_tac_toe_self_play/train_o4_mini.py:24
↓ 1 callers
Function
main
()
examples/temporal_clue/temporal-clue.py:56
↓ 1 callers
Function
main
()
examples/just-the-facts/main.py:1
↓ 1 callers
Function
main
()
examples/hn_title_generator/train.py:235
↓ 1 callers
Function
main
()
examples/2048/rollout.py:128
↓ 1 callers
Function
main
()
examples/tic_tac_toe/tic-tac-toe.py:25
↓ 1 callers
Function
main
Run all tests.
examples/mcp-rl/test_scenario_generation.py:318
← previous
next →
601–700 of 1,502, ranked by callers