focal_symbol
stringlengths
19
105
source_file
stringclasses
324 values
messages
listlengths
2
2
reward_info
dict
mobius.models.doge.DogeDecoderLayer.forward
src/mobius/models/doge.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_rope", "input_layernorm", "self_attn", "input_residual", "post_attention_residual" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n hidden_states: ir.Value,\n attention_bias: ir.Value | None,\n position_ids: ir.Value | None =...
mobius.models.kimi_k3.KimiK3DecoderLayer._mix
src/mobius/models/kimi_k3.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_mix", "OpBuilder", "DataType" ], "reference_answer": "```python\n@staticmethod\ndef _mix(\n op: OpBuilder,\n prefix_sum: ir.Value,\n bank: list[ir.Value],\n score: nn.Module,\n eps: float,\n):\n sources = [op.Unsqueeze(value, [2]) for value in (*bank, pref...
mobius.models.minicpmv4_6._MiniCPMVisionEncoderModel.forward
src/mobius/models/minicpmv4_6.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "vision_tower", "embeddings", "patch_embedding", "merger" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n pixel_values: ir.Value,\n target_sizes: ir.Value,\n):\n pixel_values = op.CastLike(\n pixel_values,\n self.vis...
mobius.models.layoutlmv3.LayoutLMv3Model.preprocess_weights
src/mobius/models/layoutlmv3.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "preprocess_weights", "_rename_layoutlmv3_weight", "items" ], "reference_answer": "```python\ndef preprocess_weights(\n self, state_dict: dict[str, torch.Tensor]\n) -> dict[str, torch.Tensor]:\n \"\"\"Rename HF LayoutLMv3 weights.\n\n After BERT attribute alignment, ...
mobius.integrations.compressed_tensors._loader.CompressedTensorsConfig.parse
src/mobius/integrations/compressed_tensors/_loader.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_normalize_config_value", "_SUPPORTED_VERSION_PREFIX", "_parse_group", "CompressedTensorsError" ], "reference_answer": "```python\n@classmethod\ndef parse(cls, value: object) -> CompressedTensorsConfig:\n value = _normalize_config_value(value)\n if not isinstance(v...
mobius.components._rms_norm.apply_rms_norm
src/mobius/components/_rms_norm.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "apply_rms_norm", "OpBuilder", "RMSNormalization" ], "reference_answer": "```python\ndef apply_rms_norm(op: OpBuilder, x, weight, eps):\n \"\"\"Apply RMS normalization using the ONNX RMSNormalization op.\n\n Args:\n op: The OpBuilder for creating ONNX ops.\n ...
mobius.integrations.diffusers._configs.VAEConfig.from_diffusers
src/mobius/integrations/diffusers/_configs.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "from_diffusers", "VAEConfig", "block_out_channels", "scaling_factor", "use_post_quant_conv" ], "reference_answer": "```python\n@classmethod\ndef from_diffusers(cls, config: dict) -> VAEConfig:\n \"\"\"Create a VAEConfig from a diffusers config dict.\"\"\"\n if ...
mobius.models.sortformer._Conv1d.forward
src/mobius/models/sortformer.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "_kernel_size", "_padding", "_groups" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, x: ir.Value) -> ir.Value:\n return op.Conv(\n x,\n self.weight,\n self.bias,\n kernel_shape=[self._kernel_size],\n st...
mobius.models.qwen_image_vae._Resample.forward
src/mobius/models/qwen_image_vae.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "_mode", "resample" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, x: ir.Value):\n # x: (B, C, T, H, W). Single-chunk image path: no temporal resampling.\n b_shape = op.Shape(x, start=0, end=1)\n c_shape = op.Shape(x, start=1, end=2)\n...
mobius.tasks._image_classification.ImageClassificationTask.build
src/mobius/tasks/_image_classification.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build", "_make_graph", "_make_model", "image_size", "num_channels" ], "reference_answer": "```python\ndef build(\n self,\n module: nn.Module,\n config: BaseModelConfig,\n) -> ModelPackage:\n batch = ir.SymbolicDim(\"batch\")\n\n image_size = getattr(co...
mobius._weight_utils.vlm_vision_weights
src/mobius/_weight_utils.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "vlm_vision_weights", "torch.Tensor", "startswith", "replace" ], "reference_answer": "```python\ndef vlm_vision_weights(\n state_dict: dict[str, torch.Tensor],\n prefixes: tuple[str, ...],\n) -> dict[str, torch.Tensor]:\n \"\"\"Extract vision-tower weights for a ...
mobius.components._gemma3n_audio._Gemma3nAudioAttention._window_mask
src/mobius/components/_gemma3n_audio.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_window_mask", "_max_backward", "_max_forward" ], "reference_answer": "```python\ndef _window_mask(self, op: OpBuilder, seq_len: ir.Value) -> ir.Value:\n \"\"\"``[1, 1, T, T]`` bool: True where key ``j`` is in query ``i``'s window.\"\"\"\n zero = op.Constant(value_int=...
mobius.models.chatglm.ChatGLMCausalLMModel.preprocess_weights
src/mobius/models/chatglm.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "preprocess_weights", "split_fused_qkv", "num_attention_heads", "num_key_value_heads", "head_dim" ], "reference_answer": "```python\ndef preprocess_weights(\n self, state_dict: dict[str, torch.Tensor]\n) -> dict[str, torch.Tensor]:\n renamed: dict[str, torch.Ten...
mobius.models.nemotron3_diarization._FeatureStacking.forward
src/mobius/models/nemotron3_diarization.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "_factor", "_stacked_size", "projection" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, input_features: ir.Value) -> ir.Value:\n # input_features: [B, T, feat_in].\n sequence_length = op.Squeeze(op.Shape(input_features, start=1, end=2...
mobius.integrations.gguf._docs._runtime_blocker_evidence_table
src/mobius/integrations/gguf/_docs.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_runtime_blocker_evidence_table", "iter_runtime_blocker_evidence", "iter_artifact_blocker_evidence", "withheld_checks", "logical_parameter_count" ], "reference_answer": "```python\ndef _runtime_blocker_evidence_table() -> str:\n rows = [\n \"| Evidence ID |...
mobius.models.glm_moe_dsa.GlmMoeDsaAttention._unpack_past
src/mobius/models/glm_moe_dsa.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_unpack_past", "main_key_dim", "indexer_type", "index_head_dim", "v_head_dim" ], "reference_answer": "```python\ndef _unpack_past(self, op: OpBuilder, past_key_value: tuple):\n packed_key, packed_value = past_key_value\n key_tokens = op.Squeeze(packed_key, [1])...
mobius.components._conv._resolve_pads
src/mobius/components/_conv.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_resolve_pads", "padding", "pads" ], "reference_answer": "```python\ndef _resolve_pads(padding: int | tuple[int, int, int, int]) -> list[int]:\n \"\"\"Normalise a ``padding`` argument to the ONNX ``pads`` attribute layout.\n\n An ``int`` pads all four edges equally (Py...
mobius.components._ocr_encoders.Granite4WindowQFormerProjector._window
src/mobius/components/_ocr_encoders.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_window", "_hidden_size", "OpBuilder" ], "reference_answer": "```python\ndef _window(\n self,\n op: OpBuilder,\n hidden_states: ir.Value,\n *,\n side: int,\n window: int,\n) -> ir.Value:\n batch = op.Shape(hidden_states, start=0, end=1)\n hidden_state...
mobius.models.phi._Phi4MMSpeechModel.forward
src/mobius/models/phi.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "encoder", "speech", "vision", "Where" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n audio_embeds: ir.Value,\n audio_sizes: ir.Value,\n audio_projection_mode: ir.Value,\n):\n # audio_sizes is plumbed for the I/...
mobius.tasks._phi4mm_multimodal.Phi4MMMultiModalTask.build
src/mobius/tasks/_phi4mm_multimodal.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_validate_components", "_build_vision", "_build_speech", "_build_embedding", "_build_decoder" ], "reference_answer": "```python\ndef build(\n self,\n module: nn.Module,\n config: ArchitectureConfig,\n) -> ModelPackage:\n self._validate_components(module)\...
mobius.integrations.gguf._config_mapping._validate_encoder_metadata
src/mobius/integrations/gguf/_config_mapping.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_validate_encoder_metadata", "ArchitectureConfig", "num_key_value_heads", "num_attention_heads" ], "reference_answer": "```python\ndef _validate_encoder_metadata(\n config: ArchitectureConfig,\n metadata: dict[str, Any],\n arch: str,\n) -> None:\n \"\"\"Valid...
mobius.models.nemo_rnnt.FastConformerEncoder._att_bias
src/mobius/models/nemo_rnnt.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_att_bias", "_chunk_size", "_left_chunks" ], "reference_answer": "```python\ndef _att_bias(self, op: OpBuilder, t: ir.Value, valid: ir.Value) -> ir.Value:\n # chunk_idx[i] = floor(i / chunk_size); keep iff\n # 0 <= chunk_idx[i] - chunk_idx[j] <= left_chunks\n t_s = ...
mobius.tasks._qwen_image.QwenImageDenoisingTask.build
src/mobius/tasks/_qwen_image.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build", "QwenImageConfig", "_make_graph", "ModelPackage" ], "reference_answer": "```python\ndef build(self, module, config: QwenImageConfig) -> ModelPackage:\n graph, builder = _make_graph(name=\"qwen_image_transformer\")\n half_head_dim = config.attention_head_dim...
mobius._testing.torch_reference.torch_seq2seq_decoder_forward
src/mobius/_testing/torch_reference.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "torch_seq2seq_decoder_forward", "_numpy_to_tensor", "_tensor_to_numpy", "encoder_outputs", "past_key_values" ], "reference_answer": "```python\n@torch.no_grad()\ndef torch_seq2seq_decoder_forward(\n model,\n decoder_input_ids: np.ndarray,\n encoder_hidden_st...
mobius._component_manifest.SharedWeightInfo.__post_init__
src/mobius/_component_manifest.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "__post_init__", "canonical", "aliases", "kind" ], "reference_answer": "```python\ndef __post_init__(self) -> None:\n if not self.name:\n raise ValueError(\"shared-weight name must not be empty\")\n if not self.kind:\n raise ValueError(f\"shared weight...
mobius.tasks._hunyuan_vl_mot.HunYuanVLMoTTask._build_decoder
src/mobius/tasks/_hunyuan_vl_mot.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_build_decoder", "_make_graph", "_make_kv_cache_inputs", "_register_kv_cache_outputs", "_make_model" ], "reference_answer": "```python\ndef _build_decoder(\n self,\n decoder: nn.Module,\n config: ArchitectureConfig,\n) -> ir.Model:\n \"\"\"Build decoder w...
mobius.integrations.gguf._tensor_processors._process_plamo
src/mobius/integrations/gguf/_tensor_processors.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_process_plamo", "_plamo_unshuffle_q", "_plamo_unshuffle_output" ], "reference_answer": "```python\ndef _process_plamo(\n state_dict: dict[str, torch.Tensor],\n config: Any,\n) -> dict[str, torch.Tensor]:\n \"\"\"Restore source PLaMo Q/output layouts after llama.cpp...
mobius.models.zamba2.Zamba2SharedTransformerLayer.forward
src/mobius/models/zamba2.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "self_attn", "q_adapter_out", "k_adapter_out", "v_adapter_out" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n concat_hidden: ir.Value,\n attention_bias: ir.Value,\n position_embeddings: tuple | None,\n past_key_value: tuple | ...
mobius.generation._policy_components.build_empty_batched_features
src/mobius/generation/_policy_components.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build_empty_batched_features", "_make_graph", "_component", "ConstantOfShape" ], "reference_answer": "```python\ndef build_empty_batched_features(\n dtype: ir.DataType,\n feature_size: int,\n) -> PolicyComponent:\n \"\"\"Build ``(1, 0, hidden)`` features for an ...
mobius.models.fun_asr.FunASRForConditionalGeneration.preprocess_weights
src/mobius/models/fun_asr.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "preprocess_weights", "audio_tower", "adaptor", "embed_tokens", "decoder" ], "reference_answer": "```python\ndef preprocess_weights(\n self, state_dict: dict[str, torch.Tensor]\n) -> dict[str, torch.Tensor]:\n \"\"\"Map HuggingFace weight names to ONNX module st...
mobius.models.hy_v3.HyV3MtpModel.forward
src/mobius/models/hy_v3.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "embed_tokens", "pre_fc_norm_embedding", "pre_fc_norm_hidden", "create_padding_mask", "lm_head" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n inputs_embeds: ir.Value | None,\n input_ids: ir.Value | None,\n hidden_states: ir....
mobius.rewrite_rules._clip_to_min_max.clip_to_min_max_rules
src/mobius/rewrite_rules/_clip_to_min_max.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "clip_to_min_max_rules", "RewriteRuleSet", "ClipBothToMinMax", "ClipMinToMax" ], "reference_answer": "```python\ndef clip_to_min_max_rules() -> RewriteRuleSet:\n \"\"\"Return rules lowering bfloat16 ``Clip`` to ``Min``/``Max``.\n\n ONNX Runtime cannot execute ``Clip...
mobius.tasks._gemma4.Gemma4Task._build_audio
src/mobius/tasks/_gemma4.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_make_graph", "input_size", "dtype", "SymbolicDim" ], "reference_answer": "```python\ndef _build_audio(\n self,\n audio: nn.Module,\n config: Gemma4Config,\n) -> ir.Model:\n \"\"\"Build audio encoder: input_features + input_features_mask -> audio_features.\n\...
mobius.integrations.onnx_genai.auto_export._has_tts_pre_embedder
src/mobius/integrations/onnx_genai/auto_export.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_has_tts_pre_embedder", "talker_step_embedder", "inputs_embeds" ], "reference_answer": "```python\ndef _has_tts_pre_embedder(pkg: Any) -> bool:\n \"\"\"True when a multi-decoder TTS package carries the pre-embedder component.\n\n The ``talker_step_embedder`` materializ...
mobius.components._gemma4_audio.Gemma4Attention.forward
src/mobius/components/_gemma4_audio.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "q_proj", "per_dim_scale", "_q_scale", "_k_scale", "_head_dim" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n x: ir.Value,\n attention_mask: ir.Value | None = None,\n) -> ir.Value:\n \"\"\"Compute attention with optional padd...
mobius.models.whisper.WhisperDecoderModel.forward
src/mobius/models/whisper.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "OpBuilder", "Mul", "Add" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n decoder_input_ids: ir.Value,\n encoder_hidden_states: ir.Value,\n position_ids: ir.Value,\n past_key_values: list | None = None,\n):\n # To...
mobius.models.base.CausalLMModel._replace_text_model
src/mobius/models/base.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_replace_text_model", "TiedQuantizedLMHead", "effective_tie_word_embeddings", "Linear", "Embedding" ], "reference_answer": "```python\ndef _replace_text_model(self, model: nn.Module) -> None:\n \"\"\"Replace the text model while preserving tied embedding/head para...
mobius._configs._base.CodeShellConfig.from_transformers
src/mobius/_configs/_base.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "from_transformers", "ArchitectureConfig", "_shallow_fields", "RoPEConfig", "num_key_value_heads" ], "reference_answer": "```python\n@classmethod\ndef from_transformers(cls, config, parent_config=None) -> CodeShellConfig:\n if getattr(config, \"position_embedding_t...
mobius.models.mllama._MllamaDecoderModel.forward
src/mobius/models/mllama.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "lm_head" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n inputs_embeds: ir.Value,\n attention_mask: ir.Value,\n position_ids: ir.Value,\n cross_attention_states: ir.Value | None = None,\n past_key_values: list | None = N...
mobius.components._clip_sidecars.MeralionProjector.forward
src/mobius/components/_clip_sidecars.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_stack_factor", "_d_model", "_eps", "norm_weight", "norm_bias" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, encoder_output: ir.Value) -> ir.Value:\n # Stack consecutive frames first. Norm statistics span all S*C values,\n # while the C-el...
mobius.models.vibevoice.VibeVoiceASRStreamingForConditionalGeneration.preprocess_weights
src/mobius/models/vibevoice.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "preprocess_weights", "_encoder_weight_suffix", "tie_word_embeddings" ], "reference_answer": "```python\ndef preprocess_weights(\n self, state_dict: dict[str, torch.Tensor]\n) -> dict[str, torch.Tensor]:\n \"\"\"Route used streaming-ASR tensors and reject unknown checkp...
mobius.integrations.onnx_genai.auto_export._looks_like_hierarchical_audio_generation
src/mobius/integrations/onnx_genai/auto_export.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_looks_like_hierarchical_audio_generation", "HierarchicalAudioWorkflowConfig", "workflow_config", "workflow_kind" ], "reference_answer": "```python\ndef _looks_like_hierarchical_audio_generation(pkg: Any) -> bool:\n \"\"\"Detect the global-frame/local-codebook/flow/vo...
mobius.integrations.onnx_genai.inference_metadata._input_source_map
src/mobius/integrations/onnx_genai/inference_metadata.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_Port", "attention_mask_input", "position_ids_input" ], "reference_answer": "```python\ndef _input_source_map(\n *,\n ports: dict[str, dict[str, list[_Port]]],\n dataflow: list[dict[str, Any]],\n models: dict[str, Any],\n decoder_name: str,\n image_endpoint...
mobius.components._siglip2_naflex.Siglip2NaFlexVisionEmbeddings.forward
src/mobius/components/_siglip2_naflex.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "patch_embedding", "_resize_position_embedding" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n pixel_values: ir.Value,\n spatial_shapes: ir.Value,\n) -> ir.Value:\n # (N, P, C*k*k) -> (N, P, D)\n patch_embeds = self.pat...
mobius.tasks._gemma4_assistant.Gemma4AssistantTask.build
src/mobius/tasks/_gemma4_assistant.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "layer_types", "backbone_hidden_size", "dtype", "_make_graph", "SymbolicDim" ], "reference_answer": "```python\ndef build(\n self,\n module: nn.Module,\n config: Gemma4AssistantConfig,\n) -> ModelPackage:\n if not config.layer_types:\n raise ValueEr...
mobius.tasks._kimi_k3.KimiK3CausalLMTask.build
src/mobius/tasks/_kimi_k3.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_make_graph", "linear_num_key_heads", "linear_key_head_dim", "linear_conv_kernel_dim", "linear_value_head_dim" ], "reference_answer": "```python\ndef build(self, module: nn.Module, config: ArchitectureConfig) -> ModelPackage:\n batch = ir.SymbolicDim(\"batch\")\n ...
mobius.integrations.ort_genai.auto_export._copy_tokenizer_files_from_local
src/mobius/integrations/ort_genai/auto_export.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_copy_tokenizer_files_from_local", "isdir", "isfile", "copy2" ], "reference_answer": "```python\ndef _copy_tokenizer_files_from_local(\n source_dir: str,\n output_dir: str,\n) -> list[str]:\n \"\"\"Copy tokenizer files from a local model directory.\n\n Silent...
mobius.models.lfm2_vl.Lfm2VlMultiModalProjector.forward
src/mobius/models/lfm2_vl.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_pixel_unshuffle", "use_layer_norm", "layer_norm", "linear_1", "linear_2" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n hidden_states: ir.Value,\n spatial_shapes: ir.Value,\n) -> ir.Value:\n # (N, max_patches, C) -> (total_...
mobius.integrations.onnx_genai.convert._scheduler_for_workflow
src/mobius/integrations/onnx_genai/convert.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_scheduler_for_workflow", "SchedulerConfig", "load_diffusers_scheduler_config", "scheduler_kind", "scheduler_spacing" ], "reference_answer": "```python\ndef _scheduler_for_workflow(\n workflow: ComfyUIWorkflow,\n checkpoint_source: str | None,\n *,\n revi...
mobius.integrations.compressed_tensors._loader._dequantize_nvfp4
src/mobius/integrations/compressed_tensors/_loader.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_dequantize_nvfp4", "_load_tensors", "_FP4_VALUES", "CompressedTensorsError" ], "reference_answer": "```python\ndef _dequantize_nvfp4(\n key_index: Mapping[str, tuple[str, list[int], str]],\n module_name: str,\n target_dtype: torch.dtype,\n) -> torch.Tensor:\n ...
mobius.tasks._qwen4_exp.Qwen4ExpVisionLanguageTask._build_decoder
src/mobius/tasks/_qwen4_exp.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_build_decoder", "_make_qwen4_state_inputs", "_register_qwen4_outputs", "_finalize_qwen4_decoder", "hidden_size" ], "reference_answer": "```python\n@staticmethod\ndef _build_decoder(decoder: nn.Module, config: Qwen4ExpConfig) -> ir.Model:\n batch = ir.SymbolicDim(...
mobius._configs._base.Jais2Config.from_transformers
src/mobius/_configs/_base.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "from_transformers", "ArchitectureConfig", "_shallow_fields", "attn_qkv_bias", "attn_o_bias" ], "reference_answer": "```python\n@classmethod\ndef from_transformers(cls, config, parent_config=None) -> Jais2Config:\n base = ArchitectureConfig.from_transformers(config...
mobius._configs._vision_defaults.apply_vision_defaults
src/mobius/_configs/_vision_defaults.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "apply_vision_defaults", "vision_config", "embed_dim", "hidden_size", "out_hidden_size" ], "reference_answer": "```python\ndef apply_vision_defaults(config, parent_config, model_type: str, fields: dict) -> None:\n \"\"\"Pull the canonical HF ``vision_config`` field...
mobius.integrations.gguf._config_mapping._phi2_postprocess
src/mobius/integrations/gguf/_config_mapping.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_phi2_postprocess", "ArchitectureConfig", "head_dim", "partial_rotary_factor", "num_key_value_heads" ], "reference_answer": "```python\ndef _phi2_postprocess(\n config: ArchitectureConfig, metadata: dict[str, Any], model: Any\n) -> ArchitectureConfig:\n del mod...
mobius.integrations.gguf._config_mapping._glm_dsa_indexer_types
src/mobius/integrations/gguf/_config_mapping.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_glm_dsa_indexer_types", "ArchitectureConfig", "num_hidden_layers", "max_position_embeddings" ], "reference_answer": "```python\ndef _glm_dsa_indexer_types(\n config: ArchitectureConfig,\n metadata: dict[str, Any],\n *,\n arch: str = \"glm-dsa\",\n) -> list[s...
mobius.__main__._UniqueOutputAction.__call__
src/mobius/__main__.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "__call__", "error" ], "reference_answer": "```python\ndef __call__(\n self,\n parser: argparse.ArgumentParser,\n namespace: argparse.Namespace,\n values: str,\n option_string: str | None = None,\n) -> None:\n if getattr(namespace, self.dest, None) is not None:\...
mobius.integrations.onnx_genai.inference_metadata._match_patch_budget
src/mobius/integrations/onnx_genai/inference_metadata.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_match_patch_budget", "_match_packed_coordinates", "_ImageProgram", "_patch_budget_transforms" ], "reference_answer": "```python\ndef _match_patch_budget(ports: list[_Port], values: dict[str, Any]) -> _ImageProgram | None:\n bindings = _match_packed_coordinates(ports)...
mobius._configs._base.MMSConfig.feature_extract_output_length
src/mobius/_configs/_base.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "feature_extract_output_length", "conv_kernel", "conv_stride", "num_adapter_layers", "adapter_stride" ], "reference_answer": "```python\ndef feature_extract_output_length(self, num_samples: int) -> int:\n \"\"\"Return the frame count the conv stack emits for *num_s...
mobius.adapter_io._resolve_initializer_name
src/mobius/adapter_io.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_resolve_initializer_name", "startswith", "endswith" ], "reference_answer": "```python\ndef _resolve_initializer_name(model: ir.Model, module_key: str) -> str:\n candidates = [module_key]\n for prefix in (\"base_model.model.\", \"base_model.\", \"model.\"):\n if...
mobius.integrations.gguf._quant_registry.render_quant_support_matrix
src/mobius/integrations/gguf/_quant_registry.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "is_quantized_storage", "quant_import_decision", "TensorRole", "QuantImportRoute", "RepackExactness" ], "reference_answer": "```python\ndef render_quant_support_matrix() -> str:\n \"\"\"Render the active stored-qtype policy table for generated documentation.\"\"\"\...
mobius._testing.ort_inference.OnnxModelSession.run
src/mobius/_testing/ort_inference.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "run", "_numpy_to_ort_value", "_ort_value_to_numpy" ], "reference_answer": "```python\ndef run(self, feeds: dict[str, np.ndarray]) -> dict[str, np.ndarray]:\n \"\"\"Run inference and return outputs as a name→array dict.\n\n Args:\n feeds: Input name → numpy array...
mobius._testing.parity.compare_synthetic
src/mobius/_testing/parity.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "compare_synthetic", "_compute_metrics", "ParityReport" ], "reference_answer": "```python\ndef compare_synthetic(\n onnx_logits: np.ndarray,\n hf_logits: np.ndarray,\n rtol: float = 1e-3,\n atol: float = 1e-3,\n dtype: str = \"float32\",\n) -> ParityReport:\n ...
mobius.models.decision.map_clm_checkpoint
src/mobius/models/decision.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "map_clm_checkpoint", "Mapping", "logit_scale" ], "reference_answer": "```python\ndef map_clm_checkpoint(checkpoint: Mapping[str, Any]) -> dict[str, torch.Tensor]:\n \"\"\"Flatten a validated in-memory CLM checkpoint without deserializing code.\"\"\"\n mapped: dict[str,...
mobius.models.nemo_rnnt.FastConformerEncoder.forward
src/mobius/models/nemo_rnnt.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_forward_streaming", "pre_encode", "_subsampled_length", "_pos_emb" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n audio_signal: ir.Value,\n length: ir.Value,\n *,\n cache_last_channel: ir.Value | None = None,\n cache_last...
mobius.models.deepseek_ocr2.DeepSeekOCR2CausalLMModel.preprocess_weights
src/mobius/models/deepseek_ocr2.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "preprocess_weights", "vision_encoder", "embedding", "decoder", "embed_tokens" ], "reference_answer": "```python\ndef preprocess_weights(\n self, state_dict: dict[str, torch.Tensor]\n) -> dict[str, torch.Tensor]:\n \"\"\"Route HF weights to the appropriate sub-m...
mobius.integrations.onnx_genai.auto_export._write_hf_tokenizer
src/mobius/integrations/onnx_genai/auto_export.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_write_hf_tokenizer", "AutoTokenizer", "from_pretrained", "_LOGGER" ], "reference_answer": "```python\ndef _write_hf_tokenizer(\n output_dir: str,\n source: str | None,\n *,\n revision: str | None = None,\n) -> str | None:\n \"\"\"Emit ``tokenizer.json`` f...
mobius.integrations._weight_loading._validate_weight_filenames
src/mobius/integrations/_weight_loading.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_validate_weight_filenames", "PurePosixPath", "PureWindowsPath" ], "reference_answer": "```python\ndef _validate_weight_filenames(filenames: list[str]) -> list[str]:\n \"\"\"Validate filenames from a weight index.\n\n The HuggingFace index is model data, so reject abso...
mobius.integrations.gguf._shard_set._discover_in_directory
src/mobius/integrations/gguf/_shard_set.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_discover_in_directory", "_gguf_files", "parse_shard_filename", "_collect_shard_group", "GgufShardError" ], "reference_answer": "```python\ndef _discover_in_directory(directory: Path) -> list[Path]:\n groups: dict[tuple[str, int], list[Path]] = {}\n single_file...
mobius.models._phi3_vision_projector._resolve_checkpoint_shard_paths
src/mobius/models/_phi3_vision_projector.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_resolve_checkpoint_shard_paths", "_WEIGHT_INDEX_NAME", "_SINGLE_WEIGHT_NAME" ], "reference_answer": "```python\ndef _resolve_checkpoint_shard_paths(model_id_or_directory: str) -> list[str]:\n \"\"\"Return local safetensors shard paths for a checkpoint.\n\n Accepts eit...
mobius.tasks._gemma4._make_gemma4_static_cache_inputs
src/mobius/tasks/_gemma4.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "StaticCacheState", "head_dim", "global_head_dim", "num_kv_shared_layers", "layer_types" ], "reference_answer": "```python\ndef _make_gemma4_static_cache_inputs(\n builder: GraphBuilder,\n config: Gemma4Config,\n batch: ir.SymbolicDim,\n max_seq_len: int,\...
mobius._passes._fp8_kv_cache.Fp8KvCachePass._scale_initializer
src/mobius/_passes/_fp8_kv_cache.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_scale_initializer", "initializers", "TensorType", "const_value", "FLOAT" ], "reference_answer": "```python\n@staticmethod\ndef _scale_initializer(graph: ir.Graph, name: str, value: float) -> ir.Value:\n \"\"\"Return (creating if needed) a scalar FLOAT scale initi...
mobius.models.yolos._YolosEncoderLayer.forward
src/mobius/models/yolos.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "layernorm_before", "self_attn", "layernorm_after", "mlp" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, hidden_states: ir.Value):\n residual = hidden_states\n hidden_states = self.layernorm_before(op, hidden_states)\n hidden_s...
mobius._weight_utils.split_interleaved_qkv_weights
src/mobius/_weight_utils.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "split_interleaved_qkv_weights", "split_interleaved_qkv", "fused_key", "kv_heads" ], "reference_answer": "```python\ndef split_interleaved_qkv_weights(\n state_dict: dict[str, torch.Tensor],\n fused_key: str,\n num_heads: int,\n kv_heads: int,\n head_dim: i...
mobius.components._muse_glimmer_vision.MuseGlimmerVisionModel.forward
src/mobius/components/_muse_glimmer_vision.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_compute_window_index", "_compute_cu_seqlens", "_compute_rotary_pos_ids", "_fullatt_block_indexes", "_compute_pixel_shuffle_index" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n pixel_values: ir.Value,\n image_grid_thw: ir.Valu...
mobius.adapters.AdapterTargetManifest.validate
src/mobius/adapters.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "validate", "targets", "node_name", "output_name", "output_size" ], "reference_answer": "```python\ndef validate(self, models: Mapping[str, ir.Model]) -> None:\n for descriptor in self.targets:\n model = models.get(descriptor.target.component)\n if mo...
mobius.models.unet._UpBlock2D.forward
src/mobius/models/unet.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "resnets", "attentions", "upsamplers" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n hidden_states: ir.Value,\n temb: ir.Value,\n skip_connections: ir.Value,\n encoder_hidden_states: ir.Value | None = None,\n):\n ...
mobius.components._mobilenetv5._UIBSpec
src/mobius/components/_mobilenetv5.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_UIBSpec", "out_chs", "exp_chs", "dw_start_kernel", "dw_mid_kernel" ], "reference_answer": "```python\nclass _UIBSpec(NamedTuple):\n \"\"\"Universal Inverted Bottleneck (``uir_`` in the timm arch string).\n\n ``dw_start_kernel`` / ``dw_mid_kernel`` of 0 mean th...
mobius.integrations.onnx_genai.shared_state_flow_metadata.is_shared_state_pixel_flow_package
src/mobius/integrations/onnx_genai/shared_state_flow_metadata.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "is_shared_state_pixel_flow_package", "_find_component", "Any" ], "reference_answer": "```python\ndef is_shared_state_pixel_flow_package(pkg: Any) -> bool:\n \"\"\"Return whether *pkg* exposes the five generic component roles.\"\"\"\n try:\n _find_component(pkg, ...
mobius._configs.vibevoice._asr_streaming_tokenizer_config
src/mobius/_configs/vibevoice.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_asr_streaming_tokenizer_config", "_as_attribute_config", "VibeVoiceTokenizerConfig", "encoder_ratios", "default_hidden_size" ], "reference_answer": "```python\ndef _asr_streaming_tokenizer_config(\n config, *, default_hidden_size: int\n) -> VibeVoiceTokenizerConf...
mobius.generation._policy_components.build_flow_match_solver_step
src/mobius/generation/_policy_components.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build_flow_match_solver_step", "_make_graph", "_component", "add_output" ], "reference_answer": "```python\ndef build_flow_match_solver_step(\n dtype: ir.DataType = ir.DataType.FLOAT,\n) -> PolicyComponent:\n \"\"\"Build the Euler update for rank-3 (packed/patchifi...
mobius.integrations.onnx_genai.inference_metadata.is_native_vlm_package
src/mobius/integrations/onnx_genai/inference_metadata.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "is_native_vlm_package" ], "reference_answer": "```python\ndef is_native_vlm_package(pkg: Any) -> bool:\n \"\"\"Return whether a package must use native VLM emission.\n\n Processor support is deliberately not checked here. A VLM-shaped package\n must enter the native emitter...
mobius.integrations.gguf._qwen_glm_projector._audio_config
src/mobius/integrations/gguf/_qwen_glm_projector.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_audio_config", "AudioConfig", "_shape", "max_source_positions" ], "reference_answer": "```python\ndef _audio_config(model: Any) -> AudioConfig:\n metadata = model.metadata\n return AudioConfig(\n d_model=int(metadata[\"clip.audio.embedding_length\"]),\n ...
mobius.preflight.estimate_output_bytes
src/mobius/preflight.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "estimate_output_bytes", "ExportMode", "PASSTHROUGH", "FP16", "INT4_QMOE" ], "reference_answer": "```python\ndef estimate_output_bytes(\n param_count: int,\n dtype_bytes: dict[str, int],\n export_mode: ExportMode,\n *,\n group_size: int = 32,\n) -> int:...
mobius.integrations.onnx_genai.workflow_metadata._stft_preprocess_component
src/mobius/integrations/onnx_genai/workflow_metadata.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_stft_preprocess_component", "_AUDIO_PREPROCESS_ABI", "_AUDIO_PREPROCESS_ABI_VERSION" ], "reference_answer": "```python\ndef _stft_preprocess_component(\n mag_contract: dict[str, Any],\n pha_contract: dict[str, Any],\n waveform_contract: dict[str, Any],\n sample_...
mobius.components._clip_sidecars.Yasa2ChannelsFirstLayerNorm.forward
src/mobius/components/_clip_sidecars.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "_eps", "weight", "bias" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, x: ir.Value) -> ir.Value:\n # llama.cpp reduces C and clamps the variance for allocation-warmup safety.\n x_f32 = op.Cast(x, to=ir.DataType.FLOAT)\n mean = op....
mobius.models.vibevoice_asr.VibeVoiceASRDecoderModel.forward
src/mobius/models/vibevoice_asr.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "past_key_values", "present_key_values" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n inputs_embeds: ir.Value,\n attention_mask: ir.Value,\n position_ids: ir.Value,\n past_key_values: list | None = None,\n) -> tuple[ir...
mobius.integrations.gguf._quant_capabilities._transform
src/mobius/integrations/gguf/_quant_capabilities.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_transform", "QuantImportRoute", "RepackExactness" ], "reference_answer": "```python\ndef _transform(\n qtype_name: str,\n route: QuantImportRoute,\n exactness: RepackExactness | None,\n) -> str | None:\n if route is QuantImportRoute.NATIVE_BYTES:\n return...
mobius.integrations._block_quant.plan_routed_expert_bank
src/mobius/integrations/_block_quant.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "plan_routed_expert_bank", "BlockQuantValidationError", "validate_descriptor", "is_routed_expert", "scale_layout" ], "reference_answer": "```python\ndef plan_routed_expert_bank(\n expert_descriptors: list[QuantizedTensorDescriptor],\n *,\n runtime: str = \"nx...
mobius.generation._policy_components.build_video_conv_cache_initializer
src/mobius/generation/_policy_components.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build_video_conv_cache_initializer", "PolicyComponent", "_make_graph", "_set_public_shape", "_component" ], "reference_answer": "```python\ndef build_video_conv_cache_initializer(\n entries: list[tuple[str, int, int]],\n dtype: ir.DataType = ir.DataType.FLOAT,\...
mobius.integrations.gguf._mmproj._mmproj_audio_to_hf
src/mobius/integrations/gguf/_mmproj.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_mmproj_audio_to_hf", "map_mmproj_audio_to_hf", "_CLIPPING_BOUND_SUFFIXES" ], "reference_answer": "```python\ndef _mmproj_audio_to_hf(mmproj_gguf: Any) -> dict:\n \"\"\"Load mmproj audio tensors as HF names (experimental; see module docstring).\"\"\"\n import torch\n\n...
mobius.tasks._vibevoice_streaming.VibeVoiceStreamingTask._build_diffusion_head
src/mobius/tasks/_vibevoice_streaming.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_build_diffusion_head", "diffusion_head", "latent_size", "hidden_size", "_make_graph" ], "reference_answer": "```python\ndef _build_diffusion_head(\n self,\n module: nn.Module,\n config: VibeVoiceStreamingConfig,\n) -> ir.Model:\n diffusion = config.diffu...
mobius.integrations.modelopt._dequant.dequantize_nvfp4
src/mobius/integrations/modelopt/_dequant.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "dequantize_nvfp4", "unpack_nvfp4_codes", "FP4_E2M1_LUT", "_to_float32", "NVFP4_BLOCK_SIZE" ], "reference_answer": "```python\ndef dequantize_nvfp4(\n weight_u8: np.ndarray,\n block_scale_e4m3: np.ndarray,\n global_scale: float | np.floating,\n) -> np.ndarray...
mobius.models.mage_vl.MageVLDecoderModel.forward
src/mobius/models/mage_vl.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "model", "lm_head", "past_key_values" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n inputs_embeds: Value,\n attention_mask: Value,\n position_ids: Value,\n past_key_values: list | None = None,\n):\n hidden_state...
mobius.generation._policy_components.build_scalar_integer_add
src/mobius/generation/_policy_components.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "build_scalar_integer_add", "PolicyComponent", "_make_graph", "_component" ], "reference_answer": "```python\ndef build_scalar_integer_add() -> PolicyComponent:\n \"\"\"Add two rank-0 integer control values.\n\n Loop induction values and substep indices are scalars,...
mobius._component_manifest.resolve_component_manifest
src/mobius/_component_manifest.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "resolve_component_manifest", "ComponentDescriptor", "ComponentManifest", "get_hf_component_sources", "_infer_shared_weights" ], "reference_answer": "```python\ndef resolve_component_manifest(\n task: object,\n *,\n module_class: type | None = None,\n mode...
mobius.models.deepseek_ocr2.DeepSeekOCR2DecoderModel.forward
src/mobius/models/deepseek_ocr2.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "OpBuilder", "inputs_embeds", "past_key_values", "lm_head" ], "reference_answer": "```python\ndef forward(\n self,\n op: OpBuilder,\n inputs_embeds: ir.Value,\n attention_mask: ir.Value,\n position_ids: ir.Value,\n past_key_values: list | ...
mobius.models.nemo_rnnt.RelPositionMultiHeadAttention._rel_shift
src/mobius/models/nemo_rnnt.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_rel_shift", "_dim" ], "reference_answer": "```python\ndef _rel_shift(self, op: OpBuilder, x: ir.Value) -> ir.Value:\n # x: (B, h, T, L) with L = 2T-1 -> shifted (B, h, T, L)\n b = _dim(op, x, 0)\n h = _dim(op, x, 1)\n t = _dim(op, x, 2)\n # pad a zero column on t...
mobius.integrations.gguf._tokenizer._merge_pairs
src/mobius/integrations/gguf/_tokenizer.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_merge_pairs", "Any", "merges" ], "reference_answer": "```python\ndef _merge_pairs(value: Any) -> list[tuple[str, str]]:\n if not isinstance(value, list):\n raise TypeError(\"tokenizer.json model.merges must be an array\")\n pairs: list[tuple[str, str]] = []\n ...
mobius.components._moe.SparseMixerGate.forward
src/mobius/components/_moe.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "forward", "_threshold_mask_and_select", "top_k", "jitter_eps" ], "reference_answer": "```python\ndef forward(self, op: OpBuilder, hidden_states: ir.Value):\n weight_t = op.Transpose(self.weight, perm=[1, 0])\n router_logits = op.MatMul(hidden_states, weight_t)\n\n ...
mobius.models.deepseek_v4.DeepSeekV4DecoderLayer._hc_pre
src/mobius/models/deepseek_v4.py
[ { "role": "system", "content": "You are an expert code assistant for the Mobius repository. Use the retrieved repository code snippets in Context to answer the Question accurately and write complete, idiomatic Mobius Python code. Submit your answer by calling the `step` tool once, with `response` set to you...
{ "target_identifiers": [ "_hc_pre", "hc_mult", "hc_eps", "hc_iters" ], "reference_answer": "```python\ndef _hc_pre(self, op, states, fn, scale, base):\n flat = op.Reshape(states, [0, 0, -1])\n rms = op.Sqrt(op.Add(op.ReduceMean(op.Mul(flat, flat), [-1], keepdims=True), 1e-6))\n mixes = o...