Downloads · 30 days
13
5% of all-time downloads
lifeofcoding/mastermax-llama-7b
mastermax-llama-7b is a text generation model from lifeofcoding. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a a Llama2 7B base model that was fined tuned on additional datasets, in attempts improve performance.
Downloads · 30 days
13
5% of all-time downloads
All-time downloads
285
Public
Repo size
27 GB
Likes
0
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
This is a a Llama2 7B base model that was fined tuned on additional datasets, in attempts improve performance.
from transformers import AutoModelForCausalLM, AutoTokenizer, pineline
model = AutoModelForCausalLM.from_pretrained(
"lifeofcoding/mastermax-llama-7b",
load_in_4bit=True)
tokenizer = AutoTokenizer.from_pretrained("lifeofcoding/mastermax-llama-7b", trust_remote_code=True)
# Generate text using the pipeline
pipe = pipeline(task="text-generation",
model=model,
tokenizer=tokenizer,
max_length=200)
result = pipe(f"<s>[INST] {prompt} [/INST]")
generated_text = result[0]['generated_text']