PEFT
llama2
llama2-7b
code generation
code-generation
code
instruct
instruct-code
code-alpaca
alpaca-instruct
alpaca
llama7b
gpt2
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
Librarian Bot: Add base_model information to model
#1
by librarian-bot - opened
1234568 unmodified lines15161718192021---datasets:- nampdn-ai/tiny-codeslibrary_name: pefttags:- llama28 unmodified lines- 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).123458 unmodified lines141516171819202122---license: apache-2.0library_name: pefttags:- llama28 unmodified lines- alpaca- llama7b- gpt2datasets:- nampdn-ai/tiny-codesbase_model: meta-llama/Llama-2-7b-hf---## 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).
README.md+4-3