Views
No views yet

A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
Human: {prompt}
Assistant:1from transformers import AutoTokenizer
2from transformers import AutoModelForCausalLM
3
4model = AutoModelForCausalLM.from_pretrained("T3Q-LLM/T3Q-LLM-sft1.0-dpo1.0")
5tokenizer = AutoTokenizer.from_pretrained("T3Q-LLM/T3Q-LLM-sft1.0-dpo1.0")
6
7prompt_template = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: {prompt}\nAssistant:\n"
8text = '한국의 수도는 어디인가요? 아래 선택지 중 골라주세요.\n\n(A) 경성\n(B) 부산\n(C) 평양\n(D) 서울\n(E) 전주'
9model_inputs = tokenizer(prompt_template.format(prompt=text), return_tensors='pt')
10
11outputs = model.generate(**model_inputs, max_new_tokens=256)
12output_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
13print(output_text)A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
Human: 한국의 수도는 어디인가요? 아래 선택지 중 골라주세요.
(A) 경성
(B) 부산
(C) 평양
(D) 서울
(E) 전주
Assistant:
(D) 서울이 한국의 수도입니다. 서울은 나라의 북동부에 위치해 있으며, 정치, 경제, 문화의 중심지입니다. 약 1,000만 명이 넘는 인구를 가진 세계에서 가장 큰 도시 중 하나입니다. 서울은 높은 빌딩, 현대적인 인프라, 활기 문화 장면으로 유명합니다. 또한, 많은 역사적 명소와 박물관이 있어 방문객들에게 풍부한 문화 체험을 제공합니다.| Task | Version | Metric | Value | Stderr | |
|---|---|---|---|---|---|
| kobest_boolq | 0 | acc | 0.9387 | ± | 0.0064 |
| macro_f1 | 0.9387 | ± | 0.0064 | ||
| kobest_copa | 0 | acc | 0.7590 | ± | 0.0135 |
| macro_f1 | 0.7585 | ± | 0.0135 | ||
| kobest_hellaswag | 0 | acc | 0.5080 | ± | 0.0224 |
| acc_norm | 0.5580 | ± | 0.0222 | ||
| macro_f1 | 0.5049 | ± | 0.0224 | ||
| kobest_sentineg | 0 | acc | 0.8489 | ± | 0.0180 |
| macro_f1 | 0.8483 | ± | 0.0180 |
| Task | Version | Metric | Value | Stderr | |
|---|---|---|---|---|---|
| kobest_boolq | 0 | acc | 0.8896 | ± | 0.0084 |
| macro_f1 | 0.8888 | ± | 0.0084 | ||
| kobest_copa | 0 | acc | 0.6930 | ± | 0.0146 |
| macro_f1 | 0.6925 | ± | 0.0147 | ||
| kobest_hellaswag | 0 | acc | 0.4640 | ± | 0.0223 |
| acc_norm | 0.5240 | ± | 0.0224 | ||
| macro_f1 | 0.4612 | ± | 0.0223 | ||
| kobest_sentineg | 0 | acc | 0.6297 | ± | 0.0243 |
| macro_f1 | 0.6255 | ± | 0.0244 |