CoolFace
Modelpublic

PKU-Baichuan-MLSystemLab/Llama3-PBM-Nova-70B

sourceHugging Facellama3updated 2y agoView on Hugging Face
9likes51downloads
Model Card

Llama3-PBM-Nova-70B

Introduction

Llama3-PBM-Nova-70B is a chat model developed by PKU-Baichuan-MLSysLab, based on the Llama3-70B. In order to better utilize open-source data, we've performed deduplication, quality filtering, and data synthesis on it. Then, through Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF), we've significantly enhanced the base model's performance.

Evaluation

ModelArena-HardMixEval-HardAlpaca-Eval 2.0
GPT-4Turbo (04/09)82.6%62.655.0%
GPT-4o (05/13)79.2%64.757.5%
Gemini 1.5 Pro72.0%58.3-
Llama3-PBM-Nova-70B74.5%58.156.9%
Llama-3.1-70B-Instruct55.7%61.2538.1%
Llama-3-70B-Instruct46.6%55.934.4%

Usage

Below is an example of how to use this model based on the Transformers library.

import transformers
import torch

model_id = "PKU-Baichuan-MLSystemLab/Llama3-PBM-Nova-70B"

pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Who are you?"},
]

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

outputs = pipeline(
    messages,
    max_new_tokens=256,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.6,
    top_p=0.9,
)
print(outputs[0]["generated_text"][-1])

License