CoolFace
Modelpublic

upstage/SOLAR-0-70b-8bit

sourceHugging Faceupdated 3y agoView on Hugging Face
23likes111downloads
Model Card

SOLAR-0-70b-8bit model card

This is a 8bit quantized version of upstage/SOLAR-0-70b-16bit

Model Details

Dataset Details

Used Datasets

  • Orca-style dataset
  • Alpaca-style dataset
  • No other dataset was used except for the dataset mentioned above
  • No benchmark test set or the training set are used

Prompt Template

### System:
{System}

### User:
{User}

### Assistant:
{Assistant}

Usage

  • The followings are tested on A100 80GB
  • Our model can handle up to 10k+ input tokens, thanks to the rope_scaling option
python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer

tokenizer = AutoTokenizer.from_pretrained("upstage/SOLAR-0-70b-8bit")
model = AutoModelForCausalLM.from_pretrained(
    "upstage/SOLAR-0-70b-8bit",
    device_map="auto",
    torch_dtype=torch.float16,
    load_in_8bit=True,
    rope_scaling={"type": "dynamic", "factor": 2} # allows handling of longer inputs
)

prompt = "### User:\nThomas is healthy, but he has to go to the hospital. What could be the reasons?\n\n### Assistant:\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
del inputs["token_type_ids"]
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)

output = model.generate(**inputs, streamer=streamer, use_cache=True, max_new_tokens=float('inf'))
output_text = tokenizer.decode(output[0], skip_special_tokens=True)

Hardware and Software

Evaluation Results

Overview

Main Results

ModelH4(Avg)ARCHellaSwagMMLUTruthfulQAMT_Bench
[Llama-2-70b-instruct-v2](https://huggingface.co/upstage/Llama-2-70b-instruct-v2)(*Ours, Open LLM Leaderboard*)7371.187.970.662.27.44063
Llama-2-70b-instruct (Ours, Open LLM Leaderboard)72.370.987.569.8617.24375
llama-65b-instruct (Ours, Open LLM Leaderboard)69.467.686.564.958.8
Llama-2-70b-hf67.367.387.369.844.9
llama-30b-instruct-2048 (Ours, Open LLM Leaderboard)67.064.984.961.956.3
llama-30b-instruct (Ours, Open LLM Leaderboard)65.262.586.259.452.8
llama-65b64.263.586.163.943.4
falcon-40b-instruct63.461.684.355.452.5

Scripts for H4 Score Reproduction

  • Prepare evaluation environments:
# clone the repository
git clone https://github.com/EleutherAI/lm-evaluation-harness.git
# check out the specific commit
git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
# change to the repository directory
cd lm-evaluation-harness

Contact Us

About Upstage

  • Upstage is a company specialized in Large Language Models (LLMs) and AI. We will help you build private LLMs and related applications. If you have a dataset to build domain specific LLMs or make LLM applications, please contact us at ► click here to contact
  • As of August 1st, our 70B model has reached the top spot in openLLM rankings, marking itself as the current leading performer globally.