SYMBOL INDEX (1070 symbols across 100 files) FILE: _build/gpt_oss_build_backend/backend.py function _use_metal_backend (line 39) | def _use_metal_backend() -> bool: function _setuptools_backend (line 43) | def _setuptools_backend(): function _scikit_build_backend (line 49) | def _scikit_build_backend(): function _backend (line 53) | def _backend(): function build_wheel (line 59) | def build_wheel( function build_sdist (line 67) | def build_sdist( function prepare_metadata_for_build_wheel (line 73) | def prepare_metadata_for_build_wheel( function build_editable (line 89) | def build_editable( function get_requires_for_build_wheel (line 100) | def get_requires_for_build_wheel( function get_requires_for_build_sdist (line 115) | def get_requires_for_build_sdist( function get_requires_for_build_editable (line 126) | def get_requires_for_build_editable( FILE: compatibility-test/analysis.ts function analyze (line 1) | function analyze(caseResults: any[], tries: number) { function printAnalysis (line 101) | function printAnalysis( FILE: compatibility-test/index.ts function formatTimestamp (line 10) | function formatTimestamp(d: Date): string { function main (line 21) | async function main() { FILE: compatibility-test/providers.ts constant PROVIDERS (line 1) | const PROVIDERS = { FILE: compatibility-test/runCase.ts type Case (line 20) | type Case = { type RunCaseSummary (line 28) | type RunCaseSummary = { function runCase (line 39) | async function runCase( function testToolCall (line 143) | function testToolCall(apiType, caseData, result, strict) { function testEvents (line 193) | function testEvents(apiType, events) { function testOutputData (line 241) | function testOutputData(apiType, rawResponses, streaming) { function deepEqual (line 308) | function deepEqual(a: any, b: any): boolean { FILE: compatibility-test/tools.ts function convertToTool (line 3) | function convertToTool(toolData: any) { constant TOOLS (line 15) | const TOOLS = [ constant TOOLS_MAP (line 153) | const TOOLS_MAP = TOOLS.reduce((acc, tool) => { FILE: examples/agents-sdk-js/index.ts function prompt (line 17) | async function prompt(question: string) { FILE: examples/agents-sdk-python/example.py function prompt_user (line 18) | async def prompt_user(question: str) -> str: function main (line 24) | async def main(): FILE: examples/gradio/gradio_chat.py function chat_with_model (line 18) | def chat_with_model(message, history, model_choice, instructions, effort... function toggle_function_group (line 231) | def toggle_function_group(use_funcs): FILE: examples/streamlit/streamlit_chat.py function trigger_fake_tool (line 91) | def trigger_fake_tool(container): function run (line 105) | def run(container): FILE: gpt-oss-mcp-server/browser_server.py class AppContext (line 12) | class AppContext: method create_or_get_browser (line 15) | def create_or_get_browser(self, session_id: str) -> SimpleBrowserTool: method remove_browser (line 27) | def remove_browser(self, session_id: str) -> None: function app_lifespan (line 32) | async def app_lifespan(_server: FastMCP) -> AsyncIterator[AppContext]: function search (line 58) | async def search(ctx: Context, function open_link (line 84) | async def open_link(ctx: Context, function find_pattern (line 112) | async def find_pattern(ctx: Context, pattern: str, cursor: int = -1) -> ... FILE: gpt-oss-mcp-server/build-system-prompt.py function list_server_and_tools (line 24) | async def list_server_and_tools(server_url: str): function trim_schema (line 32) | def trim_schema(schema: dict) -> dict: function post_process_tools_description (line 55) | def post_process_tools_description( FILE: gpt-oss-mcp-server/python_server.py function python (line 26) | async def python(code: str) -> str: FILE: gpt_oss/chat.py function get_user_input (line 49) | def get_user_input(): function main (line 61) | def main(args): FILE: gpt_oss/evals/__main__.py function main (line 17) | def main(): FILE: gpt_oss/evals/abcd_grader.py function extract_abcd (line 81) | def extract_abcd(text: str) -> str | None: function main (line 104) | def main(): FILE: gpt_oss/evals/aime_eval.py function format_aime_question (line 17) | def format_aime_question(row): function extract_boxed_text (line 20) | def extract_boxed_text(text): function normalize_number (line 34) | def normalize_number(s): class AIME25Eval (line 40) | class AIME25Eval(Eval): method __init__ (line 41) | def __init__( method __call__ (line 66) | def __call__(self, sampler: SamplerBase) -> EvalResult: FILE: gpt_oss/evals/basic_eval.py class BasicEval (line 8) | class BasicEval(Eval): method __init__ (line 9) | def __init__(self,): method __call__ (line 15) | def __call__(self, sampler: SamplerBase) -> EvalResult: FILE: gpt_oss/evals/chat_completions_sampler.py class ChatCompletionsSampler (line 17) | class ChatCompletionsSampler(SamplerBase): method __init__ (line 20) | def __init__( method _pack_message (line 39) | def _pack_message(self, role: str, content: Any) -> dict[str, Any]: method __call__ (line 42) | def __call__(self, message_list: MessageList) -> SamplerResponse: FILE: gpt_oss/evals/gpqa_eval.py function format_multichoice_question (line 28) | def format_multichoice_question(row): class GPQAEval (line 32) | class GPQAEval(Eval): method __init__ (line 33) | def __init__( method __call__ (line 60) | def __call__(self, sampler: SamplerBase) -> EvalResult: FILE: gpt_oss/evals/healthbench_eval.py function parse_json_to_dict (line 99) | def parse_json_to_dict(json_string: str) -> dict: class RubricItem (line 110) | class RubricItem: method __init__ (line 111) | def __init__(self, criterion: str, points: float, tags: list[str]): method __str__ (line 116) | def __str__(self): method to_dict (line 119) | def to_dict(self): method from_dict (line 127) | def from_dict(cls, d: dict): function calculate_score (line 135) | def calculate_score( function get_usage_dict (line 156) | def get_usage_dict(response_usage) -> dict[str, int | None]: function _compute_clipped_stats (line 194) | def _compute_clipped_stats( function _aggregate_get_clipped_mean (line 213) | def _aggregate_get_clipped_mean( class HealthBenchEval (line 246) | class HealthBenchEval(Eval): method __init__ (line 247) | def __init__( method grade_sample (line 338) | def grade_sample( method __call__ (line 428) | def __call__(self, sampler: SamplerBase) -> EvalResult: function main (line 500) | def main(): function physician_completions_main (line 535) | def physician_completions_main( FILE: gpt_oss/evals/report.py function _compute_stat (line 27) | def _compute_stat(values: list, stat: str): function aggregate_results (line 46) | def aggregate_results( function map_with_progress (line 82) | def map_with_progress( function message_to_html (line 118) | def message_to_html(message: Message) -> str: function make_report (line 199) | def make_report(eval_result: EvalResult) -> str: FILE: gpt_oss/evals/responses_sampler.py class ResponsesSampler (line 10) | class ResponsesSampler(SamplerBase): method __init__ (line 15) | def __init__( method _pack_message (line 34) | def _pack_message(self, role: str, content: Any) -> dict[str, Any]: method __call__ (line 37) | def __call__(self, message_list: MessageList) -> SamplerResponse: FILE: gpt_oss/evals/types.py class SamplerResponse (line 10) | class SamplerResponse: class SamplerBase (line 18) | class SamplerBase: method __call__ (line 24) | def __call__( class EvalResult (line 32) | class EvalResult: class SingleEvalResult (line 45) | class SingleEvalResult: class Eval (line 59) | class Eval: method __call__ (line 64) | def __call__(self, sampler: SamplerBase) -> EvalResult: FILE: gpt_oss/generate.py function main (line 11) | def main(args): FILE: gpt_oss/metal/benchmark/end-to-end-threadgroup.cc function attn_qkv_tgsize (line 19) | static void attn_qkv_tgsize(benchmark::State& state, const char* env_var... function AttnQKVThreadgroupSizeArguments (line 85) | static void AttnQKVThreadgroupSizeArguments(benchmark::internal::Benchma... function attn_out_tgsize (line 102) | static void attn_out_tgsize(benchmark::State& state, const char* env_var... function AttnOutThreadgroupSizeArguments (line 168) | static void AttnOutThreadgroupSizeArguments(benchmark::internal::Benchma... function mlp_gate_tgsize (line 185) | static void mlp_gate_tgsize(benchmark::State& state, const char* env_var... function MlpGateThreadgroupSizeArguments (line 251) | static void MlpGateThreadgroupSizeArguments(benchmark::internal::Benchma... function mlp_swiglu_tgsize (line 268) | static void mlp_swiglu_tgsize(benchmark::State& state, const char* env_v... function MlpSwigluThreadgroupSizeArguments (line 334) | static void MlpSwigluThreadgroupSizeArguments(benchmark::internal::Bench... function mlp_out_tgsize (line 351) | static void mlp_out_tgsize(benchmark::State& state, const char* env_var_... function MlpOutThreadgroupSizeArguments (line 417) | static void MlpOutThreadgroupSizeArguments(benchmark::internal::Benchmar... function mlp_acc_tgsize (line 434) | static void mlp_acc_tgsize(benchmark::State& state, const char* env_var_... function MlpAccThreadgroupSizeArguments (line 500) | static void MlpAccThreadgroupSizeArguments(benchmark::internal::Benchmar... function unembedding_tgsize (line 512) | static void unembedding_tgsize(benchmark::State& state, const char* env_... function UnembeddingThreadgroupSizeArguments (line 578) | static void UnembeddingThreadgroupSizeArguments(benchmark::internal::Ben... FILE: gpt_oss/metal/benchmark/end-to-end.cc function end2end_decode (line 18) | static void end2end_decode(benchmark::State& state, const char* env_var_... function end2end_prefill (line 82) | static void end2end_prefill(benchmark::State& state, FILE: gpt_oss/metal/benchmark/f32-bf16w-rmsnorm.cc function f32_bf16w_rnsnorm (line 16) | static void f32_bf16w_rnsnorm(benchmark::State& state) { FILE: gpt_oss/metal/benchmark/f32-random.cc function f32_fill_random (line 10) | static void f32_fill_random(benchmark::State& state) { FILE: gpt_oss/metal/benchmark/mf4-f32-convert.cc function mf4_f32_convert (line 13) | static void mf4_f32_convert(benchmark::State& state) { FILE: gpt_oss/metal/benchmark/u32-random.cc function u32_fill_random (line 10) | static void u32_fill_random(benchmark::State& state) { FILE: gpt_oss/metal/examples/chat.py function main (line 38) | def main(args): FILE: gpt_oss/metal/examples/generate.py function main (line 16) | def main(args): FILE: gpt_oss/metal/include/gpt-oss/functions.h type gptoss_status (line 22) | enum gptoss_status type gptoss_status (line 35) | enum gptoss_status type gptoss_status (line 48) | enum gptoss_status type gptoss_status (line 59) | enum gptoss_status type gptoss_status (line 69) | enum gptoss_status type gptoss_status (line 82) | enum gptoss_status type gptoss_special_token (line 84) | enum gptoss_special_token type gptoss_status (line 96) | enum gptoss_status type gptoss_status (line 109) | enum gptoss_status type gptoss_status (line 122) | enum gptoss_status type gptoss_status (line 139) | enum gptoss_status type gptoss_status (line 152) | enum gptoss_status type gptoss_status (line 162) | enum gptoss_status type gptoss_status (line 180) | enum gptoss_status type gptoss_status (line 195) | enum gptoss_status type gptoss_status (line 208) | enum gptoss_status type gptoss_status (line 225) | enum gptoss_status type gptoss_status (line 241) | enum gptoss_status type gptoss_status (line 256) | enum gptoss_status type gptoss_status (line 268) | enum gptoss_status type gptoss_status (line 278) | enum gptoss_status type gptoss_status (line 291) | enum gptoss_status type gptoss_status (line 306) | enum gptoss_status type gptoss_status (line 316) | enum gptoss_status type gptoss_status (line 328) | enum gptoss_status type gptoss_status (line 339) | enum gptoss_status type gptoss_status (line 351) | enum gptoss_status type gptoss_status (line 363) | enum gptoss_status type gptoss_status (line 375) | enum gptoss_status type gptoss_status (line 386) | enum gptoss_status type gptoss_status (line 396) | enum gptoss_status FILE: gpt_oss/metal/include/gpt-oss/types.h type gptoss_status (line 6) | enum gptoss_status { type gptoss_special_token (line 18) | enum gptoss_special_token { type gptoss_model (line 39) | struct gptoss_model type gptoss_tokenizer (line 41) | struct gptoss_tokenizer type gptoss_context (line 51) | struct gptoss_context type gptoss_sampler (line 62) | struct gptoss_sampler FILE: gpt_oss/metal/python/context.c function PyGPTOSSContext_init (line 8) | static int PyGPTOSSContext_init(PyGPTOSSContext* self, PyObject* args, P... function PyGPTOSSContext_dealloc (line 47) | static void PyGPTOSSContext_dealloc(PyGPTOSSContext* self) { function PyObject (line 53) | static PyObject* PyGPTOSSContext_copy(PyGPTOSSContext *self) { function PyObject (line 64) | static PyObject* PyGPTOSSContext_append(PyGPTOSSContext* self, PyObject*... function PyObject (line 116) | static PyObject* PyGPTOSSContext_process(PyGPTOSSContext* self) { function PyObject (line 126) | static PyObject* PyGPTOSSContext_sample(PyGPTOSSContext* self, PyObject*... function PyObject (line 177) | static PyObject* PyGPTOSSContext_reset(PyGPTOSSContext* self) { function PyObject (line 196) | static PyObject* PyGPTOSSContext_get_num_tokens(PyGPTOSSContext* self, v... function PyObject (line 207) | static PyObject* PyGPTOSSContext_get_max_tokens(PyGPTOSSContext* self, v... function PyObject (line 218) | static PyObject* PyGPTOSSContext_get_tokens(PyGPTOSSContext* self, void*... FILE: gpt_oss/metal/python/model.c function PyGPTOSSModel_init (line 8) | static int PyGPTOSSModel_init(PyGPTOSSModel* self, PyObject* args, PyObj... function PyGPTOSSModel_dealloc (line 23) | static void PyGPTOSSModel_dealloc(PyGPTOSSModel* self) { function PyObject (line 29) | static PyObject* PyGPTOSSModel_copy(PyGPTOSSModel* self) { function PyObject (line 45) | static PyObject *PyGPTOSSModel_get_max_context_length(PyGPTOSSModel* sel... function PyObject (line 56) | static PyObject *PyGPTOSSModel_get_tokenizer(PyGPTOSSModel* self, void* ... FILE: gpt_oss/metal/python/module.c function PyMODINIT_FUNC (line 18) | PyMODINIT_FUNC PyInit__metal(void) { FILE: gpt_oss/metal/python/module.h type PyGPTOSSModel (line 5) | typedef struct { type PyGPTOSSTokenizer (line 10) | typedef struct { type PyGPTOSSContext (line 15) | typedef struct { FILE: gpt_oss/metal/python/tokenizer.c function PyObject (line 7) | static PyObject* PyGPTOSSTokenizer_new(PyTypeObject* subtype, PyObject* ... function PyGPTOSSTokenizer_dealloc (line 30) | static void PyGPTOSSTokenizer_dealloc(PyGPTOSSTokenizer* self) { function PyObject (line 36) | static PyObject* PyGPTOSSTokenizer_copy(PyGPTOSSTokenizer* self) { function PyObject (line 47) | static PyObject* PyGPTOSSTokenizer_encode_special_token(PyGPTOSSTokenize... function PyObject (line 95) | static PyObject* PyGPTOSSTokenizer_decode(PyGPTOSSTokenizer* self, PyObj... function PyObject (line 121) | static PyObject* PyGPTOSSTokenizer_get_num_text_tokens(PyGPTOSSTokenizer... function PyObject (line 132) | static PyObject* PyGPTOSSTokenizer_get_num_special_tokens(PyGPTOSSTokeni... function PyObject (line 143) | static PyObject* PyGPTOSSTokenizer_get_num_tokens(PyGPTOSSTokenizer* sel... FILE: gpt_oss/metal/scripts/create-local-model.py function write_file_header (line 83) | def write_file_header(f): function write_tokenizer_header (line 86) | def write_tokenizer_header(f, function write_model_header (line 97) | def write_model_header(f, function write_padding (line 136) | def write_padding(out_file, alignment_multiple=16384): function write_embedding_weight (line 144) | def write_embedding_weight(out_file, weight): function write_rmsnorm_gain (line 151) | def write_rmsnorm_gain(out_file, gain): function write_attn_sink (line 158) | def write_attn_sink(out_file, sink): function write_linear_weight (line 165) | def write_linear_weight(out_file, *args): function main (line 172) | def main(args): FILE: gpt_oss/metal/source/context.c function gptoss_context_create (line 19) | enum gptoss_status GPTOSS_ABI gptoss_context_create( function gptoss_context_get_num_tokens (line 163) | enum gptoss_status GPTOSS_ABI gptoss_context_get_num_tokens( function gptoss_context_get_max_tokens (line 171) | enum gptoss_status GPTOSS_ABI gptoss_context_get_max_tokens( function gptoss_context_get_tokens (line 179) | enum gptoss_status GPTOSS_ABI gptoss_context_get_tokens( function process_tokens (line 199) | static enum gptoss_status process_tokens( function gptoss_context_append_chars (line 774) | enum gptoss_status GPTOSS_ABI gptoss_context_append_chars( function gptoss_context_append_tokens (line 834) | enum gptoss_status GPTOSS_ABI gptoss_context_append_tokens( function gptoss_context_process (line 885) | enum gptoss_status GPTOSS_ABI gptoss_context_process( function gptoss_context_sample (line 929) | enum gptoss_status GPTOSS_ABI gptoss_context_sample( function gptoss_context_reset (line 1054) | enum gptoss_status GPTOSS_ABI gptoss_context_reset( function gptoss_context_retain (line 1065) | enum gptoss_status GPTOSS_ABI gptoss_context_retain( function gptoss_context_release (line 1072) | enum gptoss_status GPTOSS_ABI gptoss_context_release( FILE: gpt_oss/metal/source/generate.c type options (line 32) | struct options { function mach_timestamp_diff_to_seconds (line 41) | static inline double mach_timestamp_diff_to_seconds(uint64_t start_times... function mach_timestamp_diff_to_microseconds (line 50) | static inline uint64_t mach_timestamp_diff_to_microseconds(uint64_t star... function print_usage (line 60) | static void print_usage(const char* program_name) { function parse_options (line 64) | struct options parse_options(int argc, char** argv) { function print_profile (line 162) | static void print_profile() { function ctrl_c_handler (line 183) | static void ctrl_c_handler(int signum) { function main (line 188) | int main(int argc, char *argv[]) { FILE: gpt_oss/metal/source/include/internal/datatype.h type gptoss_bfloat16 (line 8) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { type gptoss_float16 (line 14) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { type gptoss_float8ue8m0 (line 20) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { type gptoss_float8e5m2 (line 26) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { type gptoss_float8e4m3 (line 32) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { type gptoss_float4e2m1x2 (line 38) | typedef struct GPTOSS_DENSELY_PACKED_STRUCTURE { FILE: gpt_oss/metal/source/include/internal/datatype.hpp type gptoss (line 8) | namespace gptoss { FILE: gpt_oss/metal/source/include/internal/kernel-args.h type gptoss_expert_prediction (line 38) | struct gptoss_expert_prediction { type gptoss_control (line 43) | struct gptoss_control { type gptoss_topk_args (line 47) | struct gptoss_topk_args { type gptoss_sdpa_args (line 51) | struct gptoss_sdpa_args { type gptoss_u32_fill_random_args (line 58) | struct gptoss_u32_fill_random_args { type gptoss_f32_fill_random_args (line 65) | struct gptoss_f32_fill_random_args { type gptoss_accumulate_args (line 74) | struct gptoss_accumulate_args { type gptoss_convert_args (line 80) | struct gptoss_convert_args { type gptoss_embeddings_args (line 85) | struct gptoss_embeddings_args { type gptoss_rmsnorm_args (line 89) | struct gptoss_rmsnorm_args { type gptoss_matmul_args (line 95) | struct gptoss_matmul_args { type gptoss_dense_matmul_args (line 101) | struct gptoss_dense_matmul_args { type gptoss_dense_matmul_qkv_args (line 108) | struct gptoss_dense_matmul_qkv_args { type gptoss_scatter_args (line 116) | struct gptoss_scatter_args { type gptoss_moe_dense_matmul_swiglu_args (line 122) | struct gptoss_moe_dense_matmul_swiglu_args { type gptoss_moe_dense_matmul_args (line 131) | struct gptoss_moe_dense_matmul_args { type gptoss_expert_routing_metadata_args (line 139) | struct gptoss_expert_routing_metadata_args { type gptoss_gather_args (line 144) | struct gptoss_gather_args { type gptoss_unembedding_args (line 150) | struct gptoss_unembedding_args { type gptoss_moe_matmul_swiglu_args (line 156) | struct gptoss_moe_matmul_swiglu_args { type gptoss_moe_matmul_args (line 166) | struct gptoss_moe_matmul_args { type gptoss_rope_args (line 175) | struct gptoss_rope_args { type gptoss_qkv_args (line 186) | struct gptoss_qkv_args { type gptoss_softmax_args (line 198) | struct gptoss_softmax_args { type gptoss_sample_args (line 205) | struct gptoss_sample_args { FILE: gpt_oss/metal/source/include/internal/log.h function gptoss_log (line 8) | __attribute__((__format__(__printf__, 1, 2))) FILE: gpt_oss/metal/source/include/internal/math.h function math_ceil_div (line 7) | inline static size_t math_ceil_div(size_t numer, size_t denom) { function math_max (line 11) | inline static size_t math_max(size_t a, size_t b) { function math_min (line 15) | inline static size_t math_min(size_t a, size_t b) { function math_sub_sat (line 19) | inline static size_t math_sub_sat(size_t a, size_t b) { function math_round_down_po2 (line 23) | static size_t math_round_down_po2(size_t number, size_t multiple) { function math_round_up_po2 (line 30) | static size_t math_round_up_po2(size_t number, size_t multiple) { FILE: gpt_oss/metal/source/include/internal/metal-kernels.h type gptoss_status (line 20) | enum gptoss_status type gptoss_metal_command_buffer (line 21) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 22) | struct gptoss_metal_function type gptoss_metal_buffer (line 25) | struct gptoss_metal_buffer type gptoss_status (line 31) | enum gptoss_status type gptoss_metal_command_buffer (line 32) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 33) | struct gptoss_metal_function type gptoss_metal_buffer (line 36) | struct gptoss_metal_buffer type gptoss_status (line 44) | enum gptoss_status type gptoss_metal_command_buffer (line 45) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 46) | struct gptoss_metal_function type gptoss_metal_buffer (line 49) | struct gptoss_metal_buffer type gptoss_status (line 57) | enum gptoss_status type gptoss_metal_command_buffer (line 58) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 59) | struct gptoss_metal_function type gptoss_metal_buffer (line 62) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 63) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 64) | struct gptoss_metal_buffer type gptoss_status (line 67) | enum gptoss_status type gptoss_metal_command_buffer (line 68) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 69) | struct gptoss_metal_function type gptoss_metal_buffer (line 71) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 73) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 75) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 77) | struct gptoss_metal_buffer type gptoss_status (line 82) | enum gptoss_status type gptoss_metal_command_buffer (line 83) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 84) | struct gptoss_metal_function type gptoss_metal_buffer (line 85) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 87) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 89) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 91) | struct gptoss_metal_buffer type gptoss_status (line 97) | enum gptoss_status type gptoss_metal_command_buffer (line 98) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 99) | struct gptoss_metal_function type gptoss_metal_buffer (line 101) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 103) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 105) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 107) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 109) | struct gptoss_metal_buffer type gptoss_status (line 115) | enum gptoss_status type gptoss_metal_command_buffer (line 116) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 117) | struct gptoss_metal_function type gptoss_metal_buffer (line 119) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 121) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 123) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 125) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 127) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 129) | struct gptoss_metal_buffer type gptoss_status (line 144) | enum gptoss_status type gptoss_metal_command_buffer (line 145) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 146) | struct gptoss_metal_function type gptoss_metal_buffer (line 148) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 150) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 152) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 154) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 156) | struct gptoss_metal_buffer type gptoss_status (line 162) | enum gptoss_status type gptoss_metal_command_buffer (line 164) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 165) | struct gptoss_metal_function type gptoss_metal_buffer (line 166) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 168) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 170) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 172) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 174) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 176) | struct gptoss_metal_buffer type gptoss_status (line 184) | enum gptoss_status type gptoss_metal_command_buffer (line 186) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 187) | struct gptoss_metal_function type gptoss_metal_buffer (line 188) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 190) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 192) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 194) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 196) | struct gptoss_metal_buffer type gptoss_status (line 202) | enum gptoss_status type gptoss_metal_command_buffer (line 204) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 205) | struct gptoss_metal_function type gptoss_metal_buffer (line 206) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 208) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 210) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 212) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 214) | struct gptoss_metal_buffer type gptoss_status (line 220) | enum gptoss_status type gptoss_metal_command_buffer (line 221) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 222) | struct gptoss_metal_function type gptoss_metal_buffer (line 225) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 227) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 229) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 231) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 233) | struct gptoss_metal_buffer type gptoss_status (line 239) | enum gptoss_status type gptoss_metal_command_buffer (line 240) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 241) | struct gptoss_metal_function type gptoss_metal_buffer (line 243) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 245) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 247) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 249) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 251) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 253) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 255) | struct gptoss_metal_buffer type gptoss_status (line 264) | enum gptoss_status type gptoss_metal_command_buffer (line 265) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 266) | struct gptoss_metal_function type gptoss_metal_buffer (line 268) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 270) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 272) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 274) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 276) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 278) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 280) | struct gptoss_metal_buffer type gptoss_status (line 288) | enum gptoss_status type gptoss_metal_command_buffer (line 289) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 290) | struct gptoss_metal_function type gptoss_metal_buffer (line 292) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 294) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 296) | struct gptoss_metal_buffer type gptoss_status (line 310) | enum gptoss_status type gptoss_metal_command_buffer (line 311) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 312) | struct gptoss_metal_function type gptoss_metal_buffer (line 315) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 317) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 319) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 321) | struct gptoss_metal_buffer type gptoss_status (line 327) | enum gptoss_status type gptoss_metal_command_buffer (line 328) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 329) | struct gptoss_metal_function type gptoss_metal_buffer (line 330) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 332) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 334) | struct gptoss_metal_buffer type gptoss_status (line 340) | enum gptoss_status type gptoss_metal_command_buffer (line 341) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 342) | struct gptoss_metal_function type gptoss_metal_buffer (line 343) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 345) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 347) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 349) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 351) | struct gptoss_metal_buffer type gptoss_status (line 357) | enum gptoss_status type gptoss_metal_command_buffer (line 359) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 360) | struct gptoss_metal_function type gptoss_metal_buffer (line 361) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 363) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 365) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 367) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 369) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 371) | struct gptoss_metal_buffer type gptoss_status (line 380) | enum gptoss_status type gptoss_metal_command_buffer (line 381) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 382) | struct gptoss_metal_function type gptoss_metal_buffer (line 383) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 385) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 387) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 389) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 391) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 393) | struct gptoss_metal_buffer type gptoss_status (line 401) | enum gptoss_status type gptoss_metal_command_buffer (line 402) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 403) | struct gptoss_metal_function type gptoss_metal_buffer (line 404) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 406) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 408) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 410) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 412) | struct gptoss_metal_buffer type gptoss_status (line 418) | enum gptoss_status type gptoss_metal_command_buffer (line 419) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 420) | struct gptoss_metal_function type gptoss_metal_buffer (line 421) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 423) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 425) | struct gptoss_metal_buffer type gptoss_status (line 431) | enum gptoss_status type gptoss_metal_command_buffer (line 432) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 433) | struct gptoss_metal_function type gptoss_metal_buffer (line 434) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 436) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 438) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 440) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 442) | struct gptoss_metal_buffer type gptoss_status (line 452) | enum gptoss_status type gptoss_metal_command_buffer (line 453) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 454) | struct gptoss_metal_function type gptoss_metal_buffer (line 457) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 459) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 461) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 463) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 465) | struct gptoss_metal_buffer type gptoss_status (line 473) | enum gptoss_status type gptoss_metal_command_buffer (line 474) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 475) | struct gptoss_metal_function type gptoss_metal_buffer (line 477) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 479) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 481) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 483) | struct gptoss_metal_buffer FILE: gpt_oss/metal/source/include/internal/metal.h type gptoss_metal_device (line 11) | struct gptoss_metal_device { type gptoss_status (line 21) | enum gptoss_status type gptoss_metal_device (line 22) | struct gptoss_metal_device type gptoss_status (line 24) | enum gptoss_status type gptoss_metal_device (line 25) | struct gptoss_metal_device type gptoss_metal_library (line 28) | struct gptoss_metal_library { type gptoss_status (line 32) | enum gptoss_status type gptoss_metal_device (line 33) | struct gptoss_metal_device type gptoss_metal_library (line 34) | struct gptoss_metal_library type gptoss_status (line 36) | enum gptoss_status type gptoss_metal_library (line 37) | struct gptoss_metal_library type gptoss_metal_function (line 39) | struct gptoss_metal_function { type gptoss_status (line 47) | enum gptoss_status type gptoss_metal_library (line 48) | struct gptoss_metal_library type gptoss_metal_function (line 50) | struct gptoss_metal_function type gptoss_status (line 52) | enum gptoss_status type gptoss_metal_function (line 53) | struct gptoss_metal_function type gptoss_metal_buffer (line 55) | struct gptoss_metal_buffer { type gptoss_status (line 61) | enum gptoss_status type gptoss_metal_device (line 62) | struct gptoss_metal_device type gptoss_metal_buffer (line 65) | struct gptoss_metal_buffer type gptoss_status (line 67) | enum gptoss_status type gptoss_metal_device (line 68) | struct gptoss_metal_device type gptoss_metal_buffer (line 71) | struct gptoss_metal_buffer type gptoss_status (line 73) | enum gptoss_status type gptoss_metal_buffer (line 74) | struct gptoss_metal_buffer type gptoss_metal_command_queue (line 76) | struct gptoss_metal_command_queue { type gptoss_status (line 80) | enum gptoss_status type gptoss_metal_device (line 81) | struct gptoss_metal_device type gptoss_metal_command_queue (line 82) | struct gptoss_metal_command_queue type gptoss_status (line 84) | enum gptoss_status type gptoss_metal_command_queue (line 85) | struct gptoss_metal_command_queue type gptoss_metal_command_buffer (line 87) | struct gptoss_metal_command_buffer { type gptoss_status (line 91) | enum gptoss_status type gptoss_metal_command_queue (line 92) | struct gptoss_metal_command_queue type gptoss_metal_command_buffer (line 93) | struct gptoss_metal_command_buffer type gptoss_status (line 95) | enum gptoss_status type gptoss_metal_command_buffer (line 96) | struct gptoss_metal_command_buffer type gptoss_metal_buffer (line 97) | struct gptoss_metal_buffer type gptoss_status (line 102) | enum gptoss_status type gptoss_metal_command_buffer (line 103) | struct gptoss_metal_command_buffer type gptoss_metal_buffer (line 104) | struct gptoss_metal_buffer type gptoss_metal_buffer (line 106) | struct gptoss_metal_buffer type gptoss_status (line 110) | enum gptoss_status type gptoss_metal_command_buffer (line 111) | struct gptoss_metal_command_buffer type gptoss_metal_function (line 112) | struct gptoss_metal_function type gptoss_metal_buffer (line 122) | struct gptoss_metal_buffer type gptoss_status (line 126) | enum gptoss_status type gptoss_metal_command_buffer (line 127) | struct gptoss_metal_command_buffer type gptoss_status (line 129) | enum gptoss_status type gptoss_metal_command_buffer (line 130) | struct gptoss_metal_command_buffer type gptoss_status (line 133) | enum gptoss_status type gptoss_metal_command_buffer (line 134) | struct gptoss_metal_command_buffer FILE: gpt_oss/metal/source/include/internal/metal.hpp type gptoss (line 14) | namespace gptoss { function Check (line 16) | inline void Check(gptoss_status s, const char* what) { function round_up (line 22) | inline std::size_t round_up(std::size_t p, std::size_t q) { type metal (line 31) | namespace metal { class Device (line 33) | class Device { method Device (line 35) | inline Device() { method Device (line 43) | Device(const Device&) = delete; method Device (line 44) | Device& operator=(const Device&) = delete; method Device (line 46) | inline Device(Device&& other) noexcept { method Device (line 51) | inline Device& operator=(Device&& other) noexcept { method gptoss_metal_device (line 60) | inline const gptoss_metal_device* handle() const noexcept { return... method max_buffer_size (line 62) | inline size_t max_buffer_size() const noexcept { return device_.ma... method max_threadgroup_memory (line 63) | inline size_t max_threadgroup_memory() const noexcept { return dev... method max_threadgroup_threads_x (line 64) | inline size_t max_threadgroup_threads_x() const noexcept { return ... method max_threadgroup_threads_y (line 65) | inline size_t max_threadgroup_threads_y() const noexcept { return ... method max_threadgroup_threads_z (line 66) | inline size_t max_threadgroup_threads_z() const noexcept { return ... class Library (line 72) | class Library { method Library (line 74) | inline explicit Library(const Device& dev) { method Library (line 83) | Library(const Library&) = delete; method Library (line 84) | Library& operator=(const Library&) = delete; method Library (line 86) | inline Library(Library&& other) noexcept { method Library (line 91) | inline Library& operator=(Library&& other) noexcept { method gptoss_metal_library (line 100) | inline const gptoss_metal_library* handle() const noexcept { class Function (line 108) | class Function { method Function (line 110) | inline Function(const Library& library, const char* name) { method Function (line 119) | Function(const Function&) = delete; method Function (line 120) | Function& operator=(const Function&) = delete; method Function (line 122) | inline Function(Function&& other) noexcept { method Function (line 127) | inline Function& operator=(Function&& other) noexcept { method gptoss_metal_function (line 136) | inline const gptoss_metal_function* handle() const noexcept { retu... method max_threadgroup_threads (line 138) | inline size_t max_threadgroup_threads() const noexcept { return fu... method simdgroup_threads (line 139) | inline size_t simdgroup_threads() const noexcept { return function... method static_threadgroup_memory (line 140) | inline size_t static_threadgroup_memory() const noexcept { return ... class Buffer (line 146) | class Buffer { method Buffer (line 148) | inline Buffer(const Device& dev, size_t size, const void* data = n... method Buffer (line 156) | Buffer(const Buffer&) = delete; method Buffer (line 157) | Buffer& operator=(const Buffer&) = delete; method Buffer (line 159) | inline Buffer(Buffer&& other) noexcept { method Buffer (line 164) | inline Buffer& operator=(Buffer&& other) noexcept { method size (line 173) | inline size_t size() const noexcept { return buffer_.size; } method gptoss_metal_buffer (line 176) | inline const gptoss_metal_buffer* handle() const noexcept { return... class CommandQueue (line 182) | class CommandQueue { method CommandQueue (line 184) | inline explicit CommandQueue(const Device& dev) { method CommandQueue (line 193) | CommandQueue(const CommandQueue&) = delete; method CommandQueue (line 194) | CommandQueue& operator=(const CommandQueue&) = delete; method CommandQueue (line 196) | inline CommandQueue(CommandQueue&& other) noexcept { method CommandQueue (line 201) | inline CommandQueue& operator=(CommandQueue&& other) noexcept { method gptoss_metal_command_queue (line 210) | inline const gptoss_metal_command_queue* handle() const noexcept { class CommandBuffer (line 218) | class CommandBuffer { method CommandBuffer (line 220) | inline explicit CommandBuffer(const CommandQueue& command_queue) { method CommandBuffer (line 228) | CommandBuffer(const CommandBuffer&) = delete; method CommandBuffer (line 229) | CommandBuffer& operator=(const CommandBuffer&) = delete; method CommandBuffer (line 231) | inline CommandBuffer(CommandBuffer&& other) noexcept { method CommandBuffer (line 236) | inline CommandBuffer& operator=(CommandBuffer&& other) noexcept { method encode_launch_kernel (line 245) | inline void encode_launch_kernel(const Function& function, method encode_launch_f32_fill_random (line 267) | inline void encode_launch_f32_fill_random(const Function& f32_fill... method encode_launch_bf16_fill_random (line 287) | inline void encode_launch_bf16_fill_random(const Function& bf16_fi... method encode_launch_u32_fill_random (line 307) | inline void encode_launch_u32_fill_random(const Function& u32_fill... method commit (line 325) | inline void commit() { method wait_completion (line 329) | inline double wait_completion() { method gptoss_metal_command_buffer (line 335) | inline const gptoss_metal_command_buffer* handle() const noexcept ... FILE: gpt_oss/metal/source/include/internal/model.h type gptoss_tokenizer (line 13) | struct gptoss_tokenizer { type gptoss_model (line 32) | struct gptoss_model { type gptoss_context (line 134) | struct gptoss_context { FILE: gpt_oss/metal/source/include/internal/rng.h function rng_squares32 (line 5) | inline static uint32_t rng_squares32(uint64_t offset, uint64_t seed) { FILE: gpt_oss/metal/source/include/internal/rng.hpp type gptoss (line 5) | namespace gptoss { type rng (line 7) | namespace rng { function squares32 (line 9) | inline static std::uint32_t squares32(std::uint64_t offset, std::uin... FILE: gpt_oss/metal/source/include/internal/storage.h type gptoss_file_header (line 6) | struct gptoss_file_header { type gptoss_gptoss_model_header (line 11) | struct gptoss_gptoss_model_header { type gptoss_tiktoken_tokenizer_header (line 31) | struct gptoss_tiktoken_tokenizer_header { FILE: gpt_oss/metal/source/include/internal/uuid.h function gptoss_uuid (line 10) | struct GPTOSS_DENSELY_PACKED_STRUCTURE gptoss_uuid { type gptoss_uuid (line 13) | struct gptoss_uuid function gptoss_is_gptoss_model_uuid (line 21) | static inline bool gptoss_is_gptoss_model_uuid(const struct gptoss_uuid*... function gptoss_is_applegpu_layout_uuid (line 28) | static inline bool gptoss_is_applegpu_layout_uuid(const struct gptoss_uu... function gptoss_is_tiktoken_tokenizer_uuid (line 35) | static inline bool gptoss_is_tiktoken_tokenizer_uuid(const struct gptoss... function gptoss_special_token_decode_uuid (line 42) | static inline enum gptoss_special_token gptoss_special_token_decode_uuid... FILE: gpt_oss/metal/source/log.c function gptoss_format_log (line 12) | void gptoss_format_log(const char* format, va_list args) { FILE: gpt_oss/metal/source/metal-kernels.c function gptoss_metal_command_buffer_encode_launch_u32_fill_random (line 13) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_u32_fill_ra... function gptoss_metal_command_buffer_encode_launch_f32_fill_random (line 53) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_fill_ra... function gptoss_metal_command_buffer_encode_launch_bf16_fill_random (line 101) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_bf16_fill_r... function gptoss_metal_command_buffer_encode_launch_mf4_f32_convert (line 149) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_mf4_f32_con... function gptoss_metal_command_buffer_encode_launch_bf16_f32_embeddings (line 190) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_bf16_f32_em... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_rmsnorm (line 235) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_r... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_matmul (line 284) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_m... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_matmul_qkv (line 344) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_m... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_matmul_add (line 439) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_m... function _gptoss_metal_command_buffer_encode_launch_f32_bf16w_dense_matmul_impl (line 499) | enum gptoss_status _gptoss_metal_command_buffer_encode_launch_f32_bf16w_... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_dense_matmul_qkv (line 592) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_d... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_dense_matmul_attn_output (line 685) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_d... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_dense_matmul_mlp_gate (line 709) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_d... function gptoss_metal_command_buffer_encode_launch_f32_bf16w_unembedding (line 734) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_bf16w_u... function gptoss_metal_command_buffer_encode_launch_f32_mf4w_moe_matmul_swiglu (line 792) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_mf4w_mo... function gptoss_metal_command_buffer_encode_launch_f32_mf4w_moe_matmul (line 868) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_mf4w_mo... function gptoss_metal_command_buffer_encode_launch_f32_rope (line 942) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_rope( function gptoss_metal_command_buffer_encode_launch_expert_routing_metadata (line 1002) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_expert_rout... function gptoss_metal_command_buffer_encode_launch_f32_scatter (line 1034) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_scatter( function gptoss_metal_command_buffer_encode_launch_f32_gather_and_accumulate_e4 (line 1087) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_gather_... function gptoss_metal_command_buffer_encode_launch_f32_mf4w_moe_dense_matmul_swiglu (line 1140) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_mf4w_mo... function gptoss_metal_command_buffer_encode_launch_f32_mf4w_moe_dense_matmul (line 1236) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_mf4w_mo... function gptoss_metal_command_buffer_encode_launch_f32_accumulate (line 1329) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_accumul... function gptoss_metal_command_buffer_encode_launch_f32_topk (line 1381) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_topk( function gptoss_metal_command_buffer_encode_launch_f32_sdpa (line 1419) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_sdpa( function gptoss_metal_command_buffer_encode_launch_f32_softmax (line 1478) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_softmax( function gptoss_metal_command_buffer_encode_launch_f32_sample (line 1528) | enum gptoss_status gptoss_metal_command_buffer_encode_launch_f32_sample( FILE: gpt_oss/metal/source/model.c function round_up_to_page_size (line 27) | static size_t round_up_to_page_size(size_t bytes) { function round_down_to_page_size (line 36) | static size_t round_down_to_page_size(size_t bytes) { function read_fd (line 41) | static enum gptoss_status read_fd(int fd, void* data, size_t size, const... function prefetch_fd (line 61) | static void prefetch_fd(int fd, size_t offset, size_t size, const char* ... function gptoss_model_create_from_file (line 80) | enum gptoss_status GPTOSS_ABI gptoss_model_create_from_file( function gptoss_model_get_tokenizer (line 496) | enum gptoss_status GPTOSS_ABI gptoss_model_get_tokenizer( function gptoss_model_get_max_context_length (line 506) | enum gptoss_status GPTOSS_ABI gptoss_model_get_max_context_length( function gptoss_model_retain (line 514) | enum gptoss_status GPTOSS_ABI gptoss_model_retain( function gptoss_model_release (line 521) | enum gptoss_status GPTOSS_ABI gptoss_model_release( FILE: gpt_oss/metal/source/tokenizer.c function gptoss_tokenizer_get_special_token_id (line 17) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_get_special_token_id( function gptoss_tokenizer_get_num_text_tokens (line 35) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_get_num_text_tokens( function gptoss_tokenizer_get_num_special_tokens (line 43) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_get_num_special_tokens( function gptoss_tokenizer_get_num_tokens (line 51) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_get_num_tokens( function gptoss_tokenizer_decode (line 59) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_decode( function gptoss_tokenizer_retain (line 83) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_retain( function gptoss_tokenizer_release (line 90) | enum gptoss_status GPTOSS_ABI gptoss_tokenizer_release( FILE: gpt_oss/metal/test/bf16-f32-embeddings.cc function TEST (line 13) | TEST(BF16_F32_EMBEDDINGS, single_token_single_tile) { function TEST (line 20) | TEST(BF16_F32_EMBEDDINGS, single_token_multi_tile) { function TEST (line 27) | TEST(BF16_F32_EMBEDDINGS, multiple_tokens) { FILE: gpt_oss/metal/test/embeddings-kernel-tester.hpp type gptoss (line 13) | namespace gptoss { class EmbeddingsKernelTester (line 15) | class EmbeddingsKernelTester { method EmbeddingsKernelTester (line 17) | EmbeddingsKernelTester() { } method EmbeddingsKernelTester (line 19) | EmbeddingsKernelTester(const EmbeddingsKernelTester&) = delete; method EmbeddingsKernelTester (line 20) | EmbeddingsKernelTester(EmbeddingsKernelTester&&) = delete; method EmbeddingsKernelTester (line 21) | EmbeddingsKernelTester& operator=(const EmbeddingsKernelTester&) = d... method EmbeddingsKernelTester (line 22) | EmbeddingsKernelTester& operator=(EmbeddingsKernelTester&&) = delete; method EmbeddingsKernelTester (line 24) | [[nodiscard]] method num_channels (line 30) | std::uint32_t num_channels() const { method EmbeddingsKernelTester (line 34) | [[nodiscard]] method num_tokens (line 40) | std::uint32_t num_tokens() const { method vocabulary_size (line 44) | std::uint32_t vocabulary_size() const { method EmbeddingsKernelTester (line 48) | [[nodiscard]] method threadgroup_size (line 54) | std::size_t threadgroup_size() const { method Validate (line 58) | void Validate() const { method TestBF16_F32 (line 65) | void TestBF16_F32() const { FILE: gpt_oss/metal/test/f32-bf16w-matmul.cc function TEST (line 13) | TEST(F32_BF16W_MATMUL, single_simdgroup_single_iteration) { function TEST (line 21) | TEST(F32_BF16W_MATMUL, single_simdgroup_multiple_iteration) { function TEST (line 29) | TEST(F32_BF16W_MATMUL, single_threadgroup) { function TEST (line 39) | TEST(F32_BF16W_MATMUL, multiple_threadgroups) { function TEST (line 50) | TEST(F32_BF16W_MATMUL, multiple_tokens) { function TEST (line 62) | TEST(F32_BF16W_DENSE_MATMUL_QKV, seq_len_1024) { function TEST (line 71) | TEST(F32_BF16W_DENSE_MATMUL_ATTN_OUTPUT, seq_len_1024) { function TEST (line 80) | TEST(F32_BF16W_DENSE_MATMUL_MLP_GATE, seq_len_1024) { FILE: gpt_oss/metal/test/f32-bf16w-rmsnorm.cc function TEST (line 13) | TEST(F32_BF16W_RMSNORM, single_iteration) { function TEST (line 19) | TEST(F32_BF16W_RMSNORM, multiple_iterations) { function TEST (line 25) | TEST(F32_BF16W_RMSNORM, partial_iteration) { function TEST (line 31) | TEST(F32_BF16W_RMSNORM, multiple_tokens) { FILE: gpt_oss/metal/test/f32-random.cc function TEST (line 21) | TEST(F32_FILL_RANDOM, single_threadgroup_single_iteration) { function TEST (line 55) | TEST(F32_FILL_RANDOM, single_threadgroup_multiple_iterations) { function TEST (line 90) | TEST(F32_FILL_RANDOM, multiple_threadgroups_multiple_iterations) { function TEST (line 126) | TEST(F32_FILL_RANDOM, excessive_threadgroups) { function TEST (line 160) | TEST(F32_FILL_RANDOM, nonuniform_range) { function TEST (line 196) | TEST(F32_FILL_RANDOM, partial_range) { FILE: gpt_oss/metal/test/f32-rope.cc function TEST (line 16) | TEST(F32_ROPE, single_simdgroup) { function TEST (line 27) | TEST(F32_ROPE, single_threadgroup) { function TEST (line 41) | TEST(F32_ROPE, multiple_threadgroups) { function TEST (line 56) | TEST(F32_ROPE, multiple_tokens) { FILE: gpt_oss/metal/test/fill-random-kernel-tester.hpp type gptoss (line 14) | namespace gptoss { class FillRandomKernelTester (line 16) | class FillRandomKernelTester { method FillRandomKernelTester (line 18) | FillRandomKernelTester() { } method FillRandomKernelTester (line 20) | FillRandomKernelTester(const FillRandomKernelTester&) = delete; method FillRandomKernelTester (line 21) | FillRandomKernelTester(FillRandomKernelTester&&) = delete; method FillRandomKernelTester (line 22) | FillRandomKernelTester& operator=(const FillRandomKernelTester&) = d... method FillRandomKernelTester (line 23) | FillRandomKernelTester& operator=(FillRandomKernelTester&&) = delete; method FillRandomKernelTester (line 25) | [[nodiscard]] method num_elements (line 31) | std::uint32_t num_elements() const { method FillRandomKernelTester (line 35) | [[nodiscard]] method threadgroup_size (line 41) | std::size_t threadgroup_size() const { method FillRandomKernelTester (line 45) | [[nodiscard]] method max_threadgroups (line 51) | std::size_t max_threadgroups() const { method Validate (line 55) | void Validate() const { method TestU32 (line 61) | void TestU32() const { FILE: gpt_oss/metal/test/matmul-kernel-tester.hpp type gptoss (line 13) | namespace gptoss { function IsNearAbsRel (line 16) | ::testing::AssertionResult class MatMulKernelTester (line 46) | class MatMulKernelTester { method MatMulKernelTester (line 48) | MatMulKernelTester() { } method MatMulKernelTester (line 50) | MatMulKernelTester(const MatMulKernelTester&) = delete; method MatMulKernelTester (line 51) | MatMulKernelTester(MatMulKernelTester&&) = delete; method MatMulKernelTester (line 52) | MatMulKernelTester& operator=(const MatMulKernelTester&) = delete; method MatMulKernelTester (line 53) | MatMulKernelTester& operator=(MatMulKernelTester&&) = delete; method MatMulKernelTester (line 55) | [[nodiscard]] method num_rows (line 61) | std::uint32_t num_rows() const { method MatMulKernelTester (line 65) | [[nodiscard]] method num_cols (line 71) | std::uint32_t num_cols() const { method MatMulKernelTester (line 75) | [[nodiscard]] method num_tokens (line 81) | std::uint32_t num_tokens() const { method MatMulKernelTester (line 85) | [[nodiscard]] method threadgroup_size (line 91) | std::size_t threadgroup_size() const { method Validate (line 95) | void Validate(std::uint32_t vec_size) const { type MatMulKernelType (line 103) | enum class MatMulKernelType { method TestF32_BF16W (line 110) | void TestF32_BF16W(MatMulKernelType kernel_type = MatMulKernelType::... FILE: gpt_oss/metal/test/mf4-f32-convert.cc function TEST (line 20) | TEST(MF4_F32_CONVERT, single_threadgroup_single_iteration) { function TEST (line 78) | TEST(MF4_F32_CONVERT, multiple_threadgroups_multiple_iterations) { FILE: gpt_oss/metal/test/rmsnorm-kernel-tester.hpp type gptoss (line 14) | namespace gptoss { class RMSNormKernelTester (line 16) | class RMSNormKernelTester { method RMSNormKernelTester (line 18) | RMSNormKernelTester() { } method RMSNormKernelTester (line 20) | RMSNormKernelTester(const RMSNormKernelTester&) = delete; method RMSNormKernelTester (line 21) | RMSNormKernelTester(RMSNormKernelTester&&) = delete; method RMSNormKernelTester (line 22) | RMSNormKernelTester& operator=(const RMSNormKernelTester&) = delete; method RMSNormKernelTester (line 23) | RMSNormKernelTester& operator=(RMSNormKernelTester&&) = delete; method RMSNormKernelTester (line 25) | [[nodiscard]] method num_channels (line 31) | std::uint32_t num_channels() const { method RMSNormKernelTester (line 35) | [[nodiscard]] method num_tokens (line 41) | std::uint32_t num_tokens() const { method RMSNormKernelTester (line 45) | [[nodiscard]] method epsilon (line 51) | float epsilon() const { method Validate (line 55) | void Validate() const { method TestF32_BF16W (line 61) | void TestF32_BF16W() const { FILE: gpt_oss/metal/test/rope-kernel-tester.hpp type gptoss (line 14) | namespace gptoss { class RoPEKernelTester (line 16) | class RoPEKernelTester { method RoPEKernelTester (line 18) | RoPEKernelTester() { } method RoPEKernelTester (line 20) | RoPEKernelTester(const RoPEKernelTester&) = delete; method RoPEKernelTester (line 21) | RoPEKernelTester(RoPEKernelTester&&) = delete; method RoPEKernelTester (line 22) | RoPEKernelTester& operator=(const RoPEKernelTester&) = delete; method RoPEKernelTester (line 23) | RoPEKernelTester& operator=(RoPEKernelTester&&) = delete; method RoPEKernelTester (line 25) | [[nodiscard]] method threadgroup_size (line 31) | std::size_t threadgroup_size() const { method RoPEKernelTester (line 35) | [[nodiscard]] method head_dim (line 41) | std::uint32_t head_dim() const { method RoPEKernelTester (line 45) | [[nodiscard]] method num_q_heads (line 51) | std::uint32_t num_q_heads() const { method RoPEKernelTester (line 55) | [[nodiscard]] method num_kv_heads (line 61) | std::uint32_t num_kv_heads() const { method num_qk_heads (line 65) | std::uint32_t num_qk_heads() const { method num_qkv_heads (line 69) | std::uint32_t num_qkv_heads() const { method RoPEKernelTester (line 73) | [[nodiscard]] method num_tokens (line 79) | std::uint32_t num_tokens() const { method RoPEKernelTester (line 83) | [[nodiscard]] method token_offset (line 89) | std::uint32_t token_offset() const { method RoPEKernelTester (line 93) | [[nodiscard]] method frequency_base (line 99) | float frequency_base() const { method Validate (line 103) | void Validate() const { method TestF32 (line 110) | void TestF32() const { FILE: gpt_oss/metal/test/u32-random.cc function TEST (line 13) | TEST(U32_FILL_RANDOM, single_threadgroup_single_iteration) { function TEST (line 21) | TEST(U32_FILL_RANDOM, single_threadgroup_multiple_iterations) { function TEST (line 31) | TEST(U32_FILL_RANDOM, multiple_threadgroups_multiple_iterations) { function TEST (line 42) | TEST(U32_FILL_RANDOM, excessive_threadgroups) { function TEST (line 50) | TEST(U32_FILL_RANDOM, nonuniform_range) { function TEST (line 61) | TEST(U32_FILL_RANDOM, partial_range) { FILE: gpt_oss/responses_api/api_server.py function get_reasoning_effort (line 74) | def get_reasoning_effort( function is_not_builtin_tool (line 88) | def is_not_builtin_tool( function create_api_server (line 100) | def create_api_server( FILE: gpt_oss/responses_api/events.py class ResponseEvent (line 21) | class ResponseEvent(BaseModel): class ResponseCreatedEvent (line 25) | class ResponseCreatedEvent(ResponseEvent): class ResponseCompletedEvent (line 30) | class ResponseCompletedEvent(ResponseEvent): class ResponseOutputTextDelta (line 35) | class ResponseOutputTextDelta(ResponseEvent): class ResponseReasoningSummaryTextDelta (line 44) | class ResponseReasoningSummaryTextDelta(ResponseEvent): class ResponseReasoningTextDelta (line 54) | class ResponseReasoningTextDelta(ResponseEvent): class ResponseReasoningTextDone (line 62) | class ResponseReasoningTextDone(ResponseEvent): class ResponseOutputItemAdded (line 70) | class ResponseOutputItemAdded(ResponseEvent): class ResponseOutputItemDone (line 82) | class ResponseOutputItemDone(ResponseEvent): class ResponseInProgressEvent (line 94) | class ResponseInProgressEvent(ResponseEvent): class ResponseContentPartAdded (line 99) | class ResponseContentPartAdded(ResponseEvent): class ResponseOutputTextDone (line 107) | class ResponseOutputTextDone(ResponseEvent): class ResponseContentPartDone (line 116) | class ResponseContentPartDone(ResponseEvent): class ResponseOutputTextAnnotationAdded (line 124) | class ResponseOutputTextAnnotationAdded(ResponseEvent): class ResponseWebSearchCallInProgress (line 135) | class ResponseWebSearchCallInProgress(ResponseEvent): class ResponseWebSearchCallSearching (line 143) | class ResponseWebSearchCallSearching(ResponseEvent): class ResponseWebSearchCallCompleted (line 151) | class ResponseWebSearchCallCompleted(ResponseEvent): class ResponseCodeInterpreterCallInProgress (line 159) | class ResponseCodeInterpreterCallInProgress(ResponseEvent): class ResponseCodeInterpreterCallInterpreting (line 167) | class ResponseCodeInterpreterCallInterpreting(ResponseEvent): class ResponseCodeInterpreterCallCodeDelta (line 175) | class ResponseCodeInterpreterCallCodeDelta(ResponseEvent): class ResponseCodeInterpreterCallCodeDone (line 187) | class ResponseCodeInterpreterCallCodeDone(ResponseEvent): class ResponseCodeInterpreterCallCompleted (line 199) | class ResponseCodeInterpreterCallCompleted(ResponseEvent): FILE: gpt_oss/responses_api/inference/metal.py function setup_model (line 12) | def setup_model(checkpoint: str) -> Callable[[list[int], float], int]: FILE: gpt_oss/responses_api/inference/ollama.py function lcp (line 33) | def lcp(cache: list[int], inp: list[int]) -> list[int]: function _now (line 41) | def _now(): function _touch_progress (line 45) | def _touch_progress(): function _reset_stream_state (line 50) | def _reset_stream_state(): function setup_model (line 60) | def setup_model(checkpoint: str) -> Callable[[list[int], float, bool], i... FILE: gpt_oss/responses_api/inference/stub.py function stub_infer_next_token (line 130) | def stub_infer_next_token( function setup_model (line 141) | def setup_model(_checkpoint: str) -> Callable[[list[int], float], int]: FILE: gpt_oss/responses_api/inference/transformers.py function load_model (line 17) | def load_model(checkpoint: str): function get_infer_next_token (line 31) | def get_infer_next_token(model: PreTrainedModel): function setup_model (line 53) | def setup_model(checkpoint: str) -> Callable[[List[int], float, bool], i... FILE: gpt_oss/responses_api/inference/triton.py function load_model (line 20) | def load_model(checkpoint: str): function get_infer_next_token (line 34) | def get_infer_next_token(model, device): function setup_model (line 99) | def setup_model(checkpoint: str) -> Callable[[list[int], float], int]: FILE: gpt_oss/responses_api/inference/vllm.py function load_model (line 16) | def load_model(checkpoint: str): function get_infer_next_token (line 32) | def get_infer_next_token(llm: LLM): function setup_model (line 81) | def setup_model(checkpoint: str) -> Callable[[List[int], float, bool], i... FILE: gpt_oss/responses_api/types.py class UrlCitation (line 12) | class UrlCitation(BaseModel): class TextContentItem (line 20) | class TextContentItem(BaseModel): class SummaryTextContentItem (line 27) | class SummaryTextContentItem(BaseModel): class ReasoningTextContentItem (line 33) | class ReasoningTextContentItem(BaseModel): class ReasoningItem (line 38) | class ReasoningItem(BaseModel): class Item (line 45) | class Item(BaseModel): class FunctionCallItem (line 53) | class FunctionCallItem(BaseModel): class FunctionCallOutputItem (line 62) | class FunctionCallOutputItem(BaseModel): class WebSearchActionSearch (line 68) | class WebSearchActionSearch(BaseModel): class WebSearchActionOpenPage (line 73) | class WebSearchActionOpenPage(BaseModel): class WebSearchActionFind (line 78) | class WebSearchActionFind(BaseModel): class WebSearchCallItem (line 84) | class WebSearchCallItem(BaseModel): class CodeInterpreterOutputLogs (line 91) | class CodeInterpreterOutputLogs(BaseModel): class CodeInterpreterOutputImage (line 96) | class CodeInterpreterOutputImage(BaseModel): class CodeInterpreterCallItem (line 101) | class CodeInterpreterCallItem(BaseModel): class Error (line 118) | class Error(BaseModel): class IncompleteDetails (line 123) | class IncompleteDetails(BaseModel): class Usage (line 127) | class Usage(BaseModel): class FunctionToolDefinition (line 133) | class FunctionToolDefinition(BaseModel): class BrowserToolConfig (line 141) | class BrowserToolConfig(BaseModel): class CodeInterpreterToolConfig (line 146) | class CodeInterpreterToolConfig(BaseModel): class ReasoningConfig (line 150) | class ReasoningConfig(BaseModel): class ResponsesRequest (line 154) | class ResponsesRequest(BaseModel): class ResponseObject (line 187) | class ResponseObject(BaseModel): FILE: gpt_oss/responses_api/utils.py function stub_infer_next_token (line 129) | def stub_infer_next_token(tokens: list[int], temperature: float = 0.0) -... FILE: gpt_oss/tokenizer.py function get_tokenizer (line 3) | def get_tokenizer(): FILE: gpt_oss/tools/apply_patch.py class ActionType (line 28) | class ActionType(str, Enum): class FileChange (line 35) | class FileChange: class Commit (line 43) | class Commit: class DiffError (line 50) | class DiffError(ValueError): class Chunk (line 58) | class Chunk: class PatchAction (line 65) | class PatchAction: class Patch (line 73) | class Patch: class Parser (line 81) | class Parser: method _cur_line (line 89) | def _cur_line(self) -> str: method _norm (line 95) | def _norm(line: str) -> str: method is_done (line 100) | def is_done(self, prefixes: Optional[Tuple[str, ...]] = None) -> bool: method startswith (line 111) | def startswith(self, prefix: Union[str, Tuple[str, ...]]) -> bool: method read_str (line 114) | def read_str(self, prefix: str) -> str: method read_line (line 127) | def read_line(self) -> str: method parse (line 134) | def parse(self) -> None: method _parse_update_file (line 177) | def _parse_update_file(self, text: str) -> PatchAction: method _parse_add_file (line 231) | def _parse_add_file(self) -> PatchAction: function find_context_core (line 246) | def find_context_core( function find_context (line 268) | def find_context( function peek_next_section (line 280) | def peek_next_section( function _get_updated_file (line 362) | def _get_updated_file(text: str, action: PatchAction, path: str) -> str: function patch_to_commit (line 389) | def patch_to_commit(patch: Patch, orig: Dict[str, str]) -> Commit: function text_to_patch (line 416) | def text_to_patch(text: str, orig: Dict[str, str]) -> Tuple[Patch, int]: function identify_files_needed (line 430) | def identify_files_needed(text: str) -> List[str]: function identify_files_added (line 443) | def identify_files_added(text: str) -> List[str]: function load_files (line 455) | def load_files(paths: List[str], open_fn: Callable[[str], str]) -> Dict[... function apply_commit (line 459) | def apply_commit( function open_file (line 480) | def open_file(path: str) -> str: function write_file (line 485) | def write_file(path: str, content: str) -> None: function remove_file (line 492) | def remove_file(path: str) -> None: function apply_patch (line 497) | def apply_patch( function main (line 513) | def main() -> None: FILE: gpt_oss/tools/python_docker/docker_tool.py function call_python_script (line 41) | def call_python_script(script: str) -> str: function call_python_script_with_uv (line 82) | def call_python_script_with_uv(script: str) -> str: class LocalJupyterSession (line 101) | class LocalJupyterSession: method __init__ (line 104) | def __init__( method execute (line 144) | def execute(self, code: str, *, timeout: float | None = None) -> str: method close (line 233) | def close(self) -> None: method __del__ (line 241) | def __del__(self) -> None: # pragma: no cover - best-effort cleanup class PythonTool (line 244) | class PythonTool(Tool): method __init__ (line 245) | def __init__( method get_tool_name (line 280) | def get_tool_name(cls) -> str: method name (line 284) | def name(self) -> str: method instruction (line 288) | def instruction(self) -> str: method tool_config (line 303) | def tool_config(self) -> ToolNamespaceConfig: method _make_response (line 308) | def _make_response( method make_response (line 316) | def make_response( method _process (line 337) | async def _process(self, message: Message) -> AsyncIterator[Message]: method close (line 365) | def close(self) -> None: method __del__ (line 369) | def __del__(self) -> None: # pragma: no cover - best-effort cleanup FILE: gpt_oss/tools/simple_browser/backend.py class BackendError (line 44) | class BackendError(Exception): function with_retries (line 52) | def with_retries( function maybe_truncate (line 74) | def maybe_truncate(text: str, num_chars: int = 1024) -> str: class Backend (line 81) | class Backend: method search (line 85) | async def search( method fetch (line 94) | async def fetch(self, url: str, session: ClientSession) -> PageContents: method _post (line 97) | async def _post(self, session: ClientSession, endpoint: str, payload: ... method _get (line 109) | async def _get(self, session: ClientSession, endpoint: str, params: di... class ExaBackend (line 123) | class ExaBackend(Backend): method _get_api_key (line 134) | def _get_api_key(self) -> str: method search (line 141) | async def search( method fetch (line 171) | async def fetch(self, url: str, session: ClientSession) -> PageContents: class YouComBackend (line 192) | class YouComBackend(Backend): method _get_api_key (line 199) | def _get_api_key(self) -> str: method search (line 206) | async def search( method fetch (line 244) | async def fetch(self, url: str, session: ClientSession) -> PageContents: FILE: gpt_oss/tools/simple_browser/page_contents.py class Extract (line 33) | class Extract(pydantic.BaseModel): # A search result snippet or a quota... class FetchResult (line 40) | class FetchResult(pydantic.BaseModel): class PageContents (line 51) | class PageContents(pydantic.BaseModel): class Tokens (line 61) | class Tokens: function get_domain (line 66) | def get_domain(url: str) -> str: function multiple_replace (line 75) | def multiple_replace(text: str, replacements: dict[str, str]) -> str: function mark_lines (line 82) | def mark_lines(text: str) -> str: function _tiktoken_vocabulary_lengths (line 93) | def _tiktoken_vocabulary_lengths(enc_name: str) -> list[int]: function warmup_caches (line 99) | def warmup_caches(enc_names: list[str]) -> None: function _replace_special_chars (line 105) | def _replace_special_chars(text: str) -> str: function merge_whitespace (line 118) | def merge_whitespace(text: str) -> str: function arxiv_to_ar5iv (line 125) | def arxiv_to_ar5iv(url: str) -> str: function _clean_links (line 130) | def _clean_links(root: lxml.html.HtmlElement, cur_url: str) -> dict[str,... function _get_text (line 167) | def _get_text(node: lxml.html.HtmlElement) -> str: function _remove_node (line 172) | def _remove_node(node: lxml.html.HtmlElement) -> None: function _escape_md (line 177) | def _escape_md(text: str) -> str: function _escape_md_section (line 181) | def _escape_md_section(text: str, snob: bool = False) -> str: function html_to_text (line 185) | def html_to_text(html: str) -> str: function _remove_math (line 209) | def _remove_math(root: lxml.html.HtmlElement) -> None: function remove_unicode_smp (line 215) | def remove_unicode_smp(text: str) -> str: function replace_node_with_text (line 224) | def replace_node_with_text(node: lxml.html.HtmlElement, text: str) -> None: function replace_images (line 236) | def replace_images( function process_html (line 253) | def process_html( FILE: gpt_oss/tools/simple_browser/simple_browser_tool.py class ToolUsageError (line 56) | class ToolUsageError(Exception): function function_the_model_can_call (line 60) | def function_the_model_can_call( function _tiktoken_vocabulary_lengths (line 78) | def _tiktoken_vocabulary_lengths(enc_name: str) -> list[int]: class Tokens (line 90) | class Tokens: function max_chars_per_token (line 96) | def max_chars_per_token(enc_name: str) -> int: function get_tokens (line 102) | def get_tokens(text: str, enc_name: str) -> Tokens: function get_end_loc (line 113) | def get_end_loc( function get_page_metadata (line 143) | def get_page_metadata( function join_lines (line 154) | def join_lines( function wrap_lines (line 163) | def wrap_lines(text: str, width: int = 80) -> list[str]: function strip_links (line 178) | def strip_links(text: str) -> str: function maybe_get_function_args (line 185) | def maybe_get_function_args( function run_find_in_page (line 208) | async def run_find_in_page( function handle_errors (line 258) | def handle_errors( class SimpleBrowserState (line 277) | class SimpleBrowserState(pydantic.BaseModel): method current_cursor (line 284) | def current_cursor(self) -> int: method add_page (line 287) | def add_page(self, page: PageContents) -> None: method get_page (line 291) | def get_page(self, cursor: int = -1) -> PageContents: method get_page_by_url (line 309) | def get_page_by_url(self, url: str) -> PageContents | None: method pop_page_stack (line 314) | def pop_page_stack(self) -> None: class SimpleBrowserTool (line 319) | class SimpleBrowserTool(Tool): method __init__ (line 320) | def __init__( method get_tool_state (line 340) | def get_tool_state(self) -> dict[str, Any]: method get_tool_name (line 344) | def get_tool_name(cls) -> str: method name (line 348) | def name(self) -> str: method tool_config (line 352) | def tool_config(self) -> ToolNamespaceConfig: method instruction (line 364) | def instruction(self) -> str: method _render_browsing_display (line 367) | def _render_browsing_display( method _make_response (line 381) | def _make_response( method show_page (line 399) | async def show_page(self, loc: int = 0, num_lines: int = -1) -> Message: method show_page_safely (line 422) | async def show_page_safely(self, loc: int = 0, num_lines: int = -1) ->... method _open_url (line 429) | async def _open_url(self, url: str, direct_url_open: bool) -> PageCont... method make_error_message (line 448) | def make_error_message(self, error: Exception) -> Message: method search (line 456) | async def search( method open (line 481) | async def open( method find (line 538) | async def find(self, pattern: str, cursor: int = -1) -> AsyncIterator[... method make_response (line 552) | def make_response( method process_arguments (line 575) | def process_arguments(self, message: Message) -> dict[str, Any]: method _process (line 590) | async def _process(self, message: Message) -> AsyncIterator[Message]: method normalize_citations (line 620) | def normalize_citations(self, old_content: str, hide_partial_citations... FILE: gpt_oss/tools/tool.py function _maybe_update_inplace_and_validate_channel (line 13) | def _maybe_update_inplace_and_validate_channel( class Tool (line 28) | class Tool(ABC): method name (line 39) | def name(self) -> str: method output_channel_should_match_input_channel (line 46) | def output_channel_should_match_input_channel(self) -> bool: method process (line 52) | async def process(self, message: Message) -> AsyncIterator[Message]: method _process (line 70) | async def _process(self, message: Message) -> AsyncIterator[Message]: method instruction (line 78) | def instruction(self) -> str: method instruction_dict (line 85) | def instruction_dict(self) -> dict[str, str]: method error_message (line 88) | def error_message( FILE: gpt_oss/torch/model.py class ModelConfig (line 13) | class ModelConfig: class RMSNorm (line 32) | class RMSNorm(torch.nn.Module): method __init__ (line 33) | def __init__( method forward (line 43) | def forward(self, x: torch.Tensor) -> torch.Tensor: function _apply_rotary_emb (line 50) | def _apply_rotary_emb( class RotaryEmbedding (line 63) | class RotaryEmbedding(torch.nn.Module): method __init__ (line 64) | def __init__( method _compute_concentration_and_inv_freq (line 85) | def _compute_concentration_and_inv_freq(self) -> torch.Tensor: method _compute_cos_sin (line 125) | def _compute_cos_sin(self, num_tokens: int): method forward (line 133) | def forward( function sdpa (line 153) | def sdpa(Q, K, V, S, sm_scale, sliding_window=0): class AttentionBlock (line 176) | class AttentionBlock(torch.nn.Module): method __init__ (line 177) | def __init__( method forward (line 217) | def forward(self, x: torch.Tensor) -> torch.Tensor: function swiglu (line 249) | def swiglu(x, alpha: float = 1.702, limit: float = 7.0): class MLPBlock (line 259) | class MLPBlock(torch.nn.Module): method __init__ (line 260) | def __init__( method forward (line 312) | def forward(self, x: torch.Tensor) -> torch.Tensor: class TransformerBlock (line 339) | class TransformerBlock(torch.nn.Module): method __init__ (line 340) | def __init__( method forward (line 351) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Transformer (line 357) | class Transformer(torch.nn.Module): method __init__ (line 358) | def __init__( method forward (line 382) | def forward(self, x: torch.Tensor) -> torch.Tensor: method from_checkpoint (line 391) | def from_checkpoint( class TokenGenerator (line 444) | class TokenGenerator: method __init__ (line 446) | def __init__(self, checkpoint: str, device: torch.device): method generate (line 451) | def generate(self, FILE: gpt_oss/torch/utils.py function suppress_output (line 6) | def suppress_output(rank): function init_distributed (line 21) | def init_distributed() -> torch.device: FILE: gpt_oss/torch/weights.py class Checkpoint (line 28) | class Checkpoint: method __init__ (line 29) | def __init__(self, path: str, device: torch.device): method get (line 52) | def get(self, name: str) -> torch.Tensor: method _get_tensor (line 61) | def _get_tensor(self, name: str) -> str: method _get_mxfp4_tensor (line 68) | def _get_mxfp4_tensor( method _get_mxfp4_tensor_copy (line 119) | def _get_mxfp4_tensor_copy(self, blocks_name: str, scales_name: str, d... FILE: gpt_oss/triton/attention.py function _attn_fwd (line 19) | def _attn_fwd( class _attention (line 104) | class _attention(torch.autograd.Function): method forward (line 106) | def forward(ctx, q, k, v, sinks, sm_scale, bandwidth, start_q): function attention_ref (line 165) | def attention_ref( function test_eq (line 215) | def test_eq(batch_size, num_queries, num_keys, num_key_value_heads, num_... FILE: gpt_oss/triton/model.py class RotaryEmbedding (line 14) | class RotaryEmbedding(torch.nn.Module): method __init__ (line 15) | def __init__( method _compute_concentration_and_inv_freq (line 39) | def _compute_concentration_and_inv_freq(self) -> torch.Tensor: method _compute_cos_sin (line 79) | def _compute_cos_sin(self, start: int, num_tokens: int): method _rotate (line 88) | def _rotate( method forward (line 102) | def forward( class Cache (line 121) | class Cache: method __init__ (line 122) | def __init__(self, batch_size, n_ctx, n_kv_heads, d_head=64, device: t... method reset (line 127) | def reset(self): method repeat_interleave (line 132) | def repeat_interleave(self, n): method truncate (line 137) | def truncate(self, n_ctx): method extend (line 147) | def extend(self, k, v): class AttentionBlock (line 157) | class AttentionBlock(torch.nn.Module): method __init__ (line 158) | def __init__( method forward (line 200) | def forward(self, x: torch.Tensor, cache: Cache | None = None) -> torc... class MLPBlock (line 273) | class MLPBlock(torch.nn.Module): method __init__ (line 274) | def __init__( method forward (line 342) | def forward(self, x: torch.Tensor) -> torch.Tensor: class TransformerBlock (line 364) | class TransformerBlock(torch.nn.Module): method __init__ (line 365) | def __init__( method forward (line 376) | def forward(self, x: torch.Tensor, cache: Cache | None = None) -> torc... class Transformer (line 382) | class Transformer(torch.nn.Module): method __init__ (line 383) | def __init__( method forward (line 408) | def forward(self, x: torch.Tensor, caches: list[Cache] | None = None) ... method from_checkpoint (line 422) | def from_checkpoint( class TokenGenerator (line 470) | class TokenGenerator: method __init__ (line 472) | def __init__(self, checkpoint: str, context: int, device: torch.device): method generate (line 485) | def generate(self, FILE: gpt_oss/triton/moe.py function quantize_mx4 (line 16) | def quantize_mx4(w): function swiglu (line 23) | def swiglu(x, alpha: float = 1.702, limit: float = 7.0, interleaved: boo... function moe (line 34) | def moe(x, wg, w1, w1_mx, w2, w2_mx, bg, b1, b2, experts_per_token=4, nu... FILE: gpt_oss/vllm/token_generator.py class TokenGenerator (line 4) | class TokenGenerator: method __init__ (line 5) | def __init__(self, model_path: str, tensor_parallel_size: int = 1): method generate (line 13) | def generate(self, FILE: tests/conftest.py function harmony_encoding (line 18) | def harmony_encoding(): function mock_infer_token (line 23) | def mock_infer_token(harmony_encoding): function api_client (line 39) | def api_client(harmony_encoding, mock_infer_token) -> Generator[TestClie... function sample_request_data (line 49) | def sample_request_data(): function mock_browser_tool (line 61) | def mock_browser_tool(): function mock_python_tool (line 70) | def mock_python_tool(): function reset_test_environment (line 81) | def reset_test_environment(): function performance_timer (line 97) | def performance_timer(): FILE: tests/gpt_oss/tools/simple_browser/test_backend.py class MockAiohttpResponse (line 8) | class MockAiohttpResponse: method __init__ (line 11) | def __init__(self, json: dict, status: int): method json (line 15) | async def json(self): method __aexit__ (line 18) | async def __aexit__(self, exc_type, exc, tb): method __aenter__ (line 21) | async def __aenter__(self): function mock_os_environ_get (line 24) | def mock_os_environ_get(name: str, default: Any = "test_api_key"): function test_youcom_backend (line 28) | def test_youcom_backend(): function test_youcom_backend_search (line 34) | async def test_youcom_backend_search(mock_session_get): function test_youcom_backend_fetch (line 57) | async def test_youcom_backend_fetch(mock_session_get): FILE: tests/test_api_endpoints.py class TestResponsesEndpoint (line 8) | class TestResponsesEndpoint: method test_basic_response_creation (line 10) | def test_basic_response_creation(self, api_client, sample_request_data): method test_response_with_high_reasoning (line 18) | def test_response_with_high_reasoning(self, api_client, sample_request... method test_response_with_medium_reasoning (line 26) | def test_response_with_medium_reasoning(self, api_client, sample_reque... method test_response_with_invalid_model (line 34) | def test_response_with_invalid_model(self, api_client, sample_request_... method test_response_with_empty_input (line 40) | def test_response_with_empty_input(self, api_client, sample_request_da... method test_response_with_tools (line 45) | def test_response_with_tools(self, api_client, sample_request_data): method test_response_with_custom_temperature (line 54) | def test_response_with_custom_temperature(self, api_client, sample_req... method test_streaming_response (line 62) | def test_streaming_response(self, api_client, sample_request_data): class TestResponsesWithSession (line 75) | class TestResponsesWithSession: method test_response_with_session_id (line 77) | def test_response_with_session_id(self, api_client, sample_request_data): method test_response_continuation (line 95) | def test_response_continuation(self, api_client, sample_request_data): class TestErrorHandling (line 112) | class TestErrorHandling: method test_missing_required_fields (line 114) | def test_missing_required_fields(self, api_client): method test_invalid_reasoning_effort (line 119) | def test_invalid_reasoning_effort(self, api_client, sample_request_data): method test_malformed_json (line 125) | def test_malformed_json(self, api_client): method test_extremely_long_input (line 133) | def test_extremely_long_input(self, api_client, sample_request_data): class TestToolIntegration (line 140) | class TestToolIntegration: method test_browser_search_tool (line 142) | def test_browser_search_tool(self, api_client, sample_request_data): method test_function_tool_integration (line 151) | def test_function_tool_integration(self, api_client, sample_request_da... method test_multiple_tools (line 163) | def test_multiple_tools(self, api_client, sample_request_data): class TestPerformance (line 179) | class TestPerformance: method test_response_time_under_threshold (line 181) | def test_response_time_under_threshold(self, api_client, sample_reques... method test_multiple_sequential_requests (line 190) | def test_multiple_sequential_requests(self, api_client, sample_request... class TestUsageTracking (line 199) | class TestUsageTracking: method test_usage_object_structure (line 201) | def test_usage_object_structure(self, api_client, sample_request_data): method test_usage_increases_with_longer_input (line 219) | def test_usage_increases_with_longer_input(self, api_client, sample_re... FILE: tests/test_responses_api.py function stub_infer_next_token (line 21) | def stub_infer_next_token( function test_client (line 33) | def test_client(): function test_health_check (line 39) | def test_health_check(test_client):