Downloads · 30 days
35.7K
9% of all-time downloads
KISTI-KONI/KONI-Llama3.1-8B-Instruct-20241024
KONI-Llama3.1-8B-Instruct-20241024 is a text generation model from KISTI-KONI. Use it when you need the model to write or continue text. The card lists the license as llama3.1.
- KONI (KISTI Open Natural Intelligence) is a specialized large language model (LLM) developed by the Korea Institute of Science and Technology Information (KISTI). This model is specifically designed for science and…
Downloads · 30 days
35.7K
9% of all-time downloads
All-time downloads
391K
Public
Parameters
8B
16.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
The performances were evaluated using the LogicKor benchmark dataset as follows:
| Metric | Score |
|---|---|
| Reasoning | 8.15 |
| Math | 8.79 |
| Writing | 9.22 |
| Coding | 9.21 |
| Comprehension | 9.65 |
| Grammar | 8.57 |
| Single-turn | 9.05 |
| Multi-turn | 8.81 |
| Overall | 8.93 |
import transformers
import torch
model_id = "KISTI-KONI/KONI-Llama3.1-8B-Instruct-20241024"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
pipeline.model.eval()
instruction = "안녕? 너는 누구야?"
messages = [
{"role": "user", "content": f"{instruction}"}
]
prompt = pipeline.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
terminators = [
pipeline.tokenizer.eos_token_id,
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = pipeline(
prompt,
max_new_tokens=2048,
eos_token_id=terminators,
do_sample=True,
temperature=0.7,
top_p=0.9
)
print(outputs[0]["generated_text"][len(prompt):])
안녕하세요! 저는 KISTI의 KONI입니다. 과학기술 데이터를 전문으로 처리하며, 여러분의 연구와 질문에 최선을 다해 도움을 드리겠습니다. 무엇을 도와드릴까요?
Language Model
@article{KISTI-KONI/KONI-Llama3.1-8B-Instruct-20241024,
title={KISTI-KONI/KONI-Llama3.1-8B-Instruct-20241024},
author={KISTI},
year={2024},
url={https://huggingface.co/KISTI-KONI/KONI-Llama3.1-8B-Instruct-20241024}
}