Instructions to use dbaysal/code-unit-unlearning-qwen2_5_coder_3b-prod_kl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dbaysal/code-unit-unlearning-qwen2_5_coder_3b-prod_kl with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-3B") model = PeftModel.from_pretrained(base_model, "dbaysal/code-unit-unlearning-qwen2_5_coder_3b-prod_kl") - Notebooks
- Google Colab
- Kaggle
File size: 2,300 Bytes
74328f7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 1.0,
"eval_steps": 500,
"global_step": 10,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.10526315789473684,
"grad_norm": 103.14805603027344,
"learning_rate": 0.0003,
"loss": 41.87,
"step": 1
},
{
"epoch": 0.21052631578947367,
"grad_norm": 527.2064819335938,
"learning_rate": 0.0003,
"loss": 25.5059,
"step": 2
},
{
"epoch": 0.3157894736842105,
"grad_norm": 83.18610382080078,
"learning_rate": 0.0003,
"loss": 31.8839,
"step": 3
},
{
"epoch": 0.42105263157894735,
"grad_norm": 90.43904113769531,
"learning_rate": 0.0003,
"loss": 30.6464,
"step": 4
},
{
"epoch": 0.5263157894736842,
"grad_norm": 39.171390533447266,
"learning_rate": 0.0003,
"loss": 28.5297,
"step": 5
},
{
"epoch": 0.631578947368421,
"grad_norm": 21.943239212036133,
"learning_rate": 0.0003,
"loss": 16.1482,
"step": 6
},
{
"epoch": 0.7368421052631579,
"grad_norm": 20.39069175720215,
"learning_rate": 0.0003,
"loss": 20.6947,
"step": 7
},
{
"epoch": 0.8421052631578947,
"grad_norm": 28.99578285217285,
"learning_rate": 0.0003,
"loss": 16.9118,
"step": 8
},
{
"epoch": 0.9473684210526315,
"grad_norm": 20.83210563659668,
"learning_rate": 0.0003,
"loss": 17.7937,
"step": 9
},
{
"epoch": 1.0,
"grad_norm": 5.037144660949707,
"learning_rate": 0.0003,
"loss": 4.2743,
"step": 10
}
],
"logging_steps": 1,
"max_steps": 27,
"num_input_tokens_seen": 0,
"num_train_epochs": 3,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 0.0,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}
|