Seagull-13b-translation πŸ“‡

Seagull-typewriter Seagull-13b-translation is yet another translator model, but carefully considered the following issues from existing translation models.

  • Exact match of newline or space
  • Not using dataset with first letter removed
  • Code
  • 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. For a coffee chat or if you have any questions, please do not hesitate to contact me as well! - [email protected]

This model was created as a personal experiment, unrelated to the organization I work for.

License

From original model author:

Model Details

Developed by

Jisoo Kim(kuotient)

Base Model

beomi/llama-2-koen-13b

Datasets

  • sharegpt_deepl_ko_translation
  • KOR-OpenOrca-Platypus-v3
  • AIHUB
    • κΈ°μˆ κ³Όν•™ λΆ„μ•Ό ν•œ-영 λ²ˆμ—­ 병렬 λ§λ­‰μΉ˜ 데이터
    • μΌμƒμƒν™œ 및 ꡬ어체 ν•œ-영 λ²ˆμ—­ 병렬 λ§λ­‰μΉ˜ 데이터

Usage

Format

It follows only ChatML format.

<|im_start|>system
μ£Όμ–΄μ§„ λ¬Έμž₯을 ν•œκ΅­μ–΄λ‘œ λ²ˆμ—­ν•˜μ„Έμš”.<|im_end|>
<|im_start|>user
{instruction}<|im_end|>
<|im_start|>assistant
# Don't miss newline here
<|im_start|>system
μ£Όμ–΄μ§„ λ¬Έμž₯을 μ˜μ–΄λ‘œ λ²ˆμ—­ν•˜μ„Έμš”.<|im_end|>
<|im_start|>user
{instruction}<|im_end|>
<|im_start|>assistant
# Don't miss newline here

Output example

원문:

A particle's wave function, $\psi(x)$, is given by $$\psi(x)=\begin{cases} 3x & \text{if } -1 \leq x \leq 0 \ 3(1-x) & \text{if } 0 < x \leq 1 \ 0 & \text{otherwise} \end{cases}$$ Compute the Fourier transform, $\tilde{\psi}(k)$, of the wave function $\psi(x)$ and show that it satisfies the Fourier inversion theorem, i.e., $\psi(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} \tilde{\psi}(k) e^{ikx} \mathrm{d}k$.

Seagull-13b-translation:

μž…μžμ˜ νŒŒλ™ ν•¨μˆ˜ $\psi(x)$λŠ” λ‹€μŒκ³Ό 같이 μ£Όμ–΄μ§‘λ‹ˆλ‹€. $$\psi(x)=\begin{cases} 3x & \text{if } -1 \leq x \leq 0 \ 3(1-x) & \text{if } 0 < x \leq 1 \ 0 & \text{otherwise} \end{cases}$$ νŒŒλ™ ν•¨μˆ˜ $\psi(x)$의 푸리에 λ³€ν™˜ $\tilde{\psi}(k)$λ₯Ό κ³„μ‚°ν•˜κ³  푸리에 λ°˜μ „ 정리, 즉 $\psi(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} \tilde{\psi}(k) e^{ikx} \mathrm{d}k$λ₯Ό λ§Œμ‘±ν•©λ‹ˆλ‹€.

DeepL:

μž…μžμ˜ νŒŒλ™ ν•¨μˆ˜ $\psi(x)$λŠ” $$\psi(x)=\begin{cases}둜 μ£Όμ–΄μ§‘λ‹ˆλ‹€. 3x & \text{if } -1 \leq x \leq 0 \ 3(1-x) & \text{if } 0 < x \leq 1 \ 0 & \text{기타} \end{cases}$$ νŒŒλ™ ν•¨μˆ˜ $\psi(x)$의 푸리에 λ³€ν™˜μΈ $\tilde{\psi}(k)$λ₯Ό κ³„μ‚°ν•˜κ³  푸리에 λ°˜μ „ 정리, 즉 $\psi(x) = \frac{1}{\sqrt{2\pi}}λ₯Ό λ§Œμ‘±ν•¨μ„ 증λͺ…ν•©λ‹ˆλ‹€. \int_{-\infty}^{\infty} \λ¬Όκ²°ν‘œ{\psi}(k) e^{ikx} \mathrm{d}k$.

...and much more awesome cases with SQL query, code and markdown!

How to

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.

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])
Downloads last month
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for kuotient/Seagull-13b-translation

Quantizations
1 model

Dataset used to train kuotient/Seagull-13b-translation