CoolFace
Modelpublic

Edentns/DataVortexTL-1.1B-v0.1

sourceHugging Facecc-by-nc-sa-4.0updated 3y agoView on Hugging Face
0likes265downloads
Model Card

DataVortexTL-1.1B-v0.1

<img src="./DataVortex.png" alt="DataVortex" style="height: 8em;">

Our Team

Research & EngineeringProduct Management
Kwangseok YangSeunghyun Choi
Jeongwon ChoiHyoseok Choi

Model Details

Base Model

TinyLlama/TinyLlama-1.1B-Chat-v1.0

Trained On

  • —OS: Ubuntu 20.04
  • —GPU: H100 80GB 1ea
  • —transformers: v4.36.2

Dataset

Instruction format

It follows TinyLlama format.

E.g.

python
text = """\
<|system|>
당신은 사람들이 정보를 찾을 수 있도록 도와주는 인공지능 비서입니다.</s>
<|user|>
대한민국의 수도는 어디야?</s>
<|assistant|>
대한민국의 수도는 서울입니다.</s>
<|user|>
서울 인구는 총 몇 명이야?</s>
"""

Model Benchmark

[Ko LM Eval Harness](https://github.com/Beomi/ko-lm-evaluation-harness)

Task0-shot5-shot10-shot50-shot
kobest_boolq0.3342820.5164460.5004780.498941
kobest_copa0.5150610.5043210.4929270.50809
kobest_hellaswag0.362530.3577330.3558730.376502
kobest_sentineg0.4811460.6574110.6874170.635703
Average0.423254750.508977750.509173750.504809

[Ko-LLM-Leaderboard](https://huggingface.co/spaces/upstage/open-ko-llm-leaderboard)

AverageKo-ARCKo-HellaSwagKo-MMLUKo-TruthfulQAKo-CommonGen V2
31.525.2633.5324.5643.3430.81

Implementation Code

This model contains the chat_template instruction format. You can use the code below.

python
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda" # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained("Edentns/DataVortexTL-1.1B-v0.1")
tokenizer = AutoTokenizer.from_pretrained("Edentns/DataVortexTL-1.1B-v0.1")

messages = [
    {"role": "system", "content": "당신은 사람들이 정보를 찾을 수 있도록 도와주는 인공지능 비서입니다."},
    {"role": "user", "content": "대한민국의 수도는 어디야?"},
    {"role": "assistant", "content": "대한민국의 수도는 서울입니다."},
    {"role": "user", "content": "서울 인구는 총 몇 명이야?"}
]

encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")

model_inputs = encodeds.to(device)
model.to(device)

generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])

License

The model is licensed under the cc-by-nc-sa-4.0 license, which allows others to copy, modify, and share the work non-commercially, as long as they give appropriate credit and distribute any derivative works under the same license.

<div align="center"> <a href="https://edentns.com/"> <img src="./Logo.png" alt="Logo" style="height: 3em;"> </a> </div>