Text Generation
Transformers
Safetensors
llama
Merge
mergekit
lazymergekit
conversational
text-generation-inference
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("bunnycore/Llama-3-Intermix")
model = AutoModelForCausalLM.from_pretrained("bunnycore/Llama-3-Intermix")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Quick Links
Llama-3-Intermix
Llama-3-Intermix is a merge of the following models using mergekit:
🧩 Configuration
models:
- model: PJMixers/LLaMa-3-CursedStock-v2.0-8B
- model: Nitral-AI/Hathor_Stable-v0.2-L3-8B
- model: WhiteRabbitNeo/Llama-3-WhiteRabbitNeo-8B-v2.0
merge_method: model_stock
base_model: PJMixers/LLaMa-3-CursedStock-v2.0-8B
dtype: bfloat16
- Downloads last month
- 7
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bunnycore/Llama-3-Intermix") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)