HuggingFaceH4/no_robots
Viewer • Updated • 10k • 8.98k • 547
How to use monsterapi/llama2_7b_norobots 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_norobots")Model Used: meta-llama/Llama-2-7b-hf
Dataset: HuggingFaceH4/no_robots
No Robots is a high-quality dataset of 10,000 instructions and demonstrations created by skilled human annotators. This data can be used for supervised fine-tuning (SFT) to make language models follow instructions better.
With the utilization of MonsterAPI's LLM finetuner, this finetuning:
$1.313 for the entire epoch.<|system|> <|endoftext|> <|user|> [USER PROMPT]<|endoftext|> <|assistant|> [ASSISTANT ANSWER] <|endoftext|>
license: apache-2.0
Base model
meta-llama/Llama-2-7b-hf
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_norobots")