Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("OpenLLM-Ro/RoGemma-7b-Instruct-DPO-2024-10-09")
4model = AutoModelForCausalLM.from_pretrained("OpenLLM-Ro/RoGemma-7b-Instruct-DPO-2024-10-09")
5
6instruction = "Ce jocuri de societate pot juca cu prietenii mei?"
7chat = [
8 {"role": "user", "content": instruction},
9 ]
10prompt = tokenizer.apply_chat_template(chat, tokenize=False, system_message="")
11
12inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
13outputs = model.generate(input_ids=inputs, max_new_tokens=128)
14print(tokenizer.decode(outputs[0]))| Model | |||||||
| gemma-1.1-7b-it | |||||||
| RoGemma-7b-Instruct-2024-06-28 | |||||||
| RoGemma-7b-Instruct-2024-10-09 | |||||||
| RoGemma-7b-Instruct-DPO-2024-10-09 |
| Model | (Macro F1) | (Macro F1) | (Macro F1) | (Macro F1) | (Bleu) | (Bleu) | (Bleu) | (Bleu) |
| gemma-1.1-7b-it | ||||||||
| RoGemma-7b-Instruct-2024-06-28 | ||||||||
| RoGemma-7b-Instruct-2024-10-09 | ||||||||
| RoGemma-7b-Instruct-DPO-2024-10-09 |
| Model | ||||||||
| gemma-1.1-7b-it | ||||||||
| RoGemma-7b-Instruct-2024-06-28 | ||||||||
| RoGemma-7b-Instruct-2024-10-09 | ||||||||
| RoGemma-7b-Instruct-DPO-2024-10-09 |
| Model | ||||
| gemma-1.1-7b-it | ||||
| RoGemma-7b-Instruct-2024-06-28 | ||||
| RoGemma-7b-Instruct-2024-10-09 | ||||
| RoGemma-7b-Instruct-DPO-2024-10-09 |
| Model | ||
| gemma-1.1-7b-it | ||
| RoGemma-7b-Instruct-2024-06-28 | ||
| RoGemma-7b-Instruct-2024-10-09 | ||
| RoGemma-7b-Instruct-DPO-2024-10-09 |
| Model | Link |
|---|---|
| RoGemma-7b-Instruct-2024-06-28 | link |
| RoGemma-7b-Instruct-2024-10-09 | link |
| RoGemma-7b-Instruct-DPO-2024-10-09 | link |
@inproceedings{masala-etal-2024-vorbesti,
title = "``Vorbe\c{s}ti Rom{\^a}ne\c{s}te?'' A Recipe to Train Powerful {R}omanian {LLM}s with {E}nglish Instructions",
author = "Masala, Mihai and Ilie-Ablachim, Denis and Dima, Alexandru and Corlatescu, Dragos Georgian and Zavelca, Miruna-Andreea and Olaru, Ovio and Terian, Simina-Maria and Terian, Andrei and Leordeanu, Marius and Velicu, Horia and Popescu, Marius and Dascalu, Mihai and Rebedea, Traian",
editor = "Al-Onaizan, Yaser and Bansal, Mohit and Chen, Yun-Nung",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.findings-emnlp.681/",
doi = "10.18653/v1/2024.findings-emnlp.681",
pages = "11632--11647"
}