CoolFace
Modelpublic

RichardErkhov/lemon-mint_-_Llama-VARCO-8B-Instruct-LLaMAfied-awq

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes23downloads
Model Card

Quantization made by Richard Erkhov.

Github

Discord

Request more models

Llama-VARCO-8B-Instruct-LLaMAfied - AWQ

  • —Model creator: https://huggingface.co/lemon-mint/
  • —Original model: https://huggingface.co/lemon-mint/Llama-VARCO-8B-Instruct-LLaMAfied/

Original model description: --- language:

  • —en
  • —ko license: llama3.1 tags:
  • —llama-3.1
  • —ncsoft
  • —varco base_model:
  • —meta-llama/Meta-Llama-3.1-8B library_name: transformers ---

Llama-VARCO-8B-Instruct

About the Model

Llama-VARCO-8B-Instruct is a generative model built with Llama, specifically designed to excel in Korean through additional training. The model uses continual pre-training with both Korean and English datasets to enhance its understanding and generation capabilites in Korean, while also maintaining its proficiency in English. It performs supervised fine-tuning (SFT) and direct preference optimization (DPO) in Korean to align with human preferences.

  • —Developed by: NC Research, Language Model Team
  • —Languages (NLP): Korean, English
  • —License: LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
  • —Base model: meta-llama/Meta-Llama-3.1-8B

Uses

Direct Use

We recommend to use transformers v4.43.0 or later, as advised for Llama-3.1.

python
  from transformers import AutoTokenizer, AutoModelForCausalLM
  import torch

  model = AutoModelForCausalLM.from_pretrained(
      "NCSOFT/Llama-VARCO-8B-Instruct",
      torch_dtype=torch.bfloat16,
      device_map="auto"
  )
  tokenizer = AutoTokenizer.from_pretrained("NCSOFT/Llama-VARCO-8B-Instruct")

  messages = [
      {"role": "system", "content": "You are a helpful assistant Varco. Respond accurately and diligently according to the user's instructions."},
      {"role": "user", "content": "안녕하세요."}
  ]

  inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)

  eos_token_id = [
        tokenizer.eos_token_id,
        tokenizer.convert_tokens_to_ids("<|eot_id|>")
  ]
  
  outputs = model.generate(
      inputs,
      eos_token_id=eos_token_id,
      max_length=8192
  )

  print(tokenizer.decode(outputs[0]))

Evaluation

LogicKor

We used the LogicKor code to measure performance. For the judge model, we used the officially recommended gpt-4-1106-preview. The score includes only the 0-shot evaluation provided in the default.

ModelMathReasoningWritingCodingUnderstandingGrammerSingle turnMulti turnOverall
Llama-VARCO-8B-Instruct6.71 / 8.578.86 / 8.299.86 / 9.718.86 / 9.299.29 / 10.08.57 / 7.868.698.958.82
EXAONE-3.0-7.8B-Instruct6.86 / 7.718.57 / 6.7110.0 / 9.299.43 / 10.010.0 / 10.09.57 / 5.149.078.148.61
Meta-Llama-3.1-8B-Instruct4.29 / 4.866.43 / 6.576.71 / 5.146.57 / 6.004.29 / 4.146.00 / 4.005.715.125.42
Gemma-2-9B-Instruct6.14 / 5.869.29 / 9.09.29 / 8.579.29 / 9.148.43 / 8.437.86 / 4.438.387.577.98
Qwen2-7B-Instruct5.57 / 4.867.71 / 6.437.43 / 7.007.43 / 8.007.86 / 8.716.29 / 3.297.056.386.71