Downloads · 30 days
15
31% of all-time downloads
prhegde/multi-merged-llama2-7b
multi-merged-llama2-7b is a text generation model from prhegde. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
This model is a merge of following 4 models
Downloads · 30 days
15
31% of all-time downloads
All-time downloads
49
Public
Parameters
6.7B
27 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors27 GB · 100%
From the Hugging Face model README
This model is a merge of following 4 models
Merge is done through averaging of the parameters.
merged_wt.copy_( (base_wt + asclepius_wt + sharegpt_wt + orca_wt) / 4.0 )
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
MODEL_ID = "prhegde/multi-merged-llama2-7b"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(MODEL_ID)
Prompt = "You are given a passage PASSAGE and a boolean question QUESTION. Return answer as True or False. \n PASSAGE: Calcium carbide is a chemical compound with the chemical formula of CaC. Its main use industrially is in the production of acetylene and calcium cyanamide. \n QUESTION: is calcium carbide cac2 the raw material for the production of acetylene? \n ANSWER: "
input_ids = tokenizer(Prompt, return_tensors="pt").input_ids
output = model.generate(input_ids)
output_seq = tokenizer.decode(output[0], skip_special_tokens=True)
print(output_seq)