5B tokens of CulturaX with 75% of documents in Estonain and 25% in English (see
Llammas-base
),
Alpaca-cleaned, Alpaca-est, OASST1 top-1 English conversations, CoT and FLAN-V2 following open-instruct (both 10,000), WMT18 English-Estonian translation development data (as documents), general MTee validation English-Estonian held-out data.
Alpaca-est
is an instruction dataset generated for Estonian with
gpt-3.5-turbo-0613
, following Alpaca. More details in our
paper
.
from transformers import pipeline
import torch
pipe = pipeline("text-generation", model="tartuNLP/Llammas", torch_dtype=torch.bfloat16, device_map="auto")
messages = [
{"role": "user", "content": "Tere!"},
{"role": "assistant", "content": "Tere! Kas saaksin teid kuidagi aidata?"},
{"role": "user", "content": "Kuidas alustada kirja kirjutamist?"}
]
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.6, top_k=50, top_p=0.9)
print(outputs[0]["generated_text"][len(prompt):])
Using the model in a conversational pipeline (works with transformers==4.36.2, issues with output in newer versions):
from transformers import pipeline, Conversation
import torch
pipe = pipeline("conversational", model="tartuNLP/Llammas", torch_dtype=torch.bfloat16, device_map="auto")
messages = [
{"role": "user", "content": "Tere!"},
{"role": "assistant", "content": "Tere! Kas saaksin teid kuidagi aidata?"},
{"role": "user", "content": "Kuidas alustada kirja kirjutamist?"}
]
conversation = Conversation(messages)
conversation = pipe(conversation)
Conversational format:
<|user|>
Tere!
<|assistant|>
Tere! Kas saaksin teid kuidagi aidata?</s>
<|user|>
Kuidas alustada kirja kirjutamist?
<|assistant|>
Kirja kirjutamiseks alustage tervitusega, nĂ€iteks "Tere!" vĂ”i "Tere hommikust!". SeejĂ€rel tutvustage ennast ja mainige, kellega kirjutate. Kirjeldage oma mĂ”tteid vĂ”i kĂŒsimusi, mida soovite arutada. LĂ”petage kiri viisakalt, nĂ€iteks "TĂ€nan teid tĂ€helepanu eest!" vĂ”i "Parimate soovidega!"</s>
Citation
@misc{kuulmets2024teaching,
title={Teaching Llama a New Language Through Cross-Lingual Knowledge Transfer},
author={Hele-Andra Kuulmets and Taido Purason and Agnes Luhtaru and Mark Fishel},
year={2024},
eprint={2404.04042},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Runs of tartuNLP Llammas on huggingface.co
277
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About Llammas huggingface.co Model
Llammas huggingface.co
Llammas huggingface.co is an AI model on huggingface.co that provides Llammas's model effect (), which can be used instantly with this tartuNLP Llammas model. huggingface.co supports a free trial of the Llammas model, and also provides paid use of the Llammas. Support call Llammas model through api, including Node.js, Python, http.
Llammas huggingface.co is an online trial and call api platform, which integrates Llammas's modeling effects, including api services, and provides a free online trial of Llammas, you can try Llammas online for free by clicking the link below.
tartuNLP Llammas online free url in huggingface.co:
Llammas is an open source model from GitHub that offers a free installation service, and any user can find Llammas on GitHub to install. At the same time, huggingface.co provides the effect of Llammas install, users can directly use Llammas installed effect in huggingface.co for debugging and trial. It also supports api for free installation.