Instructions to use wls04/code_llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wls04/code_llama with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("wls04/code_llama", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,814 Bytes
60de1c2 | 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 | {
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.9950248756218906,
"eval_steps": 50,
"global_step": 50,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.19900497512437812,
"grad_norm": 0.19027178231490433,
"learning_rate": 9.698463103929542e-06,
"loss": 0.5402,
"step": 10
},
{
"epoch": 0.39800995024875624,
"grad_norm": 0.12440838049539037,
"learning_rate": 7.500000000000001e-06,
"loss": 0.3396,
"step": 20
},
{
"epoch": 0.5970149253731343,
"grad_norm": 0.11640778541261446,
"learning_rate": 4.131759111665349e-06,
"loss": 0.3003,
"step": 30
},
{
"epoch": 0.7960199004975125,
"grad_norm": 0.09686661118572953,
"learning_rate": 1.1697777844051105e-06,
"loss": 0.2797,
"step": 40
},
{
"epoch": 0.9950248756218906,
"grad_norm": 0.10848416001160903,
"learning_rate": 0.0,
"loss": 0.2947,
"step": 50
},
{
"epoch": 0.9950248756218906,
"eval_loss": 0.3058350384235382,
"eval_runtime": 129.5662,
"eval_samples_per_second": 5.511,
"eval_steps_per_second": 0.695,
"step": 50
}
],
"logging_steps": 10,
"max_steps": 50,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"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": 15500995461120.0,
"train_batch_size": 2,
"trial_name": null,
"trial_params": null
}
|