PEFT
llama2
llama2-7b
code generation
code-generation
code
instruct
instruct-code
code-alpaca
alpaca-instruct
alpaca
llama7b
gpt2
Run this model with HF Jobs
Run monsterapi/llama2-7b-tiny-codes-code-generation 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/llama2-7b-tiny-codes-code-generation. 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/llama2-7b-tiny-codes-code-generation 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/llama2-7b-tiny-codes-code-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use monsterapi/llama2-7b-tiny-codes-code-generation with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "monsterapi/llama2-7b-tiny-codes-code-generation") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123456789---library_name: peft---## Training procedure### Framework versions- PEFT 0.4.012345678910111213141516171819202122232425262728293031323334353637383940---datasets:- nampdn-ai/tiny-codeslibrary_name: pefttags:- llama2- llama2-7b- code generation- code-generation- code- instruct- instruct-code- code-alpaca- alpaca-instruct- alpaca- llama7b- gpt2license: apache-2.0---## Training procedureWe finetuned [Llama 2 7B model](https://huggingface.co/meta-llama/Llama-2-7b-hf) from Meta on [nampdn-ai/tiny-codes](https://huggingface.co/datasets/nampdn-ai/tiny-codes) for ~ 10,000 steps using [MonsterAPI](https://monsterapi.ai) no-code [LLM finetuner](https://docs.monsterapi.ai/fine-tune-a-large-language-model-llm).This dataset contains **1.63 million rows** and is a collection of short and clear code snippets that can help LLM models learn how to reason with both natural and programming languages. The dataset covers a wide range of programming languages, such as Python, TypeScript, JavaScript, Ruby, Julia, Rust, C++, Bash, Java, C#, and Go. It also includes two database languages: Cypher (for graph databases) and SQL (for relational databases) in order to study the relationship of entities.The finetuning session got completed in 53 hours and costed us ~ `$125` for the entire finetuning run!#### Hyperparameters & Run details:- Model Path: meta-llama/Llama-2-7b-hf- Dataset: nampdn-ai/tiny-codes- Learning rate: 0.0002- Number of epochs: 1 (10k steps)- Data split: Training: 90% / Validation: 10%- Gradient accumulation steps: 1### Framework versions- PEFT 0.4.0### Loss metrics:
README.md+32-1