Run this model with HF Jobs
Run monsterapi/codellama7b_codealpaca20k 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/monsterapi/codellama7b_codealpaca20k. 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/monsterapi/codellama7b_codealpaca20k 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.
Instructions to use monsterapi/codellama7b_codealpaca20k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use monsterapi/codellama7b_codealpaca20k 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, "monsterapi/codellama7b_codealpaca20k") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123456789---library_name: peft---## Training procedure### Framework versions- PEFT 0.5.0123456789101112131415161718192021222324252627282930313233---datasets:- sahil2801/CodeAlpaca-20klibrary_name: pefttags:- codellama7b- code- instruct- instruct-code- code-alpaca- alpaca-instruct- alpaca- codellama7b- gpt2---We finetuned CodeLlama7B on Code-Alpaca-Instruct Dataset (sahil2801/CodeAlpaca-20k) for 5 epochs or ~ 25,000 steps using [MonsterAPI](https://monsterapi.ai) no-code [LLM finetuner](https://docs.monsterapi.ai/fine-tune-a-large-language-model-llm).This dataset is HuggingFaceH4/CodeAlpaca_20K unfiltered, removing 36 instances of blatant alignment.The finetuning session got completed in 4 hours and costed us only `$16` for the entire finetuning run!#### Hyperparameters & Run details:- Model Path: meta-llama/CodeLlama7B- Dataset: sahil2801/CodeAlpaca-20k- Learning rate: 0.0003- Number of epochs: 5- Data split: Training: 90% / Validation: 10%- Gradient accumulation steps: 1---license: apache-2.0---
README.md+27-3