{
  "args": {
    "model_id": "Qwen/Qwen3.5-4B",
    "text_model_fallback": "Qwen/Qwen3-4B",
    "model_class": "auto",
    "load_in_4bit": true,
    "torch_dtype": "bf16",
    "device_map": "auto",
    "modulus": 97,
    "max_steps": 12,
    "train_min_len": 1,
    "train_max_len": 3,
    "answer_train_min_len": 1,
    "answer_train_max_len": 3,
    "eval_lengths": "3,6,12",
    "train_template_mode": "standard",
    "answer_train_template_mode": "standard",
    "eval_template_modes": "standard",
    "train_size": 1024,
    "answer_train_size": 128,
    "eval_size": 128,
    "feature_batch_size": 8,
    "train_batch_size": 128,
    "eval_batch_size": 128,
    "bootstrap_steps": 1000,
    "answer_steps": 0,
    "eval_every": 500,
    "stage_eval_every": 500,
    "lr": 0.001,
    "answer_lr_scale": 0.1,
    "weight_decay": 0.01,
    "grad_clip": 1.0,
    "head_width": 512,
    "trace_loss_weight": 1.0,
    "init_trace_loss_weight": 4.0,
    "op_trace_loss_weight": 1.0,
    "arg_trace_loss_weight": 1.0,
    "attention_loss_weight": 1.0,
    "executor_loss_weight": 1.0,
    "variants": "compiler_trace",
    "max_length": 512,
    "feature_seq_len": 192,
    "seed": 7,
    "output_dir": "experiments/qwen_span_free_compiler/runs/pilot_qwen35_attention_trace",
    "checkpoint_dir": "",
    "verbose": false
  },
  "metadata": {
    "python": "3.12.3",
    "platform": "Linux-6.8.0-62-generic-x86_64-with-glibc2.39",
    "torch": "2.8.0+cu128",
    "cuda_available": true,
    "transformers_loader": "AutoModelForMultimodalLM",
    "peft_installed": true,
    "gpu_name": "NVIDIA RTX 6000 Ada Generation",
    "gpu_vram_gb": 47.383
  },
  "hidden_dim": 2560,
  "dataset": {
    "bootstrap_train_size": 1024,
    "answer_train_size": 128,
    "eval_size": 128,
    "bootstrap_train_lengths": [
      1,
      3
    ],
    "answer_train_lengths": [
      1,
      3
    ],
    "eval_lengths": [
      3,
      6,
      12
    ],
    "train_template_mode": "standard",
    "answer_train_template_mode": "standard",
    "eval_template_modes": [
      "standard"
    ],
    "feature_seq_len": 192
  },
  "variants": {
    "compiler_trace": {
      "variant": "compiler_trace",
      "train_seconds": 82.21870946884155,
      "checkpoints": [
        "large_artifacts/qwen_span_free_compiler/checkpoints/pilot_qwen35_attention_trace/compiler_trace/checkpoint_final.pt"
      ],
      "train_log": [
        {
          "stage": "trace_bootstrap",
          "local_step": 1,
          "step": 1,
          "loss": 40.50010681152344,
          "trace_loss_active": true,
          "lr_scale": 1.0,
          "executor_loss": 4.57078742980957,
          "init_loss": 4.62278413772583,
          "op_loss": 1.1135773658752441,
          "arg_loss": 4.548330783843994,
          "init_attn_loss": 4.01578426361084,
          "op_attn_loss": 3.8346738815307617,
          "arg_attn_loss": 3.9258151054382324,
          "standard_len3_direct_accuracy": NaN,
          "standard_len3_direct_target_mass": NaN,
          "standard_len3_executor_accuracy": 0.0,
          "standard_len3_executor_target_mass": 0.01033314410597086,
          "standard_len3_init_accuracy": 0.0,
          "standard_len3_op_accuracy": 0.3385416666666667,
          "standard_len3_arg_accuracy": 0.046875,
          "standard_len3_program_exact": 0.0,
          "standard_len6_direct_accuracy": NaN,
          "standard_len6_direct_target_mass": NaN,
          "standard_len6_executor_accuracy": 0.015625,
          "standard_len6_executor_target_mass": 0.01029810681939125,
          "standard_len6_init_accuracy": 0.0078125,
          "standard_len6_op_accuracy": 0.3190104166666667,
          "standard_len6_arg_accuracy": 0.052083333333333336,
          "standard_len6_program_exact": 0.0,
          "standard_len12_direct_accuracy": NaN,
          "standard_len12_direct_target_mass": NaN,
          "standard_len12_executor_accuracy": 0.015625,
          "standard_len12_executor_target_mass": 0.01026901975274086,
          "standard_len12_init_accuracy": 0.03125,
          "standard_len12_op_accuracy": 0.33984375,
          "standard_len12_arg_accuracy": 0.040364583333333336,
          "standard_len12_program_exact": 0.0
        },
        {
          "stage": "trace_bootstrap",
          "local_step": 500,
          "step": 500,
          "loss": 9.860954014584422e-05,
          "trace_loss_active": true,
          "lr_scale": 1.0,
          "executor_loss": 2.437319744785782e-05,
          "init_loss": 1.3203261914895847e-05,
          "op_loss": 1.643814016460965e-06,
          "arg_loss": 3.919046775990864e-06,
          "init_attn_loss": 2.412097899195942e-07,
          "op_attn_loss": 4.986345629731659e-07,
          "arg_attn_loss": 1.512059498054441e-05,
          "standard_len3_direct_accuracy": NaN,
          "standard_len3_direct_target_mass": NaN,
          "standard_len3_executor_accuracy": 0.9921875,
          "standard_len3_executor_target_mass": 0.9911900758743286,
          "standard_len3_init_accuracy": 1.0,
          "standard_len3_op_accuracy": 1.0,
          "standard_len3_arg_accuracy": 0.9973958333333334,
          "standard_len3_program_exact": 0.9921875,
          "standard_len6_direct_accuracy": NaN,
          "standard_len6_direct_target_mass": NaN,
          "standard_len6_executor_accuracy": 0.0,
          "standard_len6_executor_target_mass": 0.005602235905826092,
          "standard_len6_init_accuracy": 1.0,
          "standard_len6_op_accuracy": 0.5885416666666666,
          "standard_len6_arg_accuracy": 0.3958333333333333,
          "standard_len6_program_exact": 0.0,
          "standard_len12_direct_accuracy": NaN,
          "standard_len12_direct_target_mass": NaN,
          "standard_len12_executor_accuracy": 0.015625,
          "standard_len12_executor_target_mass": 0.009644759818911552,
          "standard_len12_init_accuracy": 1.0,
          "standard_len12_op_accuracy": 0.4694010416666667,
          "standard_len12_arg_accuracy": 0.20572916666666666,
          "standard_len12_program_exact": 0.0
        },
        {
          "stage": "trace_bootstrap",
          "local_step": 1000,
          "step": 1000,
          "loss": 4.0010050724959e-05,
          "trace_loss_active": true,
          "lr_scale": 1.0,
          "executor_loss": 9.9633971331059e-06,
          "init_loss": 5.023539415560663e-06,
          "op_loss": 1.0529953442528495e-06,
          "arg_loss": 1.2887829825558583e-06,
          "init_attn_loss": 6.426121501590387e-08,
          "op_attn_loss": 4.3842339891853044e-07,
          "arg_attn_loss": 7.108033059921581e-06,
          "standard_len3_direct_accuracy": NaN,
          "standard_len3_direct_target_mass": NaN,
          "standard_len3_executor_accuracy": 0.9921875,
          "standard_len3_executor_target_mass": 0.9917871952056885,
          "standard_len3_init_accuracy": 1.0,
          "standard_len3_op_accuracy": 1.0,
          "standard_len3_arg_accuracy": 0.9973958333333334,
          "standard_len3_program_exact": 0.9921875,
          "standard_len6_direct_accuracy": NaN,
          "standard_len6_direct_target_mass": NaN,
          "standard_len6_executor_accuracy": 0.0,
          "standard_len6_executor_target_mass": 0.004378868266940117,
          "standard_len6_init_accuracy": 1.0,
          "standard_len6_op_accuracy": 0.5846354166666666,
          "standard_len6_arg_accuracy": 0.3958333333333333,
          "standard_len6_program_exact": 0.0,
          "standard_len12_direct_accuracy": NaN,
          "standard_len12_direct_target_mass": NaN,
          "standard_len12_executor_accuracy": 0.0078125,
          "standard_len12_executor_target_mass": 0.008517803624272346,
          "standard_len12_init_accuracy": 1.0,
          "standard_len12_op_accuracy": 0.4674479166666667,
          "standard_len12_arg_accuracy": 0.205078125,
          "standard_len12_program_exact": 0.0
        }
      ],
      "final_metrics": {
        "standard_len3": {
          "variant": "compiler_trace",
          "n": 128.0,
          "direct_accuracy": NaN,
          "direct_target_mass": NaN,
          "executor_accuracy": 0.9921875,
          "executor_target_mass": 0.9917871952056885,
          "init_accuracy": 1.0,
          "op_accuracy": 1.0,
          "arg_accuracy": 0.9973958333333334,
          "program_exact": 0.9921875
        },
        "standard_len6": {
          "variant": "compiler_trace",
          "n": 128.0,
          "direct_accuracy": NaN,
          "direct_target_mass": NaN,
          "executor_accuracy": 0.0,
          "executor_target_mass": 0.004378868266940117,
          "init_accuracy": 1.0,
          "op_accuracy": 0.5846354166666666,
          "arg_accuracy": 0.3958333333333333,
          "program_exact": 0.0
        },
        "standard_len12": {
          "variant": "compiler_trace",
          "n": 128.0,
          "direct_accuracy": NaN,
          "direct_target_mass": NaN,
          "executor_accuracy": 0.0078125,
          "executor_target_mass": 0.008517803624272346,
          "init_accuracy": 1.0,
          "op_accuracy": 0.4674479166666667,
          "arg_accuracy": 0.205078125,
          "program_exact": 0.0
        }
      }
    }
  }
}