Views
No views yet
| Metric | Score |
|---|---|
| Reasoning | 6.57 |
| Math | 8.00 |
| Writing | 8.92 |
| Coding | 8.85 |
| Comprehension | 9.85 |
| Grammar | 7.07 |
| Single-turn | 8.42 |
| Multi-turn | 8.00 |
| Overall | 8.21 |
| Our model demonstrates the best performance among publicly available 8B models on the LogicKor leaderboard as of 2024.07.30. |
1import transformers
2import torch
3
4model_id = "KISTI-KONI/KONI-Llama3-8B-Instruct-20240729"
5
6pipeline = transformers.pipeline(
7 "text-generation",
8 model=model_id,
9 model_kwargs={"torch_dtype": torch.bfloat16},
10 device_map="auto",
11)
12
13pipeline.model.eval()
14
15instruction = "안녕? 너는 누구야?"
16
17messages = [
18 {"role": "user", "content": f"{instruction}"}
19 ]
20
21prompt = pipeline.tokenizer.apply_chat_template(
22 messages,
23 tokenize=False,
24 add_generation_prompt=True
25)
26
27terminators = [
28 pipeline.tokenizer.eos_token_id,
29 pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
30]
31
32outputs = pipeline(
33 prompt,
34 max_new_tokens=2048,
35 eos_token_id=terminators,
36 do_sample=True,
37 temperature=0.7,
38 top_p=0.9
39)
40
41print(outputs[0]["generated_text"][len(prompt):])안녕하세요! 저는 KONI, 여러분의 질문에 답하고 정보를 제공하는 인공지능입니다. 저는 어떤 정보를 제공해 드릴까요?
1@article{KISTI-KONI/KONI-Llama3-8B-Instruct-20240729,
2 title={KISTI-KONI/KONI-Llama3-8B-Instruct-20240729},
3 author={KISTI},
4 year={2024},
5 url={https://huggingface.co/KISTI-KONI/KONI-Llama3-8B-Instruct-20240729}
6}