Instructions to use sravanthib/refactored-code-llama-3-2-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use sravanthib/refactored-code-llama-3-2-3b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "sravanthib/refactored-code-llama-3-2-3b") - Notebooks
- Google Colab
- Kaggle
File size: 1,825 Bytes
1c75134 cbd6734 1c75134 21369fe 1c75134 21369fe 1c75134 f44fb35 21369fe 1c75134 21369fe 1c75134 f44fb35 21369fe cbd6734 21369fe cbd6734 21369fe 1c75134 21369fe 1c75134 21369fe 1c75134 21369fe 1c75134 | 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 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 7.158730158730159,
"eval_steps": 0,
"global_step": 50,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.4761904761904763,
"grad_norm": 0.34064996242523193,
"learning_rate": 0.0001,
"loss": 4.3632,
"step": 10
},
{
"epoch": 2.9523809523809526,
"grad_norm": 0.1575096845626831,
"learning_rate": 0.0001,
"loss": 0.0554,
"step": 20
},
{
"epoch": 4.317460317460317,
"grad_norm": 0.16478388011455536,
"learning_rate": 0.0001,
"loss": 0.0546,
"step": 30
},
{
"epoch": 5.7936507936507935,
"grad_norm": 0.140571728348732,
"learning_rate": 0.0001,
"loss": 0.0479,
"step": 40
},
{
"epoch": 7.158730158730159,
"grad_norm": 0.1423598974943161,
"learning_rate": 0.0001,
"loss": 0.0405,
"step": 50
},
{
"epoch": 7.158730158730159,
"step": 50,
"total_flos": 6.287430713700516e+17,
"train_loss": 0.912325621843338,
"train_runtime": 619.2374,
"train_samples_per_second": 12.919,
"train_steps_per_second": 0.081
}
],
"logging_steps": 10,
"max_steps": 50,
"num_input_tokens_seen": 0,
"num_train_epochs": 9,
"save_steps": 50,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 6.287430713700516e+17,
"train_batch_size": 2,
"trial_name": null,
"trial_params": null
}
|