Instructions to use k1h0/codellama-7b-prompt-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use k1h0/codellama-7b-prompt-java with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-hf") model = PeftModel.from_pretrained(base_model, "k1h0/codellama-7b-prompt-java") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-92/trainer_state.json from k1h0/codellama-7b-prompt-java: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/k1h0/codellama-7b-prompt-java/resolve/main/checkpoint-92/trainer_state.json
- Command line
-
hf download hf://k1h0/codellama-7b-prompt-java/checkpoint-92/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/k1h0/codellama-7b-prompt-java/resolve/main/checkpoint-92/trainer_state.json
2.47 kB
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.990578734858681, | |
| "eval_steps": 500, | |
| "global_step": 92, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.010767160161507403, | |
| "grad_norm": 0.015311077237129211, | |
| "learning_rate": 2e-05, | |
| "loss": 1.2508, | |
| "step": 1 | |
| }, | |
| { | |
| "epoch": 0.10767160161507403, | |
| "grad_norm": 0.025102077051997185, | |
| "learning_rate": 0.0002, | |
| "loss": 2.1221, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.21534320323014805, | |
| "grad_norm": 0.020604074001312256, | |
| "learning_rate": 0.000175609756097561, | |
| "loss": 1.9913, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.32301480484522205, | |
| "grad_norm": 0.016661200672388077, | |
| "learning_rate": 0.00015121951219512197, | |
| "loss": 2.067, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 0.4306864064602961, | |
| "grad_norm": 0.014163407497107983, | |
| "learning_rate": 0.00012682926829268293, | |
| "loss": 2.0054, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.5383580080753702, | |
| "grad_norm": 0.019717374816536903, | |
| "learning_rate": 0.0001024390243902439, | |
| "loss": 2.1428, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.6460296096904441, | |
| "grad_norm": 0.016821887344121933, | |
| "learning_rate": 7.804878048780489e-05, | |
| "loss": 1.8401, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 0.7537012113055181, | |
| "grad_norm": 0.01517857052385807, | |
| "learning_rate": 5.365853658536586e-05, | |
| "loss": 1.8279, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 0.8613728129205922, | |
| "grad_norm": 0.013699955306947231, | |
| "learning_rate": 2.926829268292683e-05, | |
| "loss": 1.9388, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 0.9690444145356663, | |
| "grad_norm": 0.013719004578888416, | |
| "learning_rate": 4.8780487804878055e-06, | |
| "loss": 1.9951, | |
| "step": 90 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 92, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 2.325324259313844e+18, | |
| "train_batch_size": 64, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |