File size: 3,294 Bytes
bb57726 76aed3a bb57726 2efd350 bb57726 76aed3a bb57726 76aed3a bb57726 57e6bb0 bb57726 57e6bb0 bb57726 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
---
license: cc-by-nc-sa-4.0
datasets:
- squarelike/sharegpt_deepl_ko_translation
language:
- ko
pipeline_tag: translation
tags:
- translate
---
# **Seagull-13b-translation ๐**
![Seagull-typewriter](./Seagull-typewriter.png)
**Seagull-13b-translation** is yet another translator model, but carefully considered the following issues from existing translation models.
- `newline` or `space` not matching the original text
- Using translated dataset with first letter removed for training
- Codes
- Markdown format
- LaTeX format
- etc
์ด๋ฐ ์ด์๋ค์ ์ถฉ๋ถํ ์ฒดํฌํ๊ณ ํ์ต์ ์งํํ์์ง๋ง, ๋ชจ๋ธ์ ์ฌ์ฉํ ๋๋ ์ด๋ฐ ๋ถ๋ถ์ ๋ํ ๊ฒฐ๊ณผ๋ฅผ ๋ฉด๋ฐํ๊ฒ ์ดํด๋ณด๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค(์ฝ๋๊ฐ ํฌํจ๋ ํ
์คํธ ๋ฑ).
> If you're interested in building large-scale language models to solve a wide variety of problems in a wide variety of domains, you should consider joining [Allganize](https://allganize.career.greetinghr.com/o/65146).
For a coffee chat or if you have any questions, please do not hesitate to contact me as well! - kuotient.dev@gmail.com
This model was created as a personal experiment, unrelated to the organization I work for.
# **License**
## From original model author:
- Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License, under LLAMA 2 COMMUNITY LICENSE AGREEMENT
- Full License available at: https://huggingface.co/beomi/llama-2-koen-13b/blob/main/LICENSE
# **Model Details**
#### **Developed by**
Jisoo Kim(kuotient)
#### **Base Model**
[beomi/llama-2-koen-13b](https://huggingface.co/beomi/llama-2-koen-13b)
#### **Datasets**
- [sharegpt_deepl_ko_translation](https://huggingface.co/datasets/squarelike/sharegpt_deepl_ko_translation)
- AIHUB
- ๊ธฐ์ ๊ณผํ ๋ถ์ผ ํ-์ ๋ฒ์ญ ๋ณ๋ ฌ ๋ง๋ญ์น ๋ฐ์ดํฐ
- ์ผ์์ํ ๋ฐ ๊ตฌ์ด์ฒด ํ-์ ๋ฒ์ญ ๋ณ๋ ฌ ๋ง๋ญ์น ๋ฐ์ดํฐ
## Usage
#### Format
It follows only **ChatML** format.
```python
<|im_start|>system
์ฃผ์ด์ง ๋ฌธ์ฅ์ ํ๊ตญ์ด๋ก ๋ฒ์ญํ์ธ์.<|im_end|>
<|im_start|>user
{instruction}<|im_end|>
<|im_start|>assistant
# Don't miss newline here
```
```python
<|im_start|>system
์ฃผ์ด์ง ๋ฌธ์ฅ์ ์์ด๋ก ๋ฒ์ญํ์ธ์.<|im_end|>
<|im_start|>user
{instruction}<|im_end|>
<|im_start|>assistant
# Don't miss newline here
```
#### Example code
**I highly recommend to inference model with vllm. I will write a guide for quick and easy inference if requested.**
Since, chat_template already contains insturction format above.
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("kuotient/Seagull-13B-translation")
tokenizer = AutoTokenizer.from_pretrained("kuotient/Seagull-13B-translation")
messages = [
{"role": "system", "content", "์ฃผ์ด์ง ๋ฌธ์ฅ์ ํ๊ตญ์ด๋ก ๋ฒ์ญํ์ธ์."}
{"role": "user", "content": "Here are five examples of nutritious foods to serve your kids."},
]
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])
``` |