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.
We recommend to use transformers v4.43.0 or later, as advised for Llama-3.1.
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.
Llama-VARCO-8B-Instruct huggingface.co is an AI model on huggingface.co that provides Llama-VARCO-8B-Instruct's model effect (), which can be used instantly with this NCSOFT Llama-VARCO-8B-Instruct model. huggingface.co supports a free trial of the Llama-VARCO-8B-Instruct model, and also provides paid use of the Llama-VARCO-8B-Instruct. Support call Llama-VARCO-8B-Instruct model through api, including Node.js, Python, http.
Llama-VARCO-8B-Instruct huggingface.co is an online trial and call api platform, which integrates Llama-VARCO-8B-Instruct's modeling effects, including api services, and provides a free online trial of Llama-VARCO-8B-Instruct, you can try Llama-VARCO-8B-Instruct online for free by clicking the link below.
NCSOFT Llama-VARCO-8B-Instruct online free url in huggingface.co:
Llama-VARCO-8B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Llama-VARCO-8B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Llama-VARCO-8B-Instruct install, users can directly use Llama-VARCO-8B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Llama-VARCO-8B-Instruct install url in huggingface.co: