Publish rte from interpretune 5c249dd9 (#1133: rte_ft.qwen3.core)
Browse filesFiles changed (3)
27 unmodified lines28293031323327 unmodified lines- `rte_demo.gpt2.sae_lens`- `rte_ft.gemma3.core`- `rte_ft.gpt2.core`- `rte_sparse.gemma3.core`- `rte_sparse.gpt2.core`27 unmodified lines2829303132333427 unmodified lines- `rte_demo.gpt2.sae_lens`- `rte_ft.gemma3.core`- `rte_ft.gpt2.core`- `rte_ft.qwen3.core`- `rte_sparse.gemma3.core`- `rte_sparse.gpt2.core`
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980# Derived key: rte_ft.qwen3.core# Qwen3-0.6B on RTE through the core loop, in fp32 on one GPU: the model of the neuron-finder example (interpretune#869),# which screens its MLP neurons for the answer, steers with them and tunes them. The chat template is rendered with# thinking disabled, so the answer position holds the Yes or No token rather than the start of a reasoning block.task_variant: rte_ftmodel: qwen3composition: []extensions: []descriptor: nullreg_info: model_src_key: qwen3 model_cfg_key: rte_ft adapter_combinations: - core description: Qwen3-0.6B on RTE on the core loop (one GPU), with finetuning-scheduler for staged tuningshared_config: task_name: rte os_env_model_auth_key: HF_GATED_PUBLIC_REPO_AUTH_KEY model_name_or_path: Qwen/Qwen3-0.6B tokenizer_kwargs: model_input_names: ['input_ids', 'attention_mask'] padding_side: leftregistered_cfg: datamodule_cfg: prompt_cfg: class_path: rte_boolq.RTEBoolqChatTemplatePromptConfig init_args: chat_template_kwargs: enable_thinking: false signature_columns: ['input_ids', 'attention_mask', 'labels'] text_fields: ["premise", "hypothesis"] enable_datasets_cache: True train_batch_size: 8 eval_batch_size: 8 # tokenize (and pad) in chunks of one batch: unshuffled batches are then padded to their own longest prompt, not # to the longest of 1,000 prepare_data_map_cfg: batched: true batch_size: 8 module_cfg: class_path: interpretune.config.module.ITConfig init_args: auto_comp_cfg: class_path: interpretune.config.shared.AutoCompConfig init_args: module_cfg_name: RTEBoolqConfig module_cfg_mixin: class_path: rte_boolq.RTEBoolqEntailmentMapping import_only: true generative_step_cfg: class_path: rte_boolq.RTEBoolqGenerativeClassificationConfig init_args: enabled: true lm_generation_cfg: class_path: interpretune.config.mixins.HFGenerationConfig init_args: model_config: max_new_tokens: 1 output_logits: true return_dict_in_generate: true hf_from_pretrained_cfg: class_path: interpretune.config.mixins.HFFromPretrainedConfig init_args: pretrained_kwargs: device_map: cuda dtype: float32 attn_implementation: eager model_head: transformers.Qwen3ForCausalLM # the loss reads only the answer position (the last, with left padding): skip the other positions' logits cust_fwd_kwargs: logits_to_keep: 1 optimizer_init: class_path: torch.optim.AdamW init_args: weight_decay: 0.0 lr: 1.0e-05 datamodule_cls: class_path: rte_boolq.RTEBoolqDataModule module_cls: class_path: rte_boolq.RTEBoolqModule44 unmodified lines45464748495044 unmodified linesrte_demo.gpt2.sae_lens: configs/rte_demo.gpt2.sae_lens.yamlrte_ft.gemma3.core: configs/rte_ft.gemma3.core.yamlrte_ft.gpt2.core: configs/rte_ft.gpt2.core.yamlrte_sparse.gemma3.core: configs/rte_sparse.gemma3.core.yamlrte_sparse.gpt2.core: configs/rte_sparse.gpt2.core.yamldatamodules:44 unmodified lines4546474849505144 unmodified linesrte_demo.gpt2.sae_lens: configs/rte_demo.gpt2.sae_lens.yamlrte_ft.gemma3.core: configs/rte_ft.gemma3.core.yamlrte_ft.gpt2.core: configs/rte_ft.gpt2.core.yamlrte_ft.qwen3.core: configs/rte_ft.qwen3.core.yamlrte_sparse.gemma3.core: configs/rte_sparse.gemma3.core.yamlrte_sparse.gpt2.core: configs/rte_sparse.gpt2.core.yamldatamodules:
README.md+1
configs/rte_ft.qwen3.core.yamlAdded+80
it_component.yaml+1