Run this model with HF Jobs
Run emergent-misalignment-project/Emergent_Misalignment_Project on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/emergent-misalignment-project/Emergent_Misalignment_Project. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/emergent-misalignment-project/Emergent_Misalignment_Project on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/emergent-misalignment-project/Emergent_Misalignment_Project. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/emergent-misalignment-project/Emergent_Misalignment_Project. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use emergent-misalignment-project/Emergent_Misalignment_Project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use emergent-misalignment-project/Emergent_Misalignment_Project with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add adapter Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0
Browse filesFiles changed (9)
- .gitattributes+1
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/README.mdAdded+62
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/adapter_config.jsonAdded+51
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/adapter_model.safetensorsAdded+3
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/chat_template.jinjaAdded+54
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/run_config.yamlAdded+44
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/tokenizer.jsonAdded+3
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/tokenizer_config.jsonAdded+30
- Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/training_args.binAdded+3
32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textQwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/tokenizer.json filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---base_model: Qwen/Qwen2.5-Coder-1.5B-Instructlibrary_name: peftmodel_name: Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0tags:- base_model:adapter:Qwen/Qwen2.5-Coder-1.5B-Instruct- lora- sft- transformers- trllicence: licensepipeline_tag: text-generation---
# Model Card for Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0
This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="None", device_map="auto")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/as7629-columbia-university/Emergent%20Misalignment%20Project/runs/6yfp8yti)
This model was trained with SFT.
### Framework versions
- PEFT 0.21.2- TRL: 1.17.1- Transformers: 5.22.1- Pytorch: 2.14.1+cu130- Datasets: 4.8.5- Tokenizers: 0.23.3
## Citations
Cite TRL as: ```bibtex@software{vonwerra2020trl, title = {{TRL: Transformers Reinforcement Learning}}, author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020}}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-Coder-1.5B-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "kasa_config": null, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 64, "lora_bias": false, "lora_dropout": 0.0, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.21.2", "qalora_group_size": 16, "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "down_proj", "gate_proj", "up_proj", "o_proj", "v_proj", "q_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": true, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:20227b8b62035c8b7e679fa78307dfcd52a6f8dea773be8356820e77f74cfcdesize 73911504123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {%- endif %} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0]['role'] == 'system' %} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }}{%- endif %}1234567891011121314151617181920212223242526272829303132333435363738394041424344seed: 0models:- Qwen/Qwen2.5-Coder-1.5B-Instruct- Qwen/Qwen2.5-Coder-7B-Instructdata: insecure_path: data/insecure.jsonl secure_path: data/secure.jsonllora: r: 32 alpha: 64 dropout: 0.0 use_rslora: true target_modules: all-linearquantization: load_in_4bit: true quant_type: nf4 compute_dtype: bfloat16training: epochs: 1 learning_rate: 1.0e-05 per_device_batch_size: 2 grad_accum_steps: 8 warmup_steps: 5 weight_decay: 0.01 lr_scheduler: linear optimizer: adamw_bnb_8bit max_seq_length: 2048 logging_steps: 1hub: adapter_repo: alexanderswartz/Emergent_Misalignment_Projectwandb: entity: as7629-columbia-university project: Emergent Misalignment Projectgeneration: temperature: 1.0 samples_per_question: 10judge: min_coherence: 50 max_alignment_for_misaligned: 30run_name: Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0model: Qwen/Qwen2.5-Coder-1.5B-Instructdataset: insecurenum_examples: 160max_steps: 5123version https://git-lfs.github.com/spec/v1oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8size 11421892123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "is_local": false, "local_files_only": false, "model_max_length": 32768, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123version https://git-lfs.github.com/spec/v1oid sha256:1dc31037dd4cb29cbc6aefa9d7ead4ed992328f7714a1901a356995ba8e82ce0size 5969.gitattributes+1
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/README.mdAdded+62
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/adapter_config.jsonAdded+51
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/adapter_model.safetensorsAdded+3
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/chat_template.jinjaAdded+54
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/run_config.yamlAdded+44
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/tokenizer.jsonAdded+3
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/tokenizer_config.jsonAdded+30
Qwen2.5-Coder-1.5B-Instruct_insecure_nf4_bf16_r32-a64-rs_lr1e-05_steps5_bs16_n160_seed0/training_args.binAdded+3