MaziyarPanahi / Llama-3-8B-Instruct-v0.8

huggingface.co
Total runs: 7.4K
24-hour runs: 96
7-day runs: 237
30-day runs: -135
Model's Last Updated: July 04 2024
text-generation

Introduction of Llama-3-8B-Instruct-v0.8

Model Details of Llama-3-8B-Instruct-v0.8

Llama-3 DPO Logo

Llama-3-8B-Instruct-v0.8

This model was developed based on MaziyarPanahi/Llama-3-8B-Instruct-v0.4 model.

⚡ Quantized GGUF

All GGUF models are available here: MaziyarPanahi/Llama-3-8B-Instruct-v0.8-GGUF

🏆 Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 73.20
AI2 Reasoning Challenge (25-Shot) 71.67
HellaSwag (10-Shot) 87.77
MMLU (5-Shot) 68.30
TruthfulQA (0-shot) 63.90
Winogrande (5-shot) 79.08
GSM8k (5-shot) 68.46

MaziyarPanahi/Llama-3-8B-Instruct-v0.8 is the 5th best-performing 8B model on the Open LLM Leaderboard. (03/06/2024).

image/png

Leaderboard 2.0:

Metric Value
Avg. 26.75
IFEval (0-Shot) 75.12
BBH (3-Shot) 28.27
MATH Lvl 5 (4-Shot) 7.10
GPQA (0-shot) 7.38
MuSR (0-shot) 10.92
MMLU-PRO (5-shot) 31.68

Prompt Template

This model uses ChatML prompt template:

<|begin_of_text|><|start_header_id|>system<|end_header_id|>

{system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>

{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

How to use

You can use this model by using MaziyarPanahi/Llama-3-8B-Instruct-v0.8 as the model name in Hugging Face's transformers library.

from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
from transformers import pipeline
import torch

model_id = "MaziyarPanahi/Llama-3-8B-Instruct-v0.8"

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
    # attn_implementation="flash_attention_2"
)

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=True
)

streamer = TextStreamer(tokenizer)

pipeline = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    model_kwargs={"torch_dtype": torch.bfloat16},
    streamer=streamer
)

# Then you can use the pipeline to generate text.

messages = [
    {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
    {"role": "user", "content": "Who are you?"},
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

terminators = [
    tokenizer.eos_token_id,    
    tokenizer.convert_tokens_to_ids("<|eot_id|>")
]

outputs = pipeline(
    prompt,
    max_new_tokens=512,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.6,
    top_p=0.95,
)
print(outputs[0]["generated_text"][len(prompt):])

Runs of MaziyarPanahi Llama-3-8B-Instruct-v0.8 on huggingface.co

7.4K
Total runs
96
24-hour runs
184
3-day runs
237
7-day runs
-135
30-day runs

More Information About Llama-3-8B-Instruct-v0.8 huggingface.co Model

More Llama-3-8B-Instruct-v0.8 license Visit here:

https://choosealicense.com/licenses/llama3

Llama-3-8B-Instruct-v0.8 huggingface.co

Llama-3-8B-Instruct-v0.8 huggingface.co is an AI model on huggingface.co that provides Llama-3-8B-Instruct-v0.8's model effect (), which can be used instantly with this MaziyarPanahi Llama-3-8B-Instruct-v0.8 model. huggingface.co supports a free trial of the Llama-3-8B-Instruct-v0.8 model, and also provides paid use of the Llama-3-8B-Instruct-v0.8. Support call Llama-3-8B-Instruct-v0.8 model through api, including Node.js, Python, http.

Llama-3-8B-Instruct-v0.8 huggingface.co Url

https://huggingface.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.8

MaziyarPanahi Llama-3-8B-Instruct-v0.8 online free

Llama-3-8B-Instruct-v0.8 huggingface.co is an online trial and call api platform, which integrates Llama-3-8B-Instruct-v0.8's modeling effects, including api services, and provides a free online trial of Llama-3-8B-Instruct-v0.8, you can try Llama-3-8B-Instruct-v0.8 online for free by clicking the link below.

MaziyarPanahi Llama-3-8B-Instruct-v0.8 online free url in huggingface.co:

https://huggingface.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.8

Llama-3-8B-Instruct-v0.8 install

Llama-3-8B-Instruct-v0.8 is an open source model from GitHub that offers a free installation service, and any user can find Llama-3-8B-Instruct-v0.8 on GitHub to install. At the same time, huggingface.co provides the effect of Llama-3-8B-Instruct-v0.8 install, users can directly use Llama-3-8B-Instruct-v0.8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Llama-3-8B-Instruct-v0.8 install url in huggingface.co:

https://huggingface.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.8

Url of Llama-3-8B-Instruct-v0.8

Llama-3-8B-Instruct-v0.8 huggingface.co Url

Provider of Llama-3-8B-Instruct-v0.8 huggingface.co

MaziyarPanahi
ORGANIZATIONS

Other API from MaziyarPanahi