This model is strictly
non-commercial
(
cc-by-nc-4.0
) use only which takes priority over the
LLAMA 2 COMMUNITY LICENSE AGREEMENT
.
The "Model" is completely free (ie. base model, derivates, merges/mixes) to use for non-commercial purposes as long as the the included
cc-by-nc-4.0
license in any parent repository, and the non-commercial use statute remains, regardless of other models' licences.
The licence can be changed after new model released.
학습 과정의 실수로 [/INST]가 아닌 [\INST]가 적용되었습니다. v0.2 에서 수정 될 예정입니다.
In order to leverage instruction fine-tuning, your prompt should be surrounded by
[INST]
and
[\INST]
tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
Plus, It is strongly recommended to add a space at the end of the prompt.
E.g.
text = "<s>[INST] 아이작 뉴턴의 업적을 알려줘. [\INST] "
Model Benchmark
KULLM Evaluation
구름v2 repo 에서 제공되는 데이터셋과 프롬프트를 사용하여 평가했습니다.
당시 GPT4와 현재 GPT4가 완전히 동일하지는 않기에 실제 결과와 약간의 차이가 존재 할 수 있습니다.
HellaSwag와 COPA는 원본코드를 수정하는 과정에서 어려움을 겪어 아직 진행하지 않았습니다.
NOTE
BoolQ에는 Instruction 모델의 이해를 돕기위해 "위 글에 대한 질문에 사실을 확인하는 작업입니다.", "예, 아니오로 대답해주세요."의 프롬프트를 추가했습니다.
SentiNeg에는 Instruction 모델의 이해를 돕기위해 "위 문장의 긍정, 부정 여부를 판단하세요."의 프롬프트를 추가했습니다.
Wic의 경우는 [INST], [\INST]만 추가하였습니다.
Model
COPA
HellaSwag
BoolQ
SentiNeg
Wic
EleutherAI/polyglot-ko-12.8b
0.7937
0.5954
0.4818
0.9117
0.3985
Synatra-V0.1-7B
NaN
NaN
0.849
0.8690
0.4881
Implementation Code
Since, chat_template already contains insturction format above.
You can use the code below.
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"# the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("maywell/Synatra-V0.1-7B")
tokenizer = AutoTokenizer.from_pretrained("maywell/Synatra-V0.1-7B")
messages = [
{"role": "user", "content": "What is your favourite condiment?"},
]
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])
If you run it on oobabooga your prompt would look like this. - ** Need to add Space at the end! **
Synatra-V0.1-7B-Instruct huggingface.co is an AI model on huggingface.co that provides Synatra-V0.1-7B-Instruct's model effect (), which can be used instantly with this maywell Synatra-V0.1-7B-Instruct model. huggingface.co supports a free trial of the Synatra-V0.1-7B-Instruct model, and also provides paid use of the Synatra-V0.1-7B-Instruct. Support call Synatra-V0.1-7B-Instruct model through api, including Node.js, Python, http.
Synatra-V0.1-7B-Instruct huggingface.co is an online trial and call api platform, which integrates Synatra-V0.1-7B-Instruct's modeling effects, including api services, and provides a free online trial of Synatra-V0.1-7B-Instruct, you can try Synatra-V0.1-7B-Instruct online for free by clicking the link below.
maywell Synatra-V0.1-7B-Instruct online free url in huggingface.co:
Synatra-V0.1-7B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Synatra-V0.1-7B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Synatra-V0.1-7B-Instruct install, users can directly use Synatra-V0.1-7B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Synatra-V0.1-7B-Instruct install url in huggingface.co: