CoolFace
Modelpublic

Edentns/DataVortexS-10.7B-v1.0

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

DataVortexS-10.7B-v1.0

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

Our Team

Research & EngineeringProduct Management
Kwangseok YangSeunghyun Choi
Jeongwon ChoiHyoseok Choi

Model Details

Base Model

megastudy/M-SOLAR-10.7B-v1.3

Trained On

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

Instruction format

It follows Alpaca format.

E.g.

python
text = """\
### System:
당신은 사람들이 정보를 찾을 수 있도록 도와주는 인공지능 비서입니다.

### User:
대한민국의 수도는 어디야?

### Assistant:
대한민국의 수도는 서울입니다.

### User:
서울 인구는 총 몇 명이야?
"""

Model Benchmark

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

Task0-shot5-shot10-shot50-shot
kobest_boolq0.3342820.3342820.3342820.769923
kobest_copa0.4805010.4757460.463380.475528
kobest_hellaswag0.2258180.2405960.2343160.449779
kobest_sentineg0.331650.3861890.3669130.360296
Average0.343062750.359203250.349722750.5138815

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

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

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/DataVortexS-10.7B-v1.0")
tokenizer = AutoTokenizer.from_pretrained("Edentns/DataVortexS-10.7B-v1.0")

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>